/* ==========================================================================
   Maya – Delitti e Scirocco | Design System: Noir Salentino & Giallo Mediterraneo
   ========================================================================== */

:root {
  /* Palette Colori: Contrasto Sole / Ombre Salentine */
  --gold:         hsl(38, 72%, 52%);
  --gold-light:   hsl(38, 80%, 68%);
  --gold-dim:     hsl(38, 50%, 35%);
  --blue-deep:    hsl(212, 35%, 12%);
  --blue-mid:     hsl(212, 30%, 18%);
  --blue-surface: hsl(212, 25%, 22%);
  --blue-border:  hsl(212, 20%, 30%);
  --olive:        hsl(82, 28%, 38%);
  --olive-light:  hsl(82, 30%, 52%);
  --cream:        hsl(38, 30%, 90%);
  --cream-dim:    hsl(38, 15%, 65%);
  --white:        #f8f4ee;

  /* Effetti di luce & Chiaroscuro */
  --shadow-gold:  0 0 40px hsla(38, 72%, 52%, 0.25);
  --shadow-dark:  0 20px 60px rgba(0,0,0,0.5);
  --radius:       0.75rem;
  --radius-lg:    1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--blue-deep);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', system-ui, sans-serif;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   NAVBAR (Glassmorphism & Branding)
   ========================================================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2.25rem;
  background: hsla(212, 35%, 8%, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid hsla(38, 72%, 52%, 0.15);
  transition: padding 0.3s ease;
  column-gap: 1.25rem;
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.nav-logo span {
  color: var(--cream-dim);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('maya_cliff_softer_1791646776300.jpg');
  background-size: cover;
  background-position: center 20%;
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--blue-deep) 0%, hsla(212, 35%, 8%, 0.75) 40%, hsla(212, 35%, 8%, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 3rem 5rem;
  max-width: 780px;
  animation: fadeUp 1.2s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid hsla(38, 72%, 52%, 0.4);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero-title em {
  color: var(--gold-light);
  font-style: italic;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--cream-dim);
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--gold);
  color: var(--blue-deep);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid hsla(38, 30%, 80%, 0.35);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-dim);
  animation: fadeUp 1.5s 0.5s ease both;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%      { opacity: 1; transform: scaleY(1.1); }
}

/* ==========================================================================
   SEZIONI COMUNI
   ========================================================================== */
section {
  padding: 6rem 3rem;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}

.section-body {
  font-size: 1.05rem;
  color: var(--cream-dim);
  max-width: 60ch;
  line-height: 1.8;
}

.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 1.5rem 0;
}

/* ==========================================================================
   ABOUT / MAYA
   ========================================================================== */
#about {
  background: var(--blue-mid);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: var(--shadow-dark);
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--blue-deep);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-dark);
  max-width: 260px;
}

.about-badge p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold-light);
  line-height: 1.5;
}

.about-badge cite {
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--cream-dim);
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
}

.bio-detail {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bio-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--olive-light);
  border: 1px solid hsla(82, 28%, 38%, 0.4);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  width: fit-content;
}

/* ==========================================================================
   GALLERIA FOTOGRAFICA (Le 5 Scene di Maya)
   ========================================================================== */
#gallery {
  background: var(--blue-deep);
}

.gallery-header {
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-card:hover img {
    transform: scale(1.08);
  }
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(212, 35%, 8%, 0.95) 0%, hsla(212, 35%, 8%, 0.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  opacity: 1;
  transition: opacity 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-card .gallery-card-overlay {
    opacity: 0;
  }
  .gallery-card:hover .gallery-card-overlay {
    opacity: 1;
  }
}

.gallery-card-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.gallery-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--white);
}

/* ==========================================================================
   ARTICOLI / I CASI
   ========================================================================== */
#articles {
  background: var(--blue-mid);
}

.articles-header {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.articles-grid .article-card:first-child {
  grid-column: span 2;
}

.article-card {
  position: relative;
  background: var(--blue-surface);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold);
    border-color: hsla(38, 72%, 52%, 0.4);
  }
}

.article-card-top {
  padding: 2rem 2rem 0;
}

.article-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: hsla(38, 72%, 52%, 0.12);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .article-card:hover .article-number {
    color: hsla(38, 72%, 52%, 0.25);
  }
}

.article-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.article-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-hook {
  font-size: 0.88rem;
  color: var(--cream-dim);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
  border-left: 2px solid var(--gold-dim);
  padding-left: 0.85rem;
}

.article-card-bottom {
  padding: 0 1.6rem 1.6rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.article-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--olive-light);
}

.article-location::before {
  content: '📍';
  font-size: 0.7rem;
}

.article-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  transition: gap 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

@media (hover: hover) and (pointer: fine) {
  .article-read-link:hover {
    gap: 0.7rem;
  }
}

.article-read-link::after {
  content: '→';
}

