/* Homepage · editorial palette */
body[data-section="home"] {
  --home-coral: #a83b2e;
  --home-coral-soft: #fdf0eb;
  --home-blue: #0c5480;
  --home-gold: #784600;
  --home-gold-soft: #fff3d5;
  background: linear-gradient(175deg, #eaf7fb 0, #fff8ed 410px, #f8fbfb 980px);
}
body[data-section="home"] .cn-hero::before {
  background: linear-gradient(90deg, #09243bc9, #102c4e33 66%, transparent);
}
body[data-section="home"] .cn-hero::after {
  height: 5px;
  inset: auto 0 0;
  clip-path: none;
  background: linear-gradient(90deg, #eb795f 0 41%, #36a8c7 41% 75%, #efba51 75%);
}
body[data-section="home"] .portal-grid {
  grid-template-columns: minmax(0, 1.85fr) minmax(330px, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
body[data-section="home"] #notizie.panel {
  border: 1px solid #eedbd4;
  border-top: 4px solid #e7735e;
  padding: clamp(15px, 2vw, 24px);
  background: #fffdfa;
}
body[data-section="home"] #notizie .section-heading {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 15px;
}
body[data-section="home"] #notizie .section-heading .eyebrow { display: none; }
body[data-section="home"] #notizie .section-link,
body[data-section="home"] #home-latest .section-link {
  background: var(--home-coral-soft);
  border-color: #edc9bf;
  color: var(--home-coral);
}
body[data-section="home"] #notizie .section-link:hover,
body[data-section="home"] #home-latest .section-link:hover {
  background: #f8dcd3;
}
body[data-section="home"] #news-state {
  color: var(--home-coral);
  background: var(--home-coral-soft);
}
body[data-section="home"] #news-feed .lead-card {
  min-height: clamp(280px, 31vw, 460px);
  background: linear-gradient(135deg, #192a49, #77382f);
  isolation: isolate;
}
body[data-section="home"] #news-feed .lead-card.no-photo {
  min-height: clamp(220px, 24vw, 320px);
  align-items: end;
}
body[data-section="home"] #news-feed .lead-card::after {
  background: linear-gradient(180deg, #09192400 15%, #0d22357a 55%, #091d2af7 100%);
}
body[data-section="home"] #news-feed .lead-card.no-photo::after { background: none; }
body[data-section="home"] #news-feed .lead-card .story-label {
  background: #ffdace;
  color: #793527;
}
body[data-section="home"] #news-feed .lead-card h3 {
  font-size: clamp(25px, 3vw, 43px);
  overflow-wrap: anywhere;
}
body[data-section="home"] #news-feed .lead-card .lead-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-bottom: 0;
}
body[data-section="home"] #news-feed .story-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body[data-section="home"] #news-feed .story-stack .stack-story {
  background: #fff;
  border-color: #edddd7;
  padding: 0;
  gap: 0;
  min-width: 0;
}
body[data-section="home"] #news-feed .stack-story.no-photo {
  background: linear-gradient(150deg, #fffaf7, #fff);
}
body[data-section="home"] #news-feed .stack-story .stack-body { padding: 12px 14px 14px; }
body[data-section="home"] #news-feed .stack-story .story-label {
  background: var(--home-coral-soft);
  color: var(--home-coral);
}
body[data-section="home"] #news-feed .stack-story :is(.thumb, .newsroom-curated-thumb, .newsroom-archive) {
  aspect-ratio: 2.2;
  height: auto;
  min-height: 0;
  width: 100%;
  border-radius: 0;
}
body[data-section="home"] #news-feed .stack-story img {
  display: block;
  height: 100%;
  min-height: 0;
  width: 100%;
  object-fit: cover;
}
body[data-section="home"] #home-latest {
  margin-top: 20px;
  border-color: #eedbd4;
  background: #fffdfa;
}
body[data-section="home"] #home-latest h2 { font-family: Georgia, serif; }
body[data-section="home"] #home-latest .news-latest {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
}
body[data-section="home"] #home-latest .latest-story {
  border: 0;
  border-top: 1px solid #eedbd4;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
body[data-section="home"] #home-latest .latest-body { padding: 10px 2px; }
body[data-section="home"] #home-latest .latest-story h3 {
  font: 700 clamp(16px, 1.65vw, 20px)/1.25 Georgia, serif;
  margin: 0;
}
body[data-section="home"] #home-latest .latest-story a:hover { color: var(--home-coral); }
body[data-section="home"] #home-latest .story-meta { margin-top: 5px; }

