/* DailyTech — sito pubblico e redazione. Niente build step: CSS puro.
   Stile da testata tech: nero, bianco e grigi con un solo accento rosso, filetti sottili,
   niente illustrazioni finte. Le immagini compaiono solo se caricate dalla redazione. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --night: #0e0f13;
  --night-2: #1a1c23;
  --paper: #ffffff;
  --paper-2: #f5f5f6;
  --ink: #111114;
  --ink-2: #3c3d44;
  --muted: #6c6e78;
  --rule: #e4e4e8;
  --rule-strong: #111114;
  --accent: #c8102e;
  --accent-2: #a00c24;
  --accent-light: #ff4d5e;
  --accent-soft: #fdecee;
  --link: #a00c24;
  --ok: #157347;
  --warn: #a35200;
  --danger: #b3261e;
  --radius: 4px;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);
  --display: var(--sans);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01";
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1; width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- Testata ---------- */
.topline { background: var(--night); color: #9a9cab; font-size: 12px; border-bottom: 1px solid #23252e; }
.topline-inner { display: flex; justify-content: space-between; gap: 16px; min-height: 32px; align-items: center; }
.topline-date { color: #d6d7de; }
@media (max-width: 760px) { .ai-note { display: none; } }

.site-header { background: var(--night); color: #fff; position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 72px; }
.brand { display: inline-flex; align-items: baseline; gap: 16px; color: inherit; text-decoration: none; min-width: 0; flex: 1 1 auto; }
.wordmark { font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.035em; color: #fff; white-space: nowrap; }
.wordmark span { color: var(--accent-light); }
.wordmark-ai { display: inline-block; margin-left: 6px; padding: 3px 6px 2px; border-radius: 3px; background: var(--accent); color: #fff; font-size: 0.5em; font-weight: 800; letter-spacing: 0.04em; vertical-align: 0.42em; line-height: 1; }
.brand-tagline { font-size: 13px; color: #9a9cab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 16px; border-left: 1px solid #2c2f3a; }
.nav { display: flex; flex: 0 0 auto; gap: 4px 28px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; display: block; padding: 26px 0; color: #c9cad3; font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: #fff; }
.nav a.active { color: #fff; }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent-light); }

@media (max-width: 1440px) { .brand-tagline { display: none; } }
@media (max-width: 960px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 0; padding-top: 16px; }
  .nav { margin: 0 -32px; padding: 0 32px; border-top: 1px solid #23252e; margin-top: 14px; }
  .nav a { padding: 13px 0; }
}
@media (max-width: 640px) { .nav { margin-left: -16px; margin-right: -16px; padding: 0 16px; gap: 22px; } }

.topline-links { display: flex; align-items: center; gap: 18px; }
.ai-note { color: #9a9cab; }
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; color: #d6d7de; padding: 4px 0; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: " ▾"; color: #9a9cab; }
.lang-switch ul { position: absolute; right: 0; top: 100%; z-index: 40; margin: 6px 0 0; padding: 6px 0; list-style: none; min-width: 160px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.lang-switch li a { display: block; padding: 7px 14px; color: var(--ink); font-size: 14px; text-decoration: none; }
.lang-switch li a:hover, .lang-switch li a[aria-current] { background: var(--paper-2); color: var(--accent); }
.ai-label { color: var(--accent); font-weight: 700; }
.topline-links a { color: #9a9cab; text-decoration: none; }
.topline-links a:hover { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Striscia "In breve" ---------- */
.ticker { border-bottom: 1px solid var(--rule); background: var(--paper); }
.ticker-inner { display: flex; align-items: center; gap: 16px; min-height: 44px; overflow: hidden; }
.ticker-label { flex: none; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 5px 9px; }
.ticker-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 92%, transparent); }
.ticker-track ul { display: flex; gap: 0; width: max-content; margin: 0; padding: 0; list-style: none; animation: ticker 60s linear infinite; }
.ticker-track:hover ul { animation-play-state: paused; }
.ticker-track li { white-space: nowrap; font-size: 14px; font-weight: 550; }
.ticker-track li::after { content: "•"; margin: 0 18px; color: var(--accent); }
.ticker-track a { color: var(--ink); text-decoration: none; }
.ticker-track a:hover { text-decoration: underline; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track ul { animation: none; } .ticker-track { overflow-x: auto; } }

/* ---------- Testa della pagina ---------- */
.edition-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 6px 24px; flex-wrap: wrap; padding: 28px 0 14px; border-bottom: 2px solid var(--rule-strong); margin-bottom: 24px; }
.edition-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.edition-bar h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 750; letter-spacing: -0.02em; }
.edition-stats { margin: 0; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 0; }
.edition-stats span + span::before { content: "·"; margin: 0 8px; }
.edition-intro { margin: -8px 0 24px; max-width: 820px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Griglia ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-bottom: 24px; }
.main-col { min-width: 0; }
@media (max-width: 1080px) { .layout { grid-template-columns: 1fr; } }

/* ---------- Notizie ---------- */
.story { min-width: 0; }
.story-media { position: relative; overflow: hidden; background: var(--paper-2); }
.story-media { display: block; }
.story-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.story:hover .story-media img { transform: scale(1.03); }
.story-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.story-kicker a { color: var(--accent); text-decoration: none; }
.story-kicker a:hover { text-decoration: underline; }
.story-flag { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--rule); color: var(--muted); }
.story-title { margin: 0 0 8px; font-weight: 700; letter-spacing: -0.015em; }
.story-title a { color: inherit; text-decoration: none; }
.story-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.story-summary { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.meta { display: flex; flex-wrap: wrap; margin: 0; color: var(--muted); font-size: 12.5px; }
.meta > * + *::before { content: "·"; margin: 0 7px; }

/* Apertura */
.top-stories { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 0 28px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); margin-bottom: 32px; }
.top-stories.no-side { grid-template-columns: 1fr; }
.story-hero .story-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 14px; }
.story-hero .story-summary { font-size: 17px; line-height: 1.55; margin-bottom: 14px; }
.story-hero .meta { font-size: 13px; }
/* Con foto: testo sovrapposto, come nel mockup */
.story-hero.has-image { position: relative; min-height: 480px; display: flex; align-items: flex-end; color: #fff; border-radius: var(--radius); overflow: hidden; }
.story-hero.has-image .story-media { position: absolute; inset: 0; }
.story-hero.has-image .story-body { position: relative; width: 100%; padding: 140px 32px 28px; background: linear-gradient(transparent, rgba(8, 9, 12, 0.92) 60%); }
.story-hero.has-image .story-kicker a { display: inline-block; background: var(--accent); color: #fff; padding: 3px 7px; }
.story-hero.has-image .story-flag { color: #c9cad3; border-color: rgba(255, 255, 255, 0.3); }
.story-hero.has-image .story-summary, .story-hero.has-image .meta { color: #d6d7de; }
/* Senza foto: blocco tipografico scuro */
.story-hero.no-image { background: var(--night); color: #fff; border-radius: var(--radius); padding: 40px 40px 34px; min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; border-top: 3px solid var(--accent); }
.story-hero.no-image .story-title { font-size: clamp(30px, 3.4vw, 46px); }
.story-hero.no-image .story-kicker a { color: var(--accent-light); }
.story-hero.no-image .story-flag { color: #9a9cab; border-color: #2c2f3a; }
.story-hero.no-image .story-summary { color: #c9cad3; max-width: 680px; }
.story-hero.no-image .meta { color: #9a9cab; }

.side-list { display: flex; flex-direction: column; }
.story-side { padding: 18px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.story-side:first-child { padding-top: 0; }
.story-side:last-child { border-bottom: 0; padding-bottom: 0; }
.story-side.has-image { grid-template-columns: 136px minmax(0, 1fr); }
.story-side .story-media { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.story-side .story-title { font-size: 17px; line-height: 1.3; }
.story-side .story-kicker { margin-bottom: 5px; }

/* Griglia di card */
.section { margin-bottom: 40px; }
.section-title { margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--rule-strong); font-size: 14px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 24px; }
.story-card { display: flex; flex-direction: column; }
.story-card.no-image { border-top: 1px solid var(--rule); padding-top: 14px; }
.story-card .story-media { aspect-ratio: 16 / 9; border-radius: var(--radius); margin-bottom: 14px; }
.story-card .story-body { display: flex; flex-direction: column; flex: 1; }
.story-card .story-title { font-size: 18px; line-height: 1.3; }
.story-card .meta { margin-top: auto; }

/* Intestazioni di sezione */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--rule-strong); position: relative; }
.section-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 48px; height: 2px; background: var(--accent); }
.section-head h2 { margin: 0; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; }
.section-head h2 a { color: inherit; text-decoration: none; }
.section-head span, .section-more { font-size: 13px; color: var(--muted); text-decoration: none; }
.section-more:hover { color: var(--accent); }

/* Blocchi per sezione in home */
.sections-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; padding: 8px 0 40px; border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 36px; }
.section-block .story-card { margin-bottom: 6px; }
.section-block .story-card.no-image { border-top: 0; padding-top: 0; }
.section-block .story-card .story-title { font-size: 19px; }
.section-block .story-card .story-summary { font-size: 14px; }
.story-compact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.story-compact.has-image { grid-template-columns: minmax(0, 1fr) 84px; }
.story-compact .story-media { order: 2; aspect-ratio: 4 / 3; border-radius: var(--radius); }
.story-compact .story-title { font-size: 15px; line-height: 1.35; margin-bottom: 6px; }
@media (max-width: 1080px) { .sections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sections-grid { grid-template-columns: 1fr; } }

/* Elenco per le sezioni */
.row-list { border-top: 1px solid var(--rule); }
.story-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.story-row.has-image { grid-template-columns: minmax(0, 1fr) 240px; }
.story-row .story-media { order: 2; aspect-ratio: 16 / 10; border-radius: var(--radius); }
.story-row .story-title { font-size: 22px; line-height: 1.25; }

@media (max-width: 760px) {
  .top-stories { grid-template-columns: 1fr; gap: 24px; }
  .story-hero.no-image { padding: 28px 22px 24px; }
  .story-hero.has-image { min-height: 400px; }
  .story-hero.has-image .story-body { padding: 110px 20px 20px; }
  .story-row.has-image { grid-template-columns: minmax(0, 1fr) 110px; gap: 14px; }
  .story-row .story-title { font-size: 18px; }
  .story-row .story-summary { display: none; }
}

/* Il brief in breve: il motivo per cui si legge DailyTech */
.digest { list-style: none; margin: 0; padding: 0; counter-reset: digest; }
.digest li { counter-increment: digest; position: relative; padding: 0 0 22px 52px; margin-bottom: 22px; border-bottom: 1px solid var(--rule); max-width: 820px; }
.digest li:last-child { border-bottom: 0; margin-bottom: 0; }
.digest li::before { content: counter(digest, decimal-leading-zero); position: absolute; left: 0; top: -2px; font-size: 26px; font-weight: 800; letter-spacing: -0.04em; color: var(--rule-strong); }
.digest .story-kicker { margin: 0 0 4px; font-size: 12px; }
.digest h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; }
.digest h3 a { color: inherit; text-decoration: none; }
.digest h3 a:hover { text-decoration: underline; }
.digest p { margin: 0 0 8px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.digest-note { font-style: italic; padding-left: 12px; border-left: 2px solid var(--accent); }
.digest-source { font-size: 13px !important; color: var(--muted) !important; margin: 0 !important; }
.digest-source a { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .digest li { padding-left: 40px; } .digest li::before { font-size: 20px; } }

.byline { color: var(--muted); font-size: 13px; margin: 0; }
.empty { color: var(--muted); padding: 56px 0; margin: 0; border-bottom: 1px solid var(--rule); }

/* ---------- Colonna laterale ---------- */
.sidebar { display: grid; gap: 32px; }
.box h3 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--rule-strong); font-size: 14px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; }
.box p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.box-dark { background: var(--night); color: #fff; padding: 22px 22px 24px; border-radius: var(--radius); border-top: 3px solid var(--accent); }
.box-dark h3 { border-bottom: 0; padding-bottom: 0; text-transform: none; letter-spacing: -0.01em; font-size: 20px; }
.box-dark p { color: #c9cad3; }
.btn-accent { display: block; text-align: center; padding: 11px 16px; border-radius: var(--radius); background: var(--accent); color: #fff; font-size: 14px; font-weight: 650; text-decoration: none; }
.btn-accent:hover { background: var(--accent-2); }
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.ranked li { counter-increment: rank; display: grid; grid-template-columns: 26px minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--rule); }
.ranked li:last-child { border-bottom: 0; }
.ranked li::before { content: counter(rank); grid-row: span 2; font-size: 20px; font-weight: 800; line-height: 1.1; color: var(--accent); }
.ranked a { color: var(--ink); font-weight: 650; font-size: 15px; line-height: 1.35; text-decoration: none; }
.ranked a:hover { text-decoration: underline; }
.ranked span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.topics { list-style: none; margin: 0; padding: 0; }
.topics li { border-bottom: 1px solid var(--rule); }
.topics li:last-child { border-bottom: 0; }
.topics a { display: flex; justify-content: space-between; padding: 10px 0; color: var(--ink); font-size: 15px; font-weight: 550; text-decoration: none; }
.topics a span { color: var(--muted); }
.topics a:hover { color: var(--accent); }
.more { font-size: 14px; font-weight: 650; color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------- Pagina notizia ---------- */
.article-layout { padding-top: 28px; }
.article { max-width: 760px; min-width: 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.article h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 16px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 0 0 20px; }
.article > .meta { padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 8px; font-size: 13px; }
.article-figure { margin: 0 0 24px; }
.article-figure img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.article-figure figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
.article p, .article dd { font-size: 17px; line-height: 1.7; }
.article .story-kicker { font-size: 12px; line-height: 1.4; margin-bottom: 10px; }
.editor-note { margin: 24px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); font-style: italic; color: var(--ink-2); }
.editor-note::before { content: attr(data-label); display: block; font-style: normal; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); margin-bottom: 4px; }
.block h2, .prose h2 { margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--rule-strong); font-size: 14px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; }
.block p { margin: 0; }
.impact { display: grid; margin: 0; }
.impact div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.impact div:last-child { border-bottom: 0; }
.impact dt { font-weight: 700; margin-bottom: 4px; }
.impact dd { margin: 0; color: var(--ink-2); }
.sources ul { list-style: none; padding: 0; margin: 0; }
.sources li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.sources li:last-child { border-bottom: 0; }
.sources a { font-weight: 600; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 6px; border-radius: 2px; border: 1px solid currentColor; color: var(--accent); text-decoration: none; margin-left: 8px; vertical-align: 1px; }
.badge-primary { color: var(--ok); }
.disclosure { font-size: 13px !important; line-height: 1.55 !important; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 36px; }
.back-link { font-weight: 650; margin-top: 16px; }
.back-link a { color: var(--ink); }

/* Pagine istituzionali */
.prose { max-width: 760px; padding: 32px 0 64px; }
.prose h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 16px; }
.prose p { font-size: 17px; line-height: 1.7; }
.edition-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); }

.preview-bar { background: #fff4d6; color: #5c3b00; border-bottom: 1px solid #e8c766; text-align: center; padding: 7px 16px; font-size: 13px; font-weight: 600; }
.preview-bar a { color: inherit; }

/* ---------- Piede ---------- */
.site-footer { background: var(--night); color: #9a9cab; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 36px; font-size: 14px; }
.footer-brand .wordmark { font-size: 26px; }
.footer-brand p { margin: 14px 0 0; max-width: 440px; line-height: 1.6; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer h2 { margin: 0 0 6px; color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer nav a { color: #c9cad3; text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 24px; border-top: 1px solid #23252e; font-size: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

nav[role=navigation] { font-size: 14px; margin: 24px 0; }

/* ---------- Redazione ---------- */
.admin { font: 16px/1.5 var(--sans); background: var(--paper-2); }
.admin .wrap { max-width: 1080px; }
.admin-header { background: var(--night); color: #fff; }
.admin-header .header-inner { min-height: 60px; flex-wrap: wrap; flex-direction: row; align-items: center; padding-top: 0; }
.admin-header .wordmark { font-size: 22px; }
.admin-header .brand { align-items: center; gap: 12px; }
.admin-header .brand small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #9a9cab; padding-left: 12px; border-left: 1px solid #2c2f3a; }
.admin-header .nav { align-items: center; gap: 26px; margin: 0; padding: 0; border: 0; }
.admin-header .nav a { padding: 20px 0; font-size: 14px; }
.admin-header form { margin: 0; }
.admin-header .btn { background: transparent; color: #fff; border-color: #3a3d4a; padding: 6px 12px; font-size: 13px; }
.admin-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 24px 0 12px; }
.admin-title h1 { margin: 0; font: 700 28px/1.2 var(--display); }
.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
.panel h2 { font: 700 13px/1.2 var(--sans); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font: 700 30px/1.2 var(--display); }
.stat span { font-size: 13px; color: var(--muted); }
.stat.warn b { color: var(--warn); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.rows li:last-child { border-bottom: 0; }
.rows .title { font: 600 17px/1.35 var(--serif); }
.rows a { color: var(--ink); }
.status { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; background: #eef2fb; color: var(--link); white-space: nowrap; }
.status-approved { background: #e7f4ec; color: var(--ok); }
.status-published { color: var(--ok); background: transparent; border: 1px solid currentColor; }
.status-rejected { background: #fbeaea; color: var(--danger); }
.pill-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.pill-meta .badge { margin-left: 0; }

.grid-edit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 860px) { .grid-edit { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.field small { color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid #c9c9c9; border-radius: 4px; padding: 10px 12px;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(18, 18, 18, 0.08); }
textarea { min-height: 90px; resize: vertical; line-height: 1.5; font-family: var(--serif); font-size: 17px; }
input[type=number] { width: 80px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 15px/1.2 var(--sans); padding: 10px 16px; border-radius: 4px; border: 1px solid #c9c9c9; background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-danger { color: var(--danger); }
.btn-block { width: 100%; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; margin-bottom: 12px; }
.flash { border-radius: 4px; padding: 10px 14px; margin: 16px 0 0; font-weight: 600; }
.flash-ok { background: #e7f4ec; color: var(--ok); }
.flash-err { background: #fbeaea; color: var(--danger); }
.meter { height: 8px; border-radius: 999px; background: var(--rule); overflow: hidden; margin: 6px 0; }
.meter i { display: block; height: 100%; background: var(--ok); }
.meter.bad i { background: var(--danger); }
.src-list { font-size: 14px; padding-left: 18px; margin: 0; }
.src-list li { margin-bottom: 8px; }
.src-list p { margin: 2px 0 0; color: var(--muted); }
.login { max-width: 400px; margin: 60px auto; }
.brief-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.admin-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
input[type=file] { width: 100%; font: inherit; font-size: 14px; }


/* Fonti: sempre cliccabili, con il dominio per capire dove si va */
.story-source { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.source-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.source-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.source-domain { font-weight: 400; color: var(--muted); }
.story-hero.has-image .story-source, .story-hero.no-image .story-source { color: #c9cad3; }
.story-hero .source-link { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.4); }
.story-hero .source-domain { color: #c9cad3; }
.digest-source .source-link { font-weight: 600; }
.original-cta { margin: 0 0 22px !important; }
.btn-original { display: inline-block; padding: 10px 16px; border: 1px solid var(--rule-strong); border-radius: var(--radius); color: var(--ink); font-size: 15px; font-weight: 650; text-decoration: none; }
.btn-original:hover { background: var(--ink); color: #fff; }
.sources .source-domain { font-size: 13px; margin-left: 4px; }

/* Privacy e Cookie policy */
.legal h2 { margin-top: 30px; }
.legal-missing { color: var(--accent); font-style: normal; font-weight: 700; }
.legal-updated { margin-top: 36px; font-size: 13px !important; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 14px; }

/* Pubblicità AdSense: etichetta chiara e spazio riservato per non far saltare la pagina */
.ad { margin: 0 0 32px; padding: 10px 0 0; border-top: 1px solid var(--rule); text-align: center; }
.ad-label { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.ad-home, .ad-article { min-height: 280px; }
.ad-sidebar { min-height: 250px; margin-bottom: 0; }
.article .ad { margin-top: 32px; }
