/* Gielle Interni · News ANIT e Assogesso · 23/10/2026. */
/* Il collegamento mobile compare soltanto quando il menu è compatto.
   Le regole responsive condivise attivano la variante accanto alle bandiere. */
html[data-page="news"] .language-switcher {
  display: inline-flex; align-items: center; flex: 0 0 auto; gap: 6px;
}
html[data-page="news"] .reserved-link-mobile { display: none !important; }
html[data-page="news"] a.gflag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 2px;
  font-size: 30px;
  line-height: 1;
  vertical-align: middle;
  background-repeat: no-repeat;
}
/* Stessa riga lingue/Area riservata delle altre pagine sui dispositivi mobili. */
@media (max-width: 1040px) {
  html[data-page="news"] .main-nav {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  html[data-page="news"] .main-nav .language-switcher {
    display: flex !important;
    grid-column: 1 / -1;
    order: -1;
    width: 100%;
    box-sizing: border-box;
    flex: 0 0 auto;
    flex-flow: row nowrap;
    justify-content: center;
    gap: 6px;
    padding: 10px;
  }
  html[data-page="news"] .main-nav .language-switcher .gflag {
    display: inline-flex !important;
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
  }
  html[data-page="news"] .main-nav .reserved-link-desktop {
    display: none !important;
  }
  html[data-page="news"] .main-nav .language-switcher .reserved-link-mobile {
    display: inline-flex !important;
    flex: 1 1 120px;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 110px;
    max-width: 200px;
    min-height: 44px;
    margin: 0 0 0 4px;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    font-size: clamp(0.75rem, 2.8vw, 0.9rem);
    line-height: 1.2;
  }
}
/* Hero identica alle pagine interne: stessa struttura e stili condivisi.
   site.js gestisce foto, dissolvenza, testi e doppia freccia di scorrimento. */
html[data-page="news"] .hero {
  height: 650px;
  min-height: 650px;
  max-height: 650px;
  padding-block: 0;
  overflow: hidden;
}
html[data-page="news"] .hero-content {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding-block: clamp(42px, 7vw, 84px);
}
/* Fonti a destra del testo, come nella prima versione della pagina News. */
html[data-page="news"] .hero-content.news-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  align-content: center;
}
.news-hero-copy { min-width: 0; }
.news-source-panel { padding: 26px; background: rgb(255 255 255 / 6%); border: 1px solid rgb(139 214 225 / 28%); border-radius: 18px; }
.news-panel-label { display: block; margin-bottom: 20px; font-size: .7rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: #b6d5db; }
.news-source-panel > a { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 14px; padding: 15px 0; border-top: 1px solid rgb(255 255 255 / 13%); color: #fff; text-decoration: none; }
.news-source-panel strong { font-size: 1.3rem; line-height: 1.2; }
.news-source-panel a > span:first-of-type { grid-column: 1; font-size: .8rem; color: #c6dce1; }
.news-source-panel a > span:last-of-type { grid-column: 2; grid-row: 1 / 3; font-size: 1.3rem; color: #8bd6e1; }
.news-source-panel a:hover strong { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 1000px) and (min-width: 701px) {
  html[data-page="news"] .hero-content.news-hero-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
  .news-source-panel { padding: 21px; }
}
@media (max-width: 700px) {
  html[data-page="news"] .hero-content.news-hero-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .news-source-panel { padding: 20px; }
}
.news-content { padding-block: clamp(38px, 5vw, 64px); }
.news-section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.news-section-head h2 { margin: 8px 0 0; font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.04em; }
.news-section-head .eyebrow { font-size: .69rem; }
html[data-page="news"] .news-refresh, html[data-page="news"] .news-page-button { gap: 9px; min-height: 44px; padding: 10px 17px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-family: inherit; cursor: pointer; }
html[data-page="news"] .news-refresh:hover, html[data-page="news"] .news-page-button:hover { border-color: var(--cyan-dark); background: #eef7f8; }
html[data-page="news"] .news-refresh:disabled, html[data-page="news"] .news-page-button:disabled { cursor: default; opacity: .5; transform: none; }
.news-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.news-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.news-filters button { min-height: 42px; padding: 9px 19px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); border-radius: 8px; font: inherit; font-size: .83rem; font-weight: 750; cursor: pointer; }
.news-filters button[aria-pressed="true"] { color: #fff; background: var(--wine); border-color: var(--wine); }
.news-filters button:hover { border-color: var(--wine); }
.news-count { margin: 0; color: var(--ink-soft); font-size: .78rem; white-space: nowrap; }
.news-sync-status { display: flex; flex-wrap: wrap; gap: 7px 24px; margin: 17px 0 26px; color: #52686f; font-size: .73rem; }
.news-status-item { display: inline-flex; align-items: baseline; gap: 6px; }
.news-status-item::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #327a63; }
.news-status-item.is-stale { color: #7e5314; }
.news-status-item.is-stale::before { background: #b67d29; }
.news-status-item.is-loading::before { background: #80969c; }
.news-status-item a { text-underline-offset: 3px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 30px rgb(23 36 42 / 4%); }
.news-card-media { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #eef3f4; }
.news-card-media img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 15px; transition: transform 220ms ease; }
.news-card-media:hover img { transform: scale(1.035); }
.news-card-media.is-placeholder { display: grid; place-items: center; background: radial-gradient(circle at 15% 10%, #d8eef1, transparent 70%), #eef3f4; }
.news-card-media.is-placeholder::before { content: attr(data-source-name); font-size: 1.9rem; font-weight: 850; letter-spacing: -.02em; color: #2f6573; }
.news-card-copy { display: flex; flex-direction: column; flex: 1; padding: 25px; }
.news-card-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: .68rem; line-height: 1.5; color: #60747a; }
.news-source-badge { display: inline-flex; padding: 3px 8px; color: #266c7a; background: #edf8fa; border: 1px solid #d8edf0; border-radius: 4px; font-size: .65rem; font-weight: 800; letter-spacing: .04em; }
.news-source-badge[data-source="assogesso"] { color: #6a3037; background: #faf0f1; border-color: #f0e0e3; }
.news-card h3 { margin: 17px 0 12px; font-size: 1.12rem; line-height: 1.4; letter-spacing: -.025em; overflow-wrap: anywhere; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--cyan-dark); text-decoration: underline; text-underline-offset: 4px; }
.news-card-copy > p { margin: 0 0 24px; color: #52666d; font-size: .86rem; line-height: 1.7; }
.news-read-link { display: inline-flex; gap: 10px; align-items: center; align-self: flex-start; margin-top: auto; padding-top: 6px; font-size: .77rem; font-weight: 800; color: var(--cyan-dark); text-decoration: none; }
.news-read-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.news-card--featured { display: grid; grid-template-columns: 1fr 1.2fr; grid-column: 1 / -1; }
.news-card--featured .news-card-media { aspect-ratio: auto; min-height: 290px; }
.news-card--featured .news-card-media img { position: absolute; inset: 0; padding: 28px; }
.news-card--featured .news-card-copy { padding: clamp(26px, 3.5vw, 42px); }
.news-card--featured h3 { max-width: 620px; font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.25; margin-block: 18px; }
.news-card--featured .news-card-copy > p { font-size: .95rem; }
.news-empty { grid-column: 1 / -1; margin: 0; padding: 32px; color: #52666d; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.news-empty a { color: var(--cyan-dark); text-underline-offset: 3px; }
.news-pagination { display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 34px; font-size: .8rem; color: var(--ink-soft); }
.news-pagination[hidden] { display: none; }
.news-attribution { max-width: 840px; margin: 34px auto 0; padding-top: 24px; border-top: 1px solid var(--line); color: #60747a; text-align: center; font-size: .75rem; line-height: 1.7; }
.news-attribution p { margin: 5px 0; }
.news-attribution a { color: var(--cyan-dark); font-weight: 700; text-underline-offset: 3px; }
.news-skeleton { min-height: 320px; background: linear-gradient(#eef3f4 0 48%, #fff 48%); }
html[data-page="news"] :is(.news-filters button, .news-refresh, .news-page-button, .news-card a, .news-source-panel a):focus-visible { outline: 3px solid var(--cyan-dark); outline-offset: 4px; }
@media (max-width: 1000px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 1599px) {
  html[data-page="news"] .site-header .main-nav {
    position: absolute !important; inset: 100% 0 auto !important;
    max-height: var(--news-menu-height, calc(100dvh - 135px)) !important;
    overflow-y: auto; overscroll-behavior: contain;
  }
}
html[data-page="news"].gielle-header-compact .site-header .main-nav {
  position: absolute !important; inset: 100% 0 auto !important;
  max-height: var(--news-menu-height, calc(100dvh - 135px)) !important;
  overflow-y: auto; overscroll-behavior: contain;
}
@media (max-width: 700px) {
  .news-grid { grid-template-columns: 1fr; gap: 20px; }
  .news-card--featured { display: flex; }
  .news-card--featured .news-card-media { aspect-ratio: 16 / 10; min-height: 0; }
  .news-card--featured .news-card-media img { position: static; padding: 15px; }
  .news-card--featured .news-card-copy, .news-card-copy { padding: 22px; }
  .news-card--featured h3 { font-size: 1.25rem; }
  .news-toolbar { align-items: flex-start; gap: 12px; flex-direction: column; }
  .news-count:empty { display: none; }
  .news-section-head { gap: 12px; }
  html[data-page="news"] .news-refresh { padding: 10px 12px; flex-shrink: 0; font-size: .74rem; }
  .news-filters button { padding-inline: 13px; }
  .news-pagination { gap: 10px; }
  .news-pagination > span { flex-basis: 100%; text-align: center; order: -1; }
  html[data-page="news"] .news-page-button { padding-inline: 12px; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .news-card-media img { transition: none; } }