body[data-section="home"] .sidebar #meteo {
  background: linear-gradient(155deg, #f8fdff, #e6f4ff);
  border-color: #c3e0ef;
}
body[data-section="home"] #meteo .section-heading {
  background: linear-gradient(110deg, #134d7b, #08768e);
}
body[data-section="home"] #meteo .section-link {
  color: var(--home-blue);
  background: #edf8ff;
}
body[data-section="home"] #meteo .section-link:hover { background: #d7eeff; }
body[data-section="home"] #weather-state {
  color: var(--home-blue);
  background: #e1f1ff;
  border-color: #c3e0f3;
  max-width: calc(100% - 32px);
}
body[data-section="home"] #weather-content { padding: 13px 15px 16px; }
body[data-section="home"] #weather-content > .weather-current-row > .wx-large {
  flex: 0 0 auto;
}
body[data-section="home"] #weather-content > .weather-current-row h3 {
  font-size: clamp(16px, 1.8vw, 21px);
  overflow-wrap: anywhere;
}
body[data-section="home"] #weather-content > .weather-detail { color: #43627a; }
body[data-section="home"] #weather-content > .weather-metric-grid > div,
body[data-section="home"] #weather-content .weather-hour-cell {
  background: #ffffffce !important;
  border: 1px solid #cce3ef;
}
body[data-section="home"] #weather-content .weather-hour-cell strong { font-size: 15px; }
body[data-section="home"] #weather-content > .weather-number {
  font-size: clamp(30px, 3.5vw, 53px);
  letter-spacing: -.065em;
}

body[data-section="home"] .sidebar #eventi {
  background: linear-gradient(150deg, #fffefa, #fff8e9);
  border-color: #eed9ac;
}
body[data-section="home"] #eventi .section-heading {
  background: linear-gradient(110deg, #f8d77d, #fff1cd);
}
body[data-section="home"] #eventi .section-heading h2 { color: #573400; }
body[data-section="home"] #eventi .section-link,
body[data-section="home"] #events-state {
  background: #fff8e5;
  border-color: #eac77a;
  color: var(--home-gold);
  max-width: calc(100% - 32px);
}
body[data-section="home"] #eventi .section-link:hover { background: #ffecbb; }
body[data-section="home"] .sidebar .section-heading { flex-wrap: wrap; }
body[data-section="home"] #events-feed {
  padding: 12px 14px 14px;
  gap: 8px;
}
body[data-section="home"] #events-feed .feed-article[data-day] {
  grid-template-columns: 55px minmax(0, 1fr);
  column-gap: 11px;
  padding: 9px;
  border: 1px solid #f0dfba;
  border-radius: 12px;
  background: #fffefa;
}
body[data-section="home"] #events-feed .feed-article::before { content: none; }
body[data-section="home"] #events-feed .event-home-date {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-content: center;
  align-self: start;
  justify-items: center;
  background: var(--home-gold-soft);
  color: var(--home-gold);
  border-radius: 8px;
  border-top: 3px solid #e7a933;
  font: 750 10px/1.2 system-ui, sans-serif;
  padding: 3px 2px 5px;
  text-align: center;
}
body[data-section="home"] #events-feed .event-home-date strong { font-size: 22px; }
body[data-section="home"] #events-feed .feed-article h3 { font-size: 16px; }
body[data-section="home"] #events-feed .feed-article p.metadata { margin-bottom: 0; }
body[data-section="home"] #events-feed .event-home-photo {
  display: block;
  grid-column: 1 / -1;
  margin: 8px 0 0;
}
body[data-section="home"] #events-feed .event-home-photo img {
  height: min(180px, 33vw);
  width: 100%;
  object-fit: contain;
  background: #fffaef;
}

@media (max-width: 900px) {
  body[data-section="home"] .portal-grid { grid-template-columns: minmax(0, 1fr); }
  body[data-section="home"] .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body[data-section="home"] .sidebar,
  body[data-section="home"] #home-latest .news-latest { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  body[data-section="home"] #news-feed .story-stack { grid-template-columns: minmax(0, 1fr); }
  body[data-section="home"] #news-feed .lead-card :is(.lead-body, h3) { max-width: 100%; }
  body[data-section="home"] #news-feed .stack-story :is(.thumb, .newsroom-curated-thumb, .newsroom-archive) {
    aspect-ratio: 2.5;
  }
  body[data-section="home"] #weather-content > .weather-current-row { flex-wrap: wrap; }
}
@media (max-width: 355px) {
  body[data-section="home"] #weather-content > .weather-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

body[data-section="home"] :is(#news-state, #home-latest)[hidden] { display: none; }