/* ==========================================================================
   SEASON BANNER
   ========================================================================== */
#season {
  background: linear-gradient(135deg, var(--blue-mid) 0%, hsl(212, 35%, 14%) 100%);
  border-top: 1px solid var(--blue-border);
  border-bottom: 1px solid var(--blue-border);
  padding: 3rem;
  text-align: center;
}

.season-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.season-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-style: italic;
  color: var(--white);
  margin: 0.5rem 0 1rem;
}

.season-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-border);
  transition: background 0.3s ease;
}

.dot.active {
  background: var(--gold);
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
#newsletter {
  background: var(--blue-deep);
  text-align: center;
}

.newsletter-inner {
  max-width: 620px;
  margin: 0 auto;
}

.newsletter-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-input {
  flex: 1;
  min-width: 260px;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--blue-border);
  background: var(--blue-surface);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease;
}

.newsletter-input::placeholder {
  color: var(--cream-dim);
}

.newsletter-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px hsla(38, 72%, 52%, 0.1);
}

.newsletter-note {
  font-size: 0.78rem;
  color: var(--cream-dim);
  margin-top: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
#footer {
  background: hsl(212, 35%, 8%);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--blue-border);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

.footer-brand p {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--cream-dim);
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--cream-dim);
  letter-spacing: 0.04em;
  transition: color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateY(-1px);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--cream-dim);
  opacity: 0.6;
}

/* ==========================================================================
   ANIMAZIONI (Reveal & Transizioni)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */
@media (min-width: 901px) and (max-width: 1279px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid .article-card:first-child { grid-column: span 2; }
}

@media (max-width: 900px) {
  #navbar { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 4rem 1.5rem; }
  #about { grid-template-columns: 1fr; gap: 3rem; }
  .about-badge { right: 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid > :last-child { grid-column: span 2; }
  .articles-grid { grid-template-columns: 1fr; }
  .articles-grid .article-card:first-child { grid-column: span 1; }
  .hero-content { padding: 4rem 1.5rem 5rem; }
  .scroll-hint { display: none; }
  #footer { flex-direction: column; text-align: center; padding: 2.5rem 1.5rem; }
  .articles-header { flex-direction: column; align-items: flex-start; }
  .articles-header .section-body { text-align: left; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid > :last-child { grid-column: span 1; }
  .gallery-card { aspect-ratio: 4/3; }
  .article-card-bottom { padding: 0 1.15rem 1.4rem; }
}

@media (max-width: 460px) {
  .article-listen-btn,
  .article-read-link { font-size: 0.72rem; }
  .article-card-bottom > span:last-child { gap: 0.45rem; }
}

/* ==========================================================================
   SOUNDSCAPE: SCIROCCO AMBIENT CONTROLLER (Web Audio)
   ========================================================================== */
.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsla(212, 30%, 16%, 0.85);
  border: 1px solid var(--blue-border);
  color: var(--cream-dim);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sound-toggle-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 15px hsla(38, 72%, 52%, 0.2);
}

.sound-toggle-btn.active {
  background: hsla(38, 72%, 52%, 0.15);
  border-color: var(--gold);
  color: var(--gold-light);
}

.sound-pulse-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream-dim);
  transition: background 0.3s;
}

.sound-toggle-btn.active .sound-pulse-icon {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulseGold 1.5s infinite;
}

/* ==========================================================================
   CRIME MAP: MAPPA INVESTIGATIVA DEL SALENTO
   ========================================================================== */
#crime-map {
  background: linear-gradient(180deg, var(--blue-deep) 0%, hsl(212, 38%, 9%) 100%);
  border-top: 1px solid var(--blue-border);
  border-bottom: 1px solid var(--blue-border);
  padding: 6rem 3rem;
  position: relative;
  overflow: hidden;
}

