/* Homepage IT/EN (template unico index.php) */
/* ── Masthead ─────────────────────────────────────────────────────── */
.masthead {
  position: relative;
  padding-top: calc(var(--header-height) + clamp(1.5rem, 4vh, 2.25rem));
  padding-bottom: clamp(1.5rem, 3.5vh, 2rem);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  background:
    radial-gradient(ellipse 720px 420px at 88% -10%, rgba(0, 212, 255, 0.07), transparent 65%),
    radial-gradient(ellipse 560px 380px at 6% 115%, rgba(139, 92, 246, 0.05), transparent 65%);
}
.masthead .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.masthead-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-bottom: 0.7rem;
}
.masthead-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand-glow);
  animation: mastPulse 2.4s ease-in-out infinite;
}
@keyframes mastPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.masthead-title {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}
.masthead-title-accent {
  display: inline;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.masthead-tagline {
  margin-top: 0.85rem;
  font-size: clamp(0.85rem, 1.25vw, 0.95rem);
  color: var(--white-dim);
  opacity: 0.78;
  line-height: 1.55;
  max-width: 56ch;
  text-wrap: balance;
}
.masthead-meta {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.masthead-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-dim);
  opacity: 0.9;
}
.masthead-updated svg { opacity: 0.6; }
.masthead-updated strong { color: var(--white); font-weight: 600; }
.masthead-sep { color: var(--white-dim); opacity: 0.4; }
.masthead-audio {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  transition: color 0.25s ease;
}
.masthead-audio > svg { flex-shrink: 0; opacity: 0.8; }
@media (hover: hover) { .masthead-audio:hover { color: var(--white); } }

/* ── Section header (centrato, coerente col design system) ──────────── */
.home-section-desc {
  margin: 1rem auto 0;
  font-size: 1.1rem;
  color: var(--white-dim);
  line-height: 1.7;
  max-width: 560px;
}
.home-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.25);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.home-header-cta svg { transition: transform 0.25s var(--ease-spring); }
@media (hover: hover) {
  .home-header-cta:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.35); }
  .home-header-cta:hover svg { transform: translateX(4px); }
}
.blog-section-cta,
.video-section-cta {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

/* ── News in alto: padding ridotto, header compatti ────────────────── */
.news-section { padding-top: clamp(1.25rem, 2.5vh, 1.75rem); }
.news-section .section-header,
.video-section .section-header,
.blog-preview-section .section-header { margin-bottom: 3rem; }

/* ── Bento news ───────────────────────────────────────────────────── */
.news-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.featured-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) {
  .featured-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35);
  }
}
.featured-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-raised);
}
.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}
@media (hover: hover) { .featured-card:hover .featured-media img { transform: scale(1.03); } }
.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  background: rgba(6, 6, 12, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
}
.featured-body {
  padding: 1.75rem 1.85rem 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}
.featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}
.featured-title a { color: var(--white); }
@media (hover: hover) { .featured-title a:hover { color: var(--brand); } }
.featured-desc {
  color: var(--white-dim);
  font-size: 1.1rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-readmore {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--black);
  background: var(--gradient-brand);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  width: fit-content;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}
.featured-readmore svg { transition: transform 0.25s var(--ease-spring); }
@media (hover: hover) {
  .featured-readmore:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand), 0 0 30px rgba(0, 212, 255, 0.12);
  }
  .featured-readmore:hover svg { transform: translateX(4px); }
}

.latest-rail {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem 1.35rem;
}
.latest-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
}
.latest-tab {
  flex: 1 1 0;
  padding: 0.55rem 0.5rem;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  white-space: nowrap;
  color: var(--white-dim);
  transition: background 0.25s ease, color 0.25s ease;
}
@media (hover: hover) { .latest-tab:hover { color: var(--white); } }
.latest-tab[aria-selected="true"] {
  background: var(--gradient-brand);
  color: var(--black);
}
.latest-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.latest-viewport[hidden] { display: none; }
.latest-viewport.latest-viewport--static {
  -webkit-mask-image: none;
  mask-image: none;
}
.latest-rank {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  min-width: 1.4em;
  flex-shrink: 0;
}
/* Più lette: la lista riempie il pannello distribuendo lo spazio
   residuo tra le righe (altezza rail = altezza featured, variabile). */
