/* Proposta grafica News+ Lite. Impaginazione e ordine originali. */
body {
  --hk-ink: #202b25;
  --hk-green: #315742;
  --hk-muted: #4a5d51;
  --hk-paper: #f7f8f3;
  --hk-rule: #cbd6cc;
  --hk-serif: Georgia, "Times New Roman", serif;
  color: var(--hk-ink);
}

body .headers-wrapper #header-top {
  min-height: 0;
  padding-block: clamp(10px, 2.2vw, 29px);
  border-block-end: 2px solid var(--hk-green);
  background-color: #738c79;
  background-blend-mode: multiply;
}

body .headers-wrapper #header-top :is(.region-header-top-left, .region-header-top-right) {
  padding-block: 0;
}

body .headers-wrapper #header-top .logo {
  width: clamp(46px, 5vw, 74px);
  margin-inline: auto;
  transform: none;
}

body .headers-wrapper #header-top .site-branding__name {
  padding-top: 7px;
}

body .headers-wrapper #header-top .site-branding__name a {
  color: #fff;
  font: 700 clamp(25px, 4.1vw, 54px)/1.1 var(--hk-serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}

body .headers-wrapper #header-top .site-branding__slogan {
  margin-top: 4px;
  color: #f6faf1;
  font: 600 clamp(12px, 1.55vw, 18px)/1.4 system-ui, sans-serif;
  letter-spacing: .01em;
}

body .headers-wrapper #header {
  background-color: #294836;
  border-block-end-color: #d7e1d8;
}

body .headers-wrapper #header :is(a, button) {
  color: #fff;
}

body #page > .container {
  background-color: #fff;
  margin-block-start: 0;
}

body #main :is(h1.page-title, .node--type-heko .node__title) {
  color: var(--hk-ink);
  font-family: var(--hk-serif);
  letter-spacing: -.021em;
  text-transform: none;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

body #main .node--type-heko .node__title {
  margin-block: 0 .35em;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.16;
}

body.path-frontpage #main .views-row:first-child .node--type-heko .node__title {
  font-size: clamp(25px, 3.3vw, 43px);
}

body #main h1.page-title {
  max-width: 29ch;
  font-size: clamp(28px, 3.5vw, 50px);
  font-weight: 700;
  line-height: 1.12;
}

body #main :is(h1.page-title, .node--type-heko .node__title) :is(a, span) {
  color: inherit;
  font: inherit;
}

body #main .node--type-heko .heko-id {
  float: none;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  margin: 0 0 .55em;
  padding: .18em .42em;
  background-color: var(--hk-paper);
  color: var(--hk-muted);
  font: 650 14px/1.45 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: .015em;
}

body #main .node--type-heko .heko-id:has(.heko-flag) {
  border-inline-start: 2px solid currentColor;
  color: #773e32;
}

body #main .node--type-heko .field--name-body {
  max-width: 67ch;
  color: var(--hk-ink);
  font: clamp(16px, 1.4vw, 19px)/1.64 var(--hk-serif);
}

body.page-node-type-heko #main .node--view-mode-full .field--name-body {
  font: clamp(18px, 1.55vw, 21px)/1.7 var(--hk-serif);
}

body #main .node--type-heko.node--view-mode-teaser {
  border-block-end: 1px solid var(--hk-rule);
  padding-block-end: clamp(12px, 1.7vw, 23px);
  margin-block-end: clamp(15px, 2vw, 28px);
}

body #main .field--name-body a,
body #main .node-readmore a,
body #sidebar-first a {
  color: var(--hk-green);
  text-decoration: underline;
  text-underline-offset: .17em;
}

body #sidebar-first .block > h2 {
  color: var(--hk-green);
  border-block-end-color: var(--hk-rule);
  font-family: var(--hk-serif);
  font-size: clamp(15px, 1.55vw, 21px);
}

body #sidebar-first .form-text {
  min-height: 41px;
  max-width: 100%;
  border-color: #849288;
}

body :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #256379;
  outline-offset: 2px;
}

body .headers-wrapper :is(a, button):focus-visible {
  outline-color: #fff9db;
}

/* Variazione grafica sulla gazzetta originale. */
body {
  --hk-ink: #252b27;
  --hk-green: #315742;
  --hk-paper: #f2f5f0;
  --hk-rule: #dce5dc;
  --hk-ui: "Avenir Next", system-ui, sans-serif;
  --hk-serif: Charter, "Palatino Linotype", Palatino, Georgia, serif;
  background-color: #f7f8f6;
}

body .headers-wrapper #header-top {
  background-color: #869586;
  background-blend-mode: multiply;
  border-block-end: 1px solid #d5e0d6;
  padding-block: clamp(16px, 2.8vw, 38px);
}

body .headers-wrapper #header-top .site-branding__name a {
  color: #fffefa;
  font-size: clamp(26px, 4.35vw, 57px);
  letter-spacing: -.025em;
  text-shadow: 0 1px 5px #172e22a6;
}

body .headers-wrapper #header-top .site-branding__slogan {
  color: #fbfdf8;
  font: 400 clamp(13px, 1.5vw, 20px)/1.35 "Avenir Next", "Nunito Sans", system-ui, sans-serif !important;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: 0 1px 4px #172e22bf;
}

body .headers-wrapper #header-top a:focus-visible {
  outline-color: #fff7dd;
}

body #page > .container {
  background-color: #fff;
}

body #main .node--type-heko.node--view-mode-teaser {
  margin-block-end: clamp(12px, 2vw, 29px);
  padding-block-end: clamp(12px, 2vw, 29px);
}

