.news-title{
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  margin: 0 0 10px 0;
  font-size: 34px;
}

.news-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.news-controls{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.news-search{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  min-width: min(320px, 100%);
}

.news-select{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
}

.news-layout{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.news-list, .news-detail{
  background: rgba(255,255,255,.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.news-list{
  padding: 10px;
}

.news-item.active{
  outline: 2px solid rgba(122,0,0,.35);
  background: rgba(255,255,255,.10);
}

.news-item-title{
  font-weight: 900;
  margin: 0 0 4px 0;
}

.news-item-meta{
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
}

.news-detail{
  padding: 16px;
}

.sticky-detail{
  background: rgba(255,255,255,.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  backdrop-filter: blur(6px);
  padding: 14px;
  margin-bottom: 14px;
}

.sticky-empty{
  color: var(--muted);
  font-weight: 650;
}

.sticky-title{
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 24px;
  margin: 0 0 6px 0;
}

.sticky-meta{
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.sticky-notes{
  margin: 10px 0 12px 0;
  font-weight: 600;
}

.sticky-iframe{
  width: 100%;
  height: 520px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background: #fff;
}

@media (max-width: 480px){
  .sticky-iframe{ height: 420px; }
}


.detail-empty{
  color: var(--muted);
  font-weight: 650;
}

.detail-title{
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 30px;
  margin: 0 0 6px 0;
}

.detail-meta{
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.detail-poster{
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.8);
}

/* separatore */
.news-item{
  border-bottom: 1px solid rgba(0,0,0,.15);
  padding: 10px 6px;
}

/* riga compatta */
.news-row{
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
}

/* simbolo + / > */
.news-toggle{
  width: 18px;
  text-align: center;
  font-weight: 900;
  color: #7a0000; /* ceralacca */
}

/* dettagli nascosti */
.news-details{
  display: none;
  margin-top: 8px;
  padding-left: 26px;
  font-weight: 500;
  color: #333;
}

/* aperto */
.news-item.open .news-details{
  display: block;
}
.news-item.open .news-toggle{
  content: "▾";
}


@media (min-width: 900px){
  .news-layout{
    grid-template-columns: 380px 1fr; /* lista + dettaglio */
    align-items: start;
  }
  .news-detail{
    min-height: 520px;
  }
}

.news-item{
  border-bottom: 1px solid rgba(0,0,0,.18);
  padding: 10px 8px;
}

.news-row{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-weight: 800;
}

.news-toggle{
  width: 18px;
  flex: 0 0 18px;
  text-align: center;
  color: #7a0000;
  font-weight: 900;
  margin-top: 2px;
}

.news-details{
  display: none;
  margin-top: 10px;
  margin-left: 28px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.10);
}

.news-item.open .news-details{
  display: block;
}

.news-iframe{
  width: 100%;
  height: 520px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background: #fff;
  margin-top: 10px;
}

@media (max-width: 480px){
  .news-iframe{ height: 420px; }
}

.news-layout{
  display: block; /* mobile default */
  width: 100%;
  gap: 18px;
}

/* Desktop: 2 colonne */
@media (min-width: 1024px){
  .news-layout{
    display: grid;
    grid-template-columns: 420px 1fr;
    align-items: start;
  }

  .news-list{
    max-height: calc(100vh - 220px); /* regola se vuoi */
    overflow: auto;
    padding-right: 6px;
  }

  .news-detail{
    max-height: calc(100vh - 220px);
    overflow: auto;
  }
}

/* box del dettaglio */
.news-detail{
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  padding: 14px;
}

/* iframe grande nel pannello destro */
.news-detail .news-iframe{
  width: 100%;
  height: 720px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  background: #fff;
}

/* Mobile: iframe più basso */
@media (max-width: 1023px){
  .news-detail{ display:none; } /* su mobile non serve il pannello destro */
}


/* Ordinamento */
.news-sortbtn{
  border: 0;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.92);
}
.news-sortbtn:active{ transform: translateY(1px); }