.latest-viewport--static .latest-list {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}
@media (max-width: 1024px) {
  /* Su tablet/mobile il rail non è più affiancato: il pannello statico
     cresce in altezza naturale invece di tagliare a 340px. */
  .latest-viewport--static { flex: none; height: auto; overflow: visible; }
}
.latest-viewport {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  margin-bottom: 1.1rem;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
}
/* Ritardo iniziale di 3s: al click sul tab "Ultime" la marquee resta ferma, così la
   prima riga è leggibile. Riparte da capo a ogni apertura del pannello (nascosto =
   display:none) e l'hover durante l'attesa la congela. */
.latest-track {
  display: flex;
  flex-direction: column;
  animation: latest-scroll var(--latest-duration, 60s) linear var(--latest-delay, 3s) infinite;
  will-change: transform;
}
/* Pausa solo sulla lista: il focus lasciato sul tab dopo il clic non deve fermare lo scorrimento */
@media (hover: hover) {
  .latest-viewport:hover .latest-track { animation-play-state: paused; }
}
.latest-viewport:focus-visible .latest-track { animation-play-state: paused; }
.latest-track:has(a:focus-visible) { animation-play-state: paused; }
@keyframes latest-scroll {
  to { transform: translateY(-50%); }
}
.latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.latest-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.latest-item a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 0;
  color: var(--white);
}
.latest-time {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--white-dim);
  opacity: 0.65;
  white-space: nowrap;
  flex-shrink: 0;
}
.latest-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}
@media (hover: hover) { .latest-item a:hover .latest-item-title { color: var(--brand); } }
.latest-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--black);
  background: var(--gradient-brand);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  width: fit-content;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}
.latest-more svg { transition: transform 0.25s var(--ease-spring); }
@media (hover: hover) {
  .latest-more:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand), 0 0 30px rgba(0, 212, 255, 0.12);
  }
  .latest-more:hover svg { transform: translateX(4px); }
}

/* ── Video funnel ─────────────────────────────────────────────────── */
.video-section {
  background: var(--surface);
  position: relative;
}
.video-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-subtle), transparent);
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}
.video-card { display: flex; flex-direction: column; gap: 1rem; }
.video-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--black);
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
@media (hover: hover) {
  .video-facade:hover {
    border-color: rgba(0, 212, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 14px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 212, 255, 0.07);
  }
}
.video-facade:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.video-facade .video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-raised);
  transition: transform 0.5s var(--ease-out-expo), filter 0.3s ease;
}
@media (hover: hover) {
  .video-facade:hover .video-thumb { transform: scale(1.04); filter: brightness(0.85); }
}
.video-facade.is-loaded .video-thumb,
.video-facade.is-loaded .video-play { opacity: 0; pointer-events: none; }
.video-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 0, 0, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease-spring), background 0.3s ease;
}
.video-play svg { margin-left: 2px; }
@media (hover: hover) {
  .video-facade:hover .video-play,
  .video-facade:focus-visible .video-play { background: #ff0000; transform: translate(-50%, -50%) scale(1.08); }
}
.video-play--sm { width: 42px; height: 32px; }
.video-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}
.video-card-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.video-article-link,
.video-yt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white-dim);
  transition: color 0.25s ease;
}
@media (hover: hover) { .video-article-link:hover, .video-yt-link:hover { color: var(--brand); } }
.video-shorts-label {
  margin: 3.25rem 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white-dim);
}
.video-shorts-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}
.video-shorts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 860px;
}
.short-card { display: flex; flex-direction: column; gap: 0.75rem; }
.video-facade--short { aspect-ratio: 9 / 16; }
.short-card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white-dim);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Blog preview ─────────────────────────────────────────────────── */
.blog-preview-section { position: relative; }
.blog-preview-section .card-desc,
.card-grid .card-desc {
  font-size: 1.05rem;
  line-height: 1.7;
}
.card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.08);
  background: var(--surface-raised);
}
.card-placeholder { opacity: 0.55; }
.card-placeholder .card-title,
.card-placeholder .card-desc { color: var(--white-dim); }