body #main .node--type-heko .node__title {
  font-family: var(--hk-serif);
  font-weight: 700;
  letter-spacing: -.019em;
}

body #main h1.page-title {
  letter-spacing: -.035em;
}

body #main .node--type-heko .heko-id {
  background: #f0f3ef;
  border-radius: 4px;
  padding: .18em .55em;
}

body #main .node--type-heko .field--name-body {
  line-height: 1.67;
}

body #sidebar-first .block > h2 {
  font-family: var(--hk-ui);
  font-weight: 700;
  letter-spacing: -.015em;
  text-transform: none;
}

body #sidebar-first :is(.form-text, .form-submit) {
  min-height: 42px;
}

/* Same restrained pop as the article titles, for sidebar headings and links. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #sidebar-first :is(.block > h2, .block-menu .menu-item > a, .heko-sidebar-search > a) {
    transform-origin: left center;
    transition: scale 180ms ease-out;
  }

  #sidebar-first :is(.block > h2:hover, .block > h2:focus-within,
    .block-menu .menu-item > a:hover, .block-menu .menu-item > a:focus-visible,
    .heko-sidebar-search > a:hover, .heko-sidebar-search > a:focus-visible) {
    scale: 1.12;
  }
}

body .headers-wrapper #header-top {
  background-size: cover;
  background-repeat: no-repeat;
}

/* The approved home page uses the dedicated mobile search, with the editorial list directly below. */
.path-frontpage .heko-reader-nav,
.path-frontpage .heko-sidebar-link { display: none; }

#sidebar-first #block-exposedformsearchpage-1 { display:none; }
#heko-sidebar-search { padding: .8rem 1rem; }
#heko-sidebar-search form { display:flex; gap:.35rem; margin-block-start:.5rem; }
#heko-sidebar-search input { min-width:0; flex:1; }
@media (max-width:767px) { .path-frontpage #heko-sidebar-search { display:none; } }

body #sidebar-first :is(.block-menu .menu-item > a, .heko-sidebar-search > a), body .menu--main .menu-item > a { text-decoration: none; }

body #sidebar-first :is(.block-menu .menu-item > a, .heko-sidebar-search > a):focus-visible, body .menu--main .menu-item > a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
body #sidebar-first #heko-sidebar-search{padding-block-start:9px}
body #sidebar-first #heko-sidebar-search-heading,body .heko-mobile-search label[for="heko-mobile-q"]{font-size:clamp(24px,2.2vw,28px);line-height:1.25;margin-block-start:0}
@media (hover:hover){body #sidebar-first .menu--main .menu-item>a:hover{text-decoration:underline;text-underline-offset:.17em}}
@media (hover:hover) and (prefers-reduced-motion:no-preference){#main :is(.node--type-heko,article) :is(.node__title,.node-title)>a:is(:hover,:focus-visible),#main .heko-archive-title>a:is(:hover,:focus-visible),body.path-node #main .page-title:hover{transform:translateY(-1px) scale(1.055)}}
.mus-aureolo{position:fixed;inset:0 auto auto 0;z-index:20;width:144px;height:144px;pointer-events:none;background:radial-gradient(circle,rgb(49 87 66 / 14%),rgb(49 87 66 / 7%) 32%,rgb(49 87 66 / 2%) 53%,transparent 70%);opacity:0;transition:opacity 180ms ease-out}
.mus-aureolo.videbla{opacity:1}
@media(prefers-reduced-motion:reduce),(hover:none){.mus-aureolo{display:none}}
.heko-sidebar-link[href="#sidebar-first"]{display:none}
#main:has(.heko-archive-filter) h1.page-title{font-family:"Nunito Sans","Arial Narrow",sans-serif;font-size:clamp(27px,3vw,36px);margin-block-start:10px}
#main .heko-archive-filter :is(input[type="search"],select){color:#233e32;background-color:#fff;border:1px solid #84988b;border-radius:.55rem;padding-inline:.65rem}
#main .heko-archive-filter + .item-list > ul{margin:0;padding:0;list-style:none}
#main .heko-archive-filter + .item-list > ul > li{list-style:none;margin:0;padding:.8rem 0;border-block-end:1px solid #dce5dc;color:#415e51}
#main .heko-archive-title{display:block;margin:.25rem 0}
#main .heko-archive-title>a{color:#252b27;font-weight:700}
#main .heko-archive-actions>a{color:#315742}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
body #sidebar-first .block>h2:is(:hover,:focus-within){scale:none}
#sidebar-first .heko-flanktitolo{display:inline-block;transform-origin:left center;transition:scale 180ms ease-out}
#sidebar-first h2:is(:hover,:focus-within)>.heko-flanktitolo{scale:1.12}
}

body #sidebar-first .block > h2 { scale: none !important; }
#main .heko-archive-filter{color:#233e32}
#main .heko-archive-filter .heko-archive-query{border-radius:6px}
#main .heko-archive-filter select{appearance:none;padding-inline-end:1.65rem;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath fill='%2366404a' d='M0 0h8L4 5z'/%3E%3C/svg%3E") right 8px center / 6px auto no-repeat}
.heko-archive-filter.heko-live-filter .heko-archive-actions{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.heko-archive-filter.heko-live-filter .heko-archive-actions:focus-within{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
#main .heko-archive-filter + .item-list > ul > li{padding:.65rem 0 .95rem;line-height:1.55}
#main .heko-archive-title{margin:.45rem 0 0}
#main .heko-archive-title > a{color:#3f3f3f;font-size:16.5px;text-decoration:none}
#main .heko-archive-title > a:hover{text-decoration:underline}
