/* ===================================================================
   Redshifted - stile unico del sito
   Per cambiare i colori basta modificare le variabili qui sotto.
   =================================================================== */

:root {
  --bg: #444444;
  --panel: #2e2e2e;
  --dark: #1e1e1e;
  --border: #555555;
  --red: #cb2414;
  --red-hover: #e53935;
  --orange: #fba500;
  --coral: #ff7f50;
  --text: #ffffff;
  --text-soft: #f0f0f0;
}

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

html { min-height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* Immagine di sfondo (il logo) leggermente trasparente */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('../img/logo.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.site-header, main, section, .site-footer { position: relative; z-index: 1; }

img { max-width: 100%; }

a { color: var(--orange); }
a:hover { color: #ffc14d; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Intestazione e menu ---------- */

.site-header {
  background: var(--dark);
  /* a sinistra aggiungo lo spessore dell'eventuale barra di scorrimento a destra: stessa distanza dai due bordi della finestra */
  padding: 1rem 1.5rem 1rem calc(1.5rem + 100vw - 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  user-select: none;
}

.icon-star {
  width: 68px;
  height: 68px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 10px #ff6f3f80;
}

.icon-star img { width: 68px; height: 68px; object-fit: cover; display: block; }

.title-image { height: 80px; width: 290px; max-width: 100%; object-fit: fill; display: block; mix-blend-mode: lighten; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.main-nav > a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.7rem;
  background: var(--red);
  border-radius: 8px;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav > a:hover { background: var(--red-hover); color: #fff; }

.main-nav > a.active {
  background: #8f1a0f;
  box-shadow: inset 0 -3px 0 var(--orange);
}

.lang-switch {
  display: inline-flex;
  margin-left: 0.5rem;
  border: 2px solid var(--orange);
  border-radius: 8px;
  overflow: hidden;
  font-weight: bold;
  font-size: 0.85rem;
}

.lang-switch a, .lang-switch .current { padding: 0.4rem 0.7rem; text-decoration: none; }
.lang-switch a { color: var(--orange); }
.lang-switch a:hover { background: #fba50033; }
.lang-switch .current { background: var(--orange); color: var(--dark); }

/* ---------- Contenitori e titoli ---------- */

main { flex: 1; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  background: linear-gradient(to right, #FFD700, #ff6600, #FF0000);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container > h1, .container > .intro, .container > .eyebrow { text-align: center; }

.intro { font-size: 1.05rem; color: var(--text-soft); max-width: 760px; margin: 0 auto 1.5rem; }

.eyebrow {
  display: block;
  color: var(--coral);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
}

.center { text-align: center; margin-top: 2.5rem; }

.section { padding: 1rem 1.5rem 3rem; }
.section-title { text-align: center; color: var(--orange); }

/* ---------- Home ---------- */

.hero { text-align: center; padding: 4rem 1.5rem 2rem; }
.hero-sub { max-width: 640px; margin: 0 auto; font-size: 1.15rem; color: var(--text-soft); }
.buttons { margin-top: 2rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ---------- Pulsanti ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.3s, color 0.3s;
}

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); color: #fff; }

.btn-outline { border-color: var(--orange); color: var(--orange); background: #1e1e1eb3; }
.btn-outline:hover { background: var(--orange); color: var(--dark); }

.hero .btn-primary { animation: pulse 1.8s infinite; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(203, 36, 20, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(203, 36, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(203, 36, 20, 0); }
}

/* ---------- Ricerca ---------- */

.search-bar { max-width: 600px; margin: 2rem auto 2.5rem; display: flex; }

.search-bar input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  font-size: 1.05rem;
  border: none;
  border-radius: 8px 0 0 8px;
}

.search-bar button {
  background: #ff6b3d;
  border: none;
  color: #1e1e1e;
  font-weight: bold;
  padding: 0 1.3rem;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.search-bar button:hover { background: #ff8b5c; }

.no-results { text-align: center; font-size: 1.1rem; margin-top: 2rem; }

/* ---------- Schede articolo ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--panel);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }
.card[hidden] { display: none; }

.card-media { display: block; aspect-ratio: 16 / 9; background: var(--dark); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--coral);
  background: radial-gradient(circle at 30% 30%, #5b1c14, #1e1e1e 70%);
}

.card-content { padding: 1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-meta { margin: 0; font-size: 0.8rem; color: #cfcfcf; }
.card-topic { color: var(--coral); font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }
.card h3 { margin: 0.5rem 0; font-size: 1.2rem; line-height: 1.3; }
.card h3 a { color: #fff; text-decoration: none; }
.card h3 a:hover { color: var(--orange); }
.card-excerpt { margin: 0 0 1rem; color: var(--text-soft); flex: 1; }

/* ---------- Tag ---------- */

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  background: var(--dark);
  color: #fff;
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.2s;
}

.tag:hover { background: var(--red); color: #fff; }

/* ---------- Pagina argomenti ---------- */

.topics {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.topic {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s;
}

.topic:hover { transform: translateY(-4px); border-color: var(--coral); }
.topic > i { font-size: 2rem; color: var(--coral); }
.topic h2 { color: var(--orange); margin: 0.4rem 0 0.5rem; font-size: 1.25rem; }
.topic p { color: var(--text-soft); line-height: 1.6; flex-grow: 1; margin: 0; }

.topic .category-number {
  display: block;
  margin-top: 1rem;
  color: var(--coral);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  font-weight: bold;
}

.topic-count { margin-top: 1rem; font-size: 0.85rem; color: #cfcfcf; }

.topic .topic-link {
  align-self: flex-start;
  margin-top: 0.8rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.topic .topic-link:hover { background: var(--red-hover); }

/* ---------- Stato vuoto ---------- */

.empty-state {
  max-width: 560px;
  margin: 2rem auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: #2e2e2ecc;
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.empty-state > i { font-size: 3rem; color: var(--coral); }
.empty-state h2, .empty-state h3 { color: var(--orange); margin: 0.8rem 0 0.4rem; }
.empty-state p { color: var(--text-soft); margin: 0 0 1.2rem; }
.empty-state p:last-child { margin-bottom: 0; }

/* ---------- Articolo ---------- */

.post { max-width: 760px; margin: 0 auto; }
.post-header { text-align: center; margin-bottom: 1.5rem; }
.post-header .eyebrow:hover { color: var(--orange); }
.post-meta { color: #cfcfcf; margin: 0; }

.post-figure { margin: 1.5rem 0 2rem; }
.post-figure img { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 10px; display: block; }
.post-figure figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: #cfcfcf; text-align: center; }

.post-body {
  background: #1e1e1ed9;
  padding: 1.5rem 1.8rem;
  border-radius: 12px;
  font-size: 1.08rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.post-body h2 { color: var(--orange); margin-top: 2rem; }
.post-body h3 { color: var(--coral); margin-top: 1.6rem; }
.post-body img { height: auto; border-radius: 8px; }
.post-body blockquote { margin: 1.2rem 0; padding: 0.2rem 1.2rem; border-left: 4px solid var(--red); color: var(--text-soft); font-style: italic; }
.post-body code { background: #00000066; padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.92em; }
.post-body pre { background: #000000a6; padding: 1rem; border-radius: 8px; overflow-x: auto; }
.post-body pre code { background: none; padding: 0; }
.post-body table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--border); padding: 0.5rem 0.8rem; }
.post-body th { background: var(--panel); }
.post-body .katex-display { overflow-x: auto; overflow-y: hidden; }

.post-tags { margin-top: 1.5rem; justify-content: center; }

/* ---------- Piè di pagina e pulsante "torna su" ---------- */

.site-footer {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 1rem 2rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.site-footer i { color: var(--coral); margin-left: 0.5rem; font-size: 1.2rem; vertical-align: middle; }

.scroll-up {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #ff6b3d;
  color: #1e1e1e;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.scroll-up.visible { opacity: 1; visibility: visible; }

/* ---------- Home: titolo compatto, carosello, fascia argomenti ---------- */

.hero-compact { padding: 2.5rem 1.5rem 0.5rem; }
.hero-compact h1 { margin: 0 0 0.6rem; }

.center-tight { margin-top: 1.5rem; }

.featured .carousel, .carousel { position: relative; max-width: 1000px; margin: 1.2rem auto 0; }

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }

.slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; }

.slide-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}

.slide-media, .slide-media img, .slide-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.slide-media img { object-fit: cover; transition: transform 0.6s; }
.slide-link:hover .slide-media img { transform: scale(1.03); }

.slide-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: #ff7f5066;
  background: radial-gradient(circle at 30% 30%, #6a2118, #1e1e1e 75%);
}

.slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 3.5rem 4.5rem 2.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0.55) 60%, rgba(10, 10, 10, 0));
}

.slide-meta { font-size: 0.85rem; color: #e0e0e0; }
.slide-topic { color: var(--coral); font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }
.slide-title { font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 700; line-height: 1.2; }
.slide-link:hover .slide-title, .slide-link:focus-visible .slide-title { color: var(--orange); }
.slide-text {
  color: var(--text-soft);
  max-width: 760px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.8);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s;
}
.carousel-btn:hover { background: var(--red); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel.ready .carousel-btn { display: flex; }
.carousel.single .carousel-btn, .carousel.single .carousel-bar { display: none; }

.carousel-bar {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  z-index: 3;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
}
.carousel.ready .carousel-bar { display: flex; }

.carousel-dots { display: flex; gap: 0.5rem; pointer-events: auto; }
.carousel-dot {
  width: 12px; height: 12px; padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.carousel-dot[aria-current="true"] { background: var(--orange); border-color: var(--orange); }

.carousel-toggle {
  pointer-events: auto;
  width: 28px; height: 28px; padding: 0;
  border: none; border-radius: 50%;
  background: rgba(30, 30, 30, 0.8);
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
}
.carousel-toggle:hover { background: var(--red); }

.topic-strip { padding-top: 0.5rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; max-width: 1000px; margin: 1.2rem auto 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.chip i { color: var(--coral); }
.chip:hover { border-color: var(--coral); background: #3a3a3a; transform: translateY(-2px); color: #fff; }
.more-link { font-weight: bold; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .slide-link { aspect-ratio: 4 / 3.4; }
  .slide-caption { padding: 2.5rem 1.1rem 2.6rem; }
  .slide-text { -webkit-line-clamp: 2; font-size: 0.95rem; }
  .carousel-btn { width: 38px; height: 38px; top: 38%; }
  .carousel-btn.prev { left: 6px; }
  .carousel-btn.next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide-media img { transition: none; }
  .slide-link:hover .slide-media img { transform: none; }
}

/* ---------- Schermi piccoli ---------- */

@media (max-width: 800px) {
  .site-header { justify-content: center; padding: 1rem; }
  .main-nav { justify-content: center; }
  .main-nav > a { padding: 0.45rem 0.8rem; }
  .container { padding-top: 2rem; }
  .post-body { padding: 1.1rem 1.1rem; font-size: 1.02rem; }
}

@media (max-width: 480px) {
  .title-image { height: 60px; width: 210px; }
  .hero { padding-top: 2.5rem; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .btn-primary { animation: none; }
  .card, .topic { transition: none; }
}

/* ---------- Pagine di solo testo (Chi sono) ---------- */

.page-text { margin-top: 1.5rem; }

/* ---------- Piè di pagina con link, pagina Download ---------- */

.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 0.6rem; }
.footer-links a { color: var(--orange); font-weight: bold; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links i { margin-right: 0.3rem; }
.site-footer .footer-text { margin: 0; }
.site-footer .footer-links i { color: var(--orange); margin-left: 0; vertical-align: baseline; font-size: inherit; }

.downloads { max-width: 820px; margin: 2rem auto 0; display: flex; flex-direction: column; gap: 1rem; }

.download {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  transition: border-color 0.25s;
}

.download:hover { border-color: var(--coral); }
.download > i { flex: none; width: 2.6rem; text-align: center; font-size: 2.2rem; color: var(--coral); }
.download-body { flex: 1; min-width: 0; }
.download h2 { margin: 0 0 0.25rem; font-size: 1.15rem; color: var(--orange); }
.download p { margin: 0; color: var(--text-soft); }
.download .download-meta { margin-top: 0.3rem; font-size: 0.8rem; color: #cfcfcf; letter-spacing: 0.5px; }

@media (max-width: 600px) {
  .download { flex-wrap: wrap; }
  .download .btn { width: 100%; justify-content: center; }
}

/* ---------- Ricerca nel menu ---------- */

.site-search { position: relative; flex: 0 1 150px; min-width: 120px; }
.ss-toggle { display: none; }

.ss-box { position: relative; }
.ss-input {
  width: 100%; height: 40px; box-sizing: border-box;
  padding: 0 0.7rem 0 2.1rem; font: inherit; font-size: 0.95rem; color: #fff;
  background: #2a2a2a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bbbbbb' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6.5'/%3E%3Cpath d='M15 15l6 6'/%3E%3C/svg%3E") no-repeat 0.7rem center / 1rem 1rem;
  border: 2px solid var(--red); border-radius: 8px; outline: none;
}
.ss-input:focus { border-color: #ff8b5c; }
.ss-input::placeholder { color: #aaa; }

.ss-results {
  position: absolute; top: 100%; right: 0; width: max(100%, min(380px, 90vw));
  margin-top: 6px; max-height: 70vh; overflow-y: auto; z-index: 50;
  background: #1e1e1e; border: 1px solid #4a2a2a; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
}
.ss-item { display: block; padding: 0.7rem 0.9rem; color: #ddd; text-decoration: none; border-bottom: 1px solid #333; font-size: 0.9rem; line-height: 1.4; }
.ss-item:last-child { border-bottom: 0; }
.ss-item strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 0.2rem; }
.ss-item span { display: block; color: #bbb; }
.ss-item:hover, .ss-item.active { background: #3a1a1a; }
.ss-item mark { background: transparent; color: #ffb02e; font-weight: bold; }
.ss-msg { margin: 0; padding: 0.9rem; color: #bbb; font-size: 0.9rem; }

@media (max-width: 800px) {
  .site-search { flex: 1 1 100%; order: 10; }
  .ss-results { left: 0; right: 0; width: auto; }
}

/* l'intestazione sta sopra al resto della pagina, così i risultati della ricerca non finiscono sotto i titoli */
.site-header { z-index: 20; }

/* schermi medi (portatili): meno ingombro nel menu, così logo, bottoni e ricerca restano su una riga */
@media (min-width: 801px) and (max-width: 1560px) {
  .main-nav > a > i { display: none; }
  .site-search { flex-basis: 130px; min-width: 110px; }
}
@media (min-width: 801px) and (max-width: 1340px) {
  .title-image { width: 235px; height: 66px; }
  .main-nav > a { padding: 0.5rem 0.55rem; }
}

/* intestazione su due righe: logo e bottoni centrati, stessa distanza da destra e da sinistra */
.site-header.wrapped { justify-content: center; }
.site-header.wrapped .main-nav { justify-content: center; }

/* Icone astrofisiche disegnate per il sito: prendono il colore del testo che le circonda */
.ico { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -0.2em; background-color: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.ico-orbite { -webkit-mask-image: url('../icons/orbite.svg'); mask-image: url('../icons/orbite.svg'); }
.ico-transito { -webkit-mask-image: url('../icons/transito.svg'); mask-image: url('../icons/transito.svg'); }
.ico-spirale { -webkit-mask-image: url('../icons/spirale.svg'); mask-image: url('../icons/spirale.svg'); }
.ico-galassie-interagenti { -webkit-mask-image: url('../icons/galassie-interagenti.svg'); mask-image: url('../icons/galassie-interagenti.svg'); }
.ico-universo-in-espansione { -webkit-mask-image: url('../icons/universo-in-espansione.svg'); mask-image: url('../icons/universo-in-espansione.svg'); }
.ico-libro-stella { -webkit-mask-image: url('../icons/libro-stella.svg'); mask-image: url('../icons/libro-stella.svg'); }
.topic > .ico { display: block; width: 2.6rem; height: 2.6rem; color: var(--coral); margin-bottom: 0.4rem; }
.empty-state > .ico { display: block; width: 3.4rem; height: 3.4rem; color: var(--coral); margin: 0 auto 0.8rem; }
.chip .ico { color: var(--coral); width: 1.3em; height: 1.3em; vertical-align: -0.28em; }

/* ---------- Grafica v2: linea di redshift, menu sobrio, titoli serif ---------- */

:root {
  --serif: 'Libre Baskerville', 'GFS Baskerville', Georgia, 'Times New Roman', serif;
  /* la "linea di redshift": dall'ambra al rosso scuro */
  --redshift: linear-gradient(90deg, #ffb02e 0%, #ff6a1a 45%, #8f1d14 100%);
}

/* Titoli: carattere serif, gradiente di arrossamento, linea sotto */
h1, h2.section-title, .topic h2 { font-family: var(--serif); font-weight: 400; }
h1 {
  background: linear-gradient(to right, #FFD36B, #ff7a22, #d6281a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1::after,
main.container > h1::after,
.section-title::after {
  content: "";
  display: block;
  width: 140px;
  height: 3px;
  margin: 0.7rem auto 0;
  background: var(--redshift);
  border-radius: 2px;
}
.section-title { color: #ffb560; }
.hero-compact h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); }

/* Menu: bottoni scuri con bordo sottile, rosso pieno solo per la pagina corrente */
.main-nav > a {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #4a2a26;
  border-radius: 4px;
  color: #e8d6c8;
}
.main-nav > a:hover { background: #2a1512; border-color: #8f1d14; color: #fff; }
.main-nav > a.active, .main-nav > a[aria-current] { background: #a3200f; border-color: #cb2414; color: #fff; }
.ss-input { border-radius: 4px; border-color: #4a2a26; }

/* Argomenti: schede leggere con la linea di redshift in alto */
.topic {
  position: relative;
  overflow: hidden;
  background: rgba(18, 14, 14, 0.62);
  border: 0;
  border-radius: 3px;
}
.topic::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--redshift); }
.category-number { color: #d4553a; letter-spacing: 0.14em; }
.topic h2 { color: #ffb02e; }
.topic-link { background: transparent; border: 1px solid #8f1d14; border-radius: 3px; color: #ffb560; }
.topic-link:hover { background: #2a1512; color: #fff; }

/* Argomenti nella Home: voci sottolineate dalla linea di redshift */
.chip {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-image: var(--redshift) 1;
  border-radius: 0;
  font-family: var(--serif);
  font-weight: 400;
}
.chip:hover { background: transparent; transform: none; }

/* Carosello più ampio: è il punto focale della Home */
.featured .carousel, .carousel { max-width: 1180px; }

/* barra di ricerca del Giornale in tinta con il resto */
.search-bar input { background: #2a2a2a; color: #fff; border: 1px solid #4a2a26; border-right: 0; border-radius: 4px 0 0 4px; outline: none; }
.search-bar input:focus { border-color: #ff8b5c; }
.search-bar input::placeholder { color: #aaa; }
.search-bar button { background: #a3200f; color: #fff; border: 1px solid #cb2414; border-radius: 0 4px 4px 0; }
.search-bar button:hover { background: #cb2414; }

/* Foto nella pagina Chi sono: tonda, con il bordo della linea di redshift, accanto al testo */
.post .about-photo, .about-photo {
  float: right;
  width: 220px;
  height: 220px;
  margin: 0.3rem 0 1rem 1.8rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background: linear-gradient(#1e1e1e, #1e1e1e) padding-box, var(--redshift) border-box;
  shape-outside: circle(50%);
  box-shadow: 0 0 22px rgba(203, 36, 20, 0.35);
}
@media (max-width: 700px) {
  .post .about-photo, .about-photo { float: none; display: block; margin: 0 auto 1.4rem; width: 180px; height: 180px; }
}

/* ---------- Giochi & Download: anteprime e riquadro "giochi in arrivo" ---------- */
.download .download-thumb { flex: none; width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.games-soon { margin-top: 2rem; }
@media (max-width: 600px) {
  .download .download-thumb { width: 72px; height: 72px; }
  .download .download-body { flex-basis: calc(100% - 72px - 1.2rem); }
}

/* menu con "Giochi & Download": un po' meno spazio tra i bottoni e nella ricerca sui portatili, per restare su una riga */
@media (min-width: 801px) and (max-width: 1560px) {
  .main-nav > a { padding-left: 0.55rem; padding-right: 0.55rem; }
  .main-nav { gap: 0.3rem; }
  .site-search { flex-basis: 105px; min-width: 95px; }
}

/* pulsante di invito in fondo alla pagina "Chi sono" */
.page-cta { text-align: center; margin: 2rem 0 0.4rem; clear: both; }
.post-body .page-cta a.btn { color: #fff; text-decoration: none; }