/* ── Reveal on scroll (attivo solo con JS: senza JS tutto visibile) ── */
.js .load-anim {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0s);
}
.js .load-anim.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .news-bento { grid-template-columns: 1fr; }
  .latest-viewport { flex: none; height: 340px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-shorts { max-width: 620px; }
}
@media (max-width: 640px) {
  .news-bento { gap: 1.25rem; }
  .featured-body { padding: 1.35rem 1.4rem 1.5rem; }
  .latest-rail { padding: 1.25rem 1.3rem 1.15rem; }
  .latest-item a { padding: 0.75rem 0; gap: 0.6rem; }
  .video-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .video-shorts {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    max-width: none;
  }
  .video-shorts::-webkit-scrollbar { display: none; }
  .short-card { flex: 0 0 62%; scroll-snap-align: start; }
  .masthead-meta { gap: 0.75rem; }
}

/* ── Reduced motion ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .js .load-anim {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .masthead-dot { animation: none; }
  .featured-card,
  .featured-media img,
  .video-facade,
  .video-facade .video-thumb,
  .video-play { transition: none !important; }
  .latest-track { animation: none; }
  .latest-viewport { overflow-y: auto; }
}

/* ══ Redesign AI-native (2026-09-26): masthead "Chiedi alle news" ══════ */
.masthead--ask { padding-bottom: clamp(1.25rem, 3vh, 1.75rem); }
.masthead-title--compact { font-size: clamp(1.7rem, 3.6vw, 2.75rem); max-width: 22ch; }
.masthead-title--compact .masthead-title-accent { display: block; }

.ask {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: min(100%, 44rem);
  margin-top: 1.4rem;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.ask:focus-within {
  border-color: rgba(0, 212, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.12), 0 12px 40px rgba(0, 212, 255, 0.08);
}
.ask-icon { color: var(--brand); flex-shrink: 0; }
.ask input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--white); font: inherit; font-size: 1rem;
  padding: 0.55rem 0;
}
.ask input::placeholder { color: var(--white-dim); opacity: 0.75; }
.ask input::-webkit-search-cancel-button { display: none; }
.ask-kbd {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--white-dim);
  padding: 0.15rem 0.45rem; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; opacity: 0.7;
}
.ask-submit {
  flex-shrink: 0;
  padding: 0.6rem 1.15rem;
  border: 0; border-radius: var(--radius-full);
  background: var(--gradient-brand); color: var(--black);
  font-weight: 700; font-size: 0.875rem; cursor: pointer;
}
.ask-submit:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* Microfono (input vocale): visibile solo se il browser supporta la Web Speech API */
.ask-mic {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  border: 1px solid transparent; border-radius: 50%;
  background: transparent; color: var(--white-dim); cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.ask-mic[hidden] { display: none; }
@media (hover: hover) { .ask-mic:hover { color: var(--brand); background: rgba(0, 212, 255, 0.08); } }
.ask-mic:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ask-mic.is-listening {
  color: #ff4d6d; background: rgba(255, 77, 109, 0.12); border-color: rgba(255, 77, 109, 0.45);
  animation: askMicPulse 1.4s ease-out infinite;
}
@keyframes askMicPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(255, 77, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); }
}
.ask.is-listening .ask-kbd { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .ask-mic.is-listening { animation: none; } }

