/* home: parti specifiche (le basi comuni stanno in site.css) */
/* hero */
.hero { position: relative; margin-top: 18px; border-radius: 28px; overflow: hidden; background: #06202f; color: #fff; min-height: 420px; box-shadow: 0 1px 0 var(--line), 0 14px 34px rgba(11,42,69,.08); display: grid; align-content: space-between; padding: clamp(28px, 4vw, 52px); isolation: isolate; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -2; }
.hero-art + .hero-copy { position: relative; }
.hero-art { -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 52%); mask-image: linear-gradient(90deg, transparent 22%, #000 52%); }
.eyebrow { font-size: 13px; letter-spacing: .24em; font-weight: 600; margin: 0 0 18px; color: #0f7a8a; }
.hero h1 { margin: 0; font-size: clamp(36px, 5.2vw, 66px); line-height: 1.02; font-weight: 800; letter-spacing: -.04em; }
.lead { max-width: 46ch; font-size: clamp(16px, 1.5vw, 19px); margin: 18px 0 26px; color: var(--muted); }
.btn-white { display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; font-weight: 700; padding: 14px 26px; border-radius: 999px; font-size: 16px; transition: transform .2s, box-shadow .2s; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.hero-pills { list-style: none; display: flex; gap: 14px; justify-content: flex-end; margin: 34px 0 0; padding: 0; flex-wrap: wrap; }
.hero-pills a { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-radius: 999px; background: rgba(255,255,255,.86); border: 1px solid #c4d4dc; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-weight: 600; font-size: 14px; color: var(--navy); transition: background .2s, border-color .2s; }
.hero-pills a:hover { background: #fff; border-color: var(--teal); }
.hp-ico { color: var(--teal); display: flex; }
.hp-arr { margin-left: 18px; display: flex; }

/* sezioni */
.block { padding-top: clamp(30px, 4vw, 50px); }
.block h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.035em; font-weight: 800; margin: 0 0 22px; }
.sub { margin: -12px 0 22px; color: var(--muted); }
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-line { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #b9c8d2; background: #fff; color: var(--navy); font: inherit; font-weight: 600; font-size: 14px; padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: border-color .2s, background .2s; }
.btn-line:hover { border-color: var(--teal); background: #f1f9fb; }

/* osservatori */
.obs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ocard { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 12px 30px rgba(11,42,69,.07); min-height: 380px; transition: transform .25s, box-shadow .25s; padding-bottom: 18px; }
.ocard:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 20px 44px rgba(11,42,69,.14); }
.oc-art { display: block; height: 200px; overflow: hidden; position: relative; }
.oc-art img { width: 100%; height: 100%; object-fit: cover; }
.oc-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); }
.oc-kick { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; margin: -22px 22px 0; position: relative; z-index: 1; }
.oc-kick i { display: flex; color: var(--teal); }
.ocard h3 { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin: 8px 22px 8px; }
.ocard p { margin: 0 78px 0 22px; color: var(--muted); font-size: 15px; }
.oc-go { position: absolute; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--navy); display: grid; place-items: center; transition: background .2s, color .2s; }
.ocard:hover .oc-go { background: var(--navy); color: #fff; }

/* ricerche */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 24px; }
.filters button { font: inherit; font-weight: 600; font-size: 14px; padding: 9px 22px; border-radius: 999px; border: 1px solid #c9d6de; background: #fff; color: var(--navy); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--teal); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rcard { position: relative; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 8px 22px rgba(11,42,69,.06); padding-bottom: 16px; transition: transform .25s, box-shadow .25s; }
.rcard:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 16px 36px rgba(11,42,69,.12); }
.rcard[hidden] { display: none; }
.rc-art { display: block; height: 130px; overflow: hidden; }
.rc-art img { width: 100%; height: 100%; object-fit: cover; }
.rc-badge { display: inline-block; position: relative; margin: -14px 0 0 16px; padding: 5px 14px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 2px solid #fff; background: var(--navy); color: #fff; }
.rc-focus { background: var(--cyan); color: var(--navy); }
.rc-dossier { background: var(--teal); color: #fff; }
.rcard h3 { font-size: 20px; line-height: 1.18; letter-spacing: -.025em; font-weight: 800; margin: 12px 16px 6px; }
.rc-period { margin: 0 16px 10px; color: var(--muted); font-size: 15px; }
.rc-link { margin: 0 16px; font-weight: 700; color: #0a4d9e; font-size: 15px; }
.rc-link:hover { text-decoration: underline; }

/* stampa */
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.press-more { margin-top: 18px; }
.press-grid[hidden] { display: none; }
.pcard { display: flex; gap: 16px; background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(11,42,69,.05); align-items: flex-start; }
.pc-thumb { flex: 0 0 112px; height: 112px; border-radius: 12px; background: #eef3f6; display: grid; place-items: center; padding: 10px; overflow: hidden; }
.pc-thumb img { max-height: 54px; width: auto; object-fit: contain; }
.pc-noimg { font-weight: 800; font-size: 34px; color: #9db3c1; }
.pc-body { min-width: 0; }
.pc-outlet { margin: 2px 0 4px; font-weight: 800; font-size: 15px; }
.pcard h3 { font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--muted); margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-date { margin: 0 0 8px; font-size: 12px; color: #7d90a0; }
.pc-link { font-weight: 700; font-size: 14px; color: #0a4d9e; }
.pc-link:hover { text-decoration: underline; }
.pc-note { font-size: 13px; color: var(--muted); }
.more-row { display: flex; justify-content: flex-end; margin-top: 18px; }
.note { margin: 22px 0 0; font-size: 12.5px; color: var(--muted); max-width: 90ch; }

/* responsive */
@media (max-width: 980px) {
  .obs-grid, .pub-grid, .press-grid { grid-template-columns: 1fr 1fr; }
    .foot-row { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .foot-copy { text-align: center; }
}
@media (max-width: 680px) {
  .topline strong { display: none; }
  .head-row { flex-wrap: wrap; gap: 10px; }
  .logo img { height: 46px; }
  .head-right { flex: 1 0 100%; }
  .nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; gap: 20px; }
  .nav::-webkit-scrollbar { display: none; }
  .hero { min-height: 0; border-radius: 22px; }
  .hero-pills { justify-content: flex-start; flex-direction: column; align-items: stretch; }
  .hero-pills a { justify-content: space-between; }
  .obs-grid, .pub-grid, .press-grid { grid-template-columns: 1fr; }
  .foot-nav a { padding: 4px 12px; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.press-banner { height: clamp(120px, 16vw, 200px); border-radius: 16px; background: url('assets/home/dig/stampa2-hq.jpg') center 40% / cover no-repeat; margin: 0 0 22px; box-shadow: 0 1px 0 var(--line); }


/* hero scuro (immagini digital) */
.hero h1, .hero .lead { color: #fff; }
.hero .lead { color: #dbeff3; }
.hero .eyebrow { color: #7fd6dc; }
.hero .btn-white { background: #fff; color: var(--navy); }
.hero-pills a { background: rgba(6,32,47,.55); border-color: rgba(255,255,255,.4); color: #fff; }
.hero-pills a:hover { background: rgba(6,32,47,.8); border-color: #fff; }
.hp-ico { color: #7fd6dc; }
.hero-art { -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 52%); mask-image: linear-gradient(90deg, transparent 18%, #000 52%); }