.map-container {
  max-width: 1200px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.map-visual-card {
  position: relative;
  background: var(--blue-mid);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-dark);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: 
    radial-gradient(circle at 10% 20%, hsla(38, 72%, 52%, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, hsla(212, 50%, 25%, 0.2) 0%, transparent 50%);
}

.salento-svg-map {
  width: 100%;
  height: 380px;
  display: block;
  overflow: visible;
}

.map-pin {
  cursor: pointer;
}

.map-pin .pin-hitbox {
  pointer-events: all;
  fill: transparent;
}

.map-pin .pin-core {
  transition: r 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.25s ease, filter 0.25s ease;
  pointer-events: none;
}

.map-pin:hover .pin-core, 
.map-pin.active .pin-core {
  r: 10px;
  fill: var(--gold-light);
  filter: url(#gold-glow) drop-shadow(0 0 6px var(--gold));
}

.map-pin text {
  pointer-events: none;
  transition: fill 0.2s ease, font-weight 0.2s ease;
}

.map-pin:hover text,
.map-pin.active text {
  fill: #ffffff;
  font-weight: 700;
}

.pin-pulse {
  pointer-events: none;
  animation: radarWave 2.4s ease-out infinite;
  transform-origin: center;
}

@keyframes radarWave {
  0% { r: 6; opacity: 0.9; }
  100% { r: 24; opacity: 0; }
}

@keyframes pulseGold {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.dossier-panel {
  background: hsla(212, 30%, 14%, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-dark);
  position: relative;
  transition: all 0.3s ease;
}

.dossier-panel::before {
  content: 'FASCICOLO INVESTIGATIVO SALENTO';
  position: absolute;
  top: -11px;
  left: 2rem;
  background: var(--gold);
  color: #0b121c;
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
}

.dossier-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  border: 1px solid var(--blue-border);
}

.dossier-case-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.dossier-title {
  font-size: 1.4rem;
  font-family: 'Outfit', sans-serif;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.dossier-location {
  font-size: 0.85rem;
  color: var(--cream-dim);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.dossier-clue-box {
  background: hsla(212, 35%, 10%, 0.7);
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--cream);
}

.dossier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.dossier-actions .btn.dossier-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.82rem;
}

.dossier-actions .article-listen-btn {
  padding: 0.6rem 1.15rem;
  border: 1px solid hsla(38, 30%, 80%, 0.35);
  border-radius: 999px;
  font-size: 0.82rem;
}

.dossier-actions .article-listen-btn:hover,
.dossier-actions .article-listen-btn.playing {
  color: var(--gold-light);
  border-color: var(--gold);
  background: hsla(38, 60%, 55%, 0.08);
}

.dossier-status-line {
  font-size: 0.75rem;
  color: var(--cream-dim);
  margin: 0;
}

.dossier-status-line strong {
  color: var(--gold);
}

/* ==========================================================================
   LA VOCE DI MAYA (lettore audio + sintesi vocale)
   ========================================================================== */
#voice {
  padding: 6rem 3rem;
  background: var(--blue-deep);
  border-bottom: 1px solid var(--blue-border);
}

.voice-header {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.voice-hub {
  max-width: 1000px;
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

.voice-now {
  grid-column: 1;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--blue-surface);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
}

.voice-cover {
  width: 140px;
  height: 140px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--blue-border);
  box-shadow: var(--shadow-gold);
}

.voice-now-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.voice-now-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.voice-now-title {
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1.25;
}

.voice-now-sub {
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.voice-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
  margin: 0.55rem 0 0.35rem;
}

.voice-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.3s linear;
}

.voice-controls {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.voice-play-btn {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--gold);
  color: var(--blue-deep);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.voice-play-btn:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow-gold);
}

.voice-status {
  font-size: 0.82rem;
  color: var(--cream);
  font-weight: 600;
}

.voice-source {
  flex-basis: 100%;
  font-size: 0.72rem;
  color: var(--cream-dim);
}

.voice-list {
  grid-column: 1;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.voice-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  background: var(--blue-mid);
  border: 1px solid var(--blue-border);
  color: var(--cream);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.voice-item-btn:hover {
  border-color: var(--gold-dim);
  background: var(--blue-surface);
}

.voice-item.active .voice-item-btn {
  border-color: var(--gold);
  background: var(--blue-surface);
}

.voice-item-play {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-dim);
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

.voice-item.active .voice-item-play {
  background: var(--gold);
}

.voice-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.voice-item-tag {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.voice-item-title {
  font-size: 0.92rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-settings {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--blue-mid);
  border: 1px solid var(--blue-border);
}

.voice-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.voice-field span {
  font-size: 0.78rem;
  color: var(--cream-dim);
}

.voice-field select {
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  background: var(--blue-deep);
  border: 1px solid var(--blue-border);
  color: var(--cream);
  font-family: inherit;
  font-size: 0.85rem;
}

.voice-field select:focus {
  outline: none;
  border-color: var(--gold);
}

.voice-field input[type="range"] {
  accent-color: var(--gold);
}

.voice-field output {
  color: var(--gold-light);
  font-weight: 600;
}

/* Pulsante "Ascolta" nelle card dei racconti */
.article-listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--gold);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.article-listen-btn:hover,
.article-listen-btn.playing {
  color: var(--gold-light);
}

.article-card-bottom > span:last-child {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.45rem 0.7rem;
}

@media (max-width: 900px) {
  #crime-map { padding: 4rem 1.5rem; }
  .map-container { grid-template-columns: 1fr; gap: 2.5rem; }
  #voice { padding: 4rem 1.5rem; }
  .voice-hub { grid-template-columns: 1fr; }
  .voice-settings { grid-column: 1; grid-row: auto; }
  .voice-now { grid-template-columns: 110px 1fr; }
  .voice-cover { width: 110px; height: 110px; }
}