/* Suggerimenti istantanei (ricerca) sotto la barra */
.ask-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 0.5rem); z-index: 30;
  text-align: left;
  background: #0f1119; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  padding: 0.35rem; max-height: 60vh; overflow-y: auto;
}
.ask-suggest[hidden] { display: none; }
.ask-opt {
  display: flex; align-items: baseline; gap: 0.6rem; width: 100%;
  padding: 0.6rem 0.75rem; border-radius: 10px;
  color: var(--white); text-decoration: none; font-size: 0.9rem; line-height: 1.35;
  background: transparent; border: 0; cursor: pointer; text-align: left; font-family: inherit;
}
.ask-opt[aria-selected="true"] { background: rgba(0, 212, 255, 0.08); }
@media (hover: hover) { .ask-opt:hover { background: rgba(0, 212, 255, 0.08); } }
.ask-opt-kind { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); flex-shrink: 0; min-width: 5.5em; }
.ask-opt--ai { font-weight: 600; }
.ask-opt--ai .ask-opt-kind { color: var(--black); background: var(--gradient-brand); border-radius: 6px; padding: 0.1rem 0.4rem; min-width: 0; }

.ask-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; margin-top: 0.85rem; max-width: 46rem; }
.ask-chip {
  padding: 0.35rem 0.8rem; border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03);
  color: var(--white-dim); font: inherit; font-size: 0.8125rem; cursor: pointer;
  transition: all 0.2s ease;
}
@media (hover: hover) { .ask-chip:hover { color: var(--white); border-color: rgba(0,212,255,0.35); background: rgba(0,212,255,0.05); } }

/* Pannello risposta */
.ask-panel {
  width: min(100%, 44rem); margin-top: 1rem; text-align: left;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(0,212,255,0.25);
  border-radius: var(--radius-lg); padding: 1.1rem 1.25rem;
  animation: askIn 0.35s var(--ease-smooth, ease) both;
}
.ask-panel[hidden] { display: none; }
@keyframes askIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ask-panel-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.ask-panel-q { font-weight: 700; color: var(--white); }
.ask-panel-close { background: none; border: 0; color: var(--white-dim); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.ask-panel-body { margin-top: 0.6rem; color: var(--white-dim); line-height: 1.65; font-size: 0.95rem; }
.ask-panel-body p + p { margin-top: 0.6rem; }
.ask-panel-body strong { color: var(--white); }
.ask-panel-body a { color: var(--brand); }
.ask-cite { font-size: 0.72em; vertical-align: super; color: var(--brand); text-decoration: none; margin-left: 1px; }
.ask-panel-sources { margin: 0.85rem 0 0; padding: 0.75rem 0 0 1.2rem; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.85rem; }
.ask-panel-sources:empty { display: none; }
.ask-panel-sources li + li { margin-top: 0.3rem; }
.ask-panel-sources a { color: var(--white); text-decoration: none; }
@media (hover: hover) { .ask-panel-sources a:hover { color: var(--brand); } }
.ask-panel-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; margin-top: 0.9rem; }
.ask-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.ask-listen {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 28px; padding: 0.2rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-full);
  background: transparent; color: var(--white); font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.ask-listen[hidden] { display: none; }
@media (hover: hover) { .ask-listen:hover { border-color: rgba(0, 212, 255, 0.45); color: var(--brand); } }
.ask-listen.is-playing { border-color: rgba(0, 212, 255, 0.55); color: var(--brand); background: rgba(0, 212, 255, 0.08); }
.ask-continue { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 600; font-size: 0.875rem; cursor: pointer; }
.ask-panel-note { font-size: 0.72rem; color: var(--white-dim); opacity: 0.75; }
.ask-panel-note a { color: inherit; }
.ask-loading { display: inline-flex; gap: 4px; }
.ask-loading span { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: askDot 1s infinite ease-in-out; }
.ask-loading span:nth-child(2) { animation-delay: 0.15s; }
.ask-loading span:nth-child(3) { animation-delay: 0.3s; }
@keyframes askDot { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* ══ Colonna: 3 schede + "Il punto di oggi" ═════════════════════════ */
.latest-tabs .latest-tab { font-size: 0.7rem; letter-spacing: 0.06em; padding: 0.55rem 0.35rem; }
.briefing { display: flex; flex-direction: column; }
.briefing-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0.6rem 0 0.35rem; }
.briefing-date { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white-dim); }
.briefing-play {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem; border-radius: var(--radius-full);
  border: 1px solid rgba(0,212,255,0.35); background: rgba(0,212,255,0.06);
  color: var(--brand); font: inherit; font-size: 0.75rem; font-weight: 700; cursor: pointer;
}
.briefing-play[hidden] { display: none; }
.briefing-play.is-playing { background: var(--gradient-brand); color: var(--black); border-color: transparent; }
.briefing-list { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.briefing-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.briefing-item:last-child { border-bottom: 0; }
.briefing-item a { display: flex; align-items: baseline; gap: 0.7rem; padding: 0.7rem 0; }
.briefing-text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.briefing-headline { font-size: 0.9rem; font-weight: 600; line-height: 1.35; color: var(--white); transition: color 0.25s ease; }
.briefing-why {
  font-size: 0.78rem; line-height: 1.4; color: var(--white-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (hover: hover) { .briefing-item a:hover .briefing-headline { color: var(--brand); } }

@media (max-width: 640px) {
  .ask { padding-left: 0.85rem; margin-top: 1.1rem; }
  .ask input { font-size: 16px; } /* niente zoom iOS */
  .ask-kbd { display: none; }
  .ask-submit { padding: 0.55rem 0.9rem; }
  .ask { gap: 0.35rem; }
  .ask-mic { width: 44px; height: 44px; }
  .ask-listen { min-height: 44px; }
  .ask-chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: 100%; scrollbar-width: none; padding-bottom: 0.2rem; }
  .ask-chips::-webkit-scrollbar { display: none; }
  .ask-chip { white-space: nowrap; }
}
@media (hover: none) { .ask-kbd { display: none; } }
/* Bento subito sotto il masthead: niente titolo di sezione visibile */
.news-section--top { padding-top: clamp(1.25rem, 3vh, 2rem); }
.ask input:focus, .ask input:focus-visible { outline: none; box-shadow: none; border: 0; }
.ask-panel-body ul { margin: 0.4rem 0; padding-left: 1.1rem; }
.ask-panel-body li + li { margin-top: 0.35rem; }
.ask-followups { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }

/* ══ Mosaico "Altre notizie" ═════════════════════════════════════════ */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mosaic-card--big { grid-column: span 2; }
.mosaic-card--big .card-image { aspect-ratio: 16 / 8; }
.mosaic-card--big .card-title { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.mosaic-hot {
  display: flex; flex-direction: column;
  padding: 1.4rem 1.5rem; border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 100% 0%, rgba(0,212,255,0.12), transparent 60%), var(--surface);
  border: 1px solid rgba(0,212,255,0.2);
}
.mosaic-hot-kicker { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand); }
.mosaic-hot-title { font-size: 1.6rem; margin: 0.35rem 0 0.9rem; }
.mosaic-hot-title a { color: var(--white); text-decoration: none; }
.mosaic-hot-list { list-style: none; margin: 0; padding: 0 0 0 0.9rem; border-left: 1px solid rgba(255,255,255,0.12); flex: 1; }
.mosaic-hot-list li { position: relative; padding: 0 0 0.9rem 0.5rem; line-height: 1.35; }
.mosaic-hot-list li::before { content: ''; position: absolute; left: calc(-0.9rem - 4px); top: 0.45em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.mosaic-hot-list time { display: block; font-family: var(--font-mono); font-size: 0.68rem; color: var(--white-dim); opacity: 0.75; }
.mosaic-hot-list a { color: var(--white); text-decoration: none; font-size: 0.9rem; font-weight: 600; line-height: 1.35; }
@media (hover: hover) { .mosaic-hot-list a:hover { color: var(--brand); } }
.mosaic-hot-foot { display: flex; justify-content: space-between; align-items: center; }
.mosaic-hot-more { color: var(--brand); text-decoration: none; font-weight: 600; font-size: 0.875rem; }
@media (max-width: 1024px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .mosaic-card--big { grid-column: span 2; }
  .mosaic-hot-list li:nth-child(n+5) { display: none; }
}
@media (max-width: 640px) {
  .mosaic { grid-template-columns: 1fr; }
  .mosaic-card--big { grid-column: auto; }
  .mosaic-card--big .card-image { aspect-ratio: 16 / 9; }
}

/* ── Galassia delle news nello sfondo del masthead (galaxy-bg.js) ── */
.masthead-galaxy {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease;
  /* più tenue al centro, dove stanno titolo e barra */
  -webkit-mask-image: radial-gradient(ellipse 42% 60% at 50% 48%, rgba(0, 0, 0, 0.35), #000 80%);
  mask-image: radial-gradient(ellipse 42% 60% at 50% 48%, rgba(0, 0, 0, 0.35), #000 80%);
}
.masthead-galaxy.is-ready { opacity: 1; }
.masthead--ask .container { position: relative; z-index: 1; }
.masthead-galaxy-link { white-space: nowrap; }
.masthead-galaxy-link span { display: inline-block; transition: transform 0.4s ease; }
.masthead-galaxy-link:focus-visible span { transform: rotate(72deg) scale(1.2); }
@media (hover: hover) { .masthead-galaxy-link:hover span { transform: rotate(72deg) scale(1.2); } }
/* Selettore della voce di lettura (voci del browser) */
.ask-voice {
  max-width: 13rem;
  min-height: 28px;
  padding: 0.2rem 1.6rem 0.2rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239aa0b5' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 0.6rem center;
  color: var(--white-dim);
  font: inherit;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.ask-voice[hidden] { display: none; }
.ask-voice:focus-visible { border-color: rgba(0, 212, 255, 0.45); color: var(--white); outline: none; }
@media (hover: hover) { .ask-voice:hover { border-color: rgba(0, 212, 255, 0.45); color: var(--white); outline: none; } }
.ask-voice option { background: #0c0d17; color: #e8e8f0; }
@media (max-width: 600px) { .ask-voice { min-height: 44px; max-width: 100%; } }
html[data-theme="light"] .ask-voice option { background: #fff; color: #14162a; }

/* ── "Da quando sei passato" (cookie at_prev, index.php) ─────────────── */
.since-visit {
  position: relative;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  padding: 0.85rem 2.5rem 0.85rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 0.92rem;
}
.since-visit-head {
  margin: 0 0 0.4rem;
  color: var(--white-dim);
}
.since-visit-head strong { color: var(--white); }
.since-visit-dot {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand-glow);
}
.since-visit-list {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.25rem;
}
.since-visit-list a { color: var(--white); text-decoration: none; }
@media (hover: hover) {
  .since-visit-list a:hover { color: var(--brand); }
}
.since-visit-list a:focus-visible { color: var(--brand); }
.since-visit-src {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--white-dim);
}
.since-visit-close {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: none;
  color: var(--white-dim);
  font-size: 1.3rem;
  cursor: pointer;
}

/* Cambio scheda della colonna (Il punto · Ultime · Più lette): View Transition
 * dello stesso documento; il nome esiste solo durante il cambio (.vt-tabs). */
.vt-tabs .latest-viewport[role="tabpanel"] { view-transition-name: rail-panel; }
::view-transition-old(rail-panel) { animation: rail-out 0.16s ease both; }
::view-transition-new(rail-panel) { animation: rail-in 0.3s var(--ease-out-expo) both; }
::view-transition-group(rail-panel) { animation-duration: 0.3s; }
@keyframes rail-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes rail-in { from { opacity: 0; transform: translateY(6px); } }

/* "Ultime" come linea del tempo: filo luminoso con un nodo per notizia
 * (il nastro scorre con transform, quindi niente animazioni legate allo scroll). */
.latest-list { position: relative; padding-left: 1.1rem; }
.latest-list::before {
  content: ''; position: absolute; left: 3px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, rgba(0, 212, 255, 0.45), rgba(0, 212, 255, 0.08));
}
.latest-item a { position: relative; }
.latest-item a::before {
  content: ''; position: absolute; left: calc(-1.1rem + 1px); top: 1.28rem;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.6);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.latest-item a:focus-visible::before { background: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 0 8px var(--brand); }
@media (hover: hover) {
  .latest-item a:hover::before { background: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 0 8px var(--brand); }
}
