/* ==========================================================================
   Deanet srl — foglio di stile del sito
   Impostazione istituzionale: barra servizi blu notte, testata bianca con
   mega menu, immagine della Terra dall'orbita, schede pulite, piè di pagina
   blu. Colori ricavati dal logo Deanet (sfera blu e scritta grigia).
   Tema unico chiaro, come i siti degli enti di normazione.
   ========================================================================== */

/* ---------- Carattere (ospitato sul sito, nessuna chiamata a Google) ---------- */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url("../fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url("../fonts/ibm-plex-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Token ---------- */
:root {
  --navy-950: #071637;
  --navy-900: #0A1F4A;
  --navy-800: #0D2C6C;
  --blue-700: #1A4C99;
  --blue-600: #1E5FB4;
  --blue-500: #1D78B6;
  --cyan-400: #3BB2E6;
  --ink: #16213A;
  --text: #354155;
  --muted: #5D697C;
  --line: #DCE3EC;
  --line-strong: #C3CEDC;
  --bg: #FFFFFF;
  --bg-alt: #F2F5F9;
  --tint: #E8F0FA;
  --ok: #1D7A4E;
  --warn: #A15A00;
  --on-dark-muted: #B8C6DD;
  --shadow-sm: 0 1px 2px rgba(10, 31, 74, .06);
  --shadow: 0 2px 6px rgba(10, 31, 74, .06), 0 12px 32px rgba(10, 31, 74, .10);

  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-sm: .9rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.2rem;
  --fs-h3: 1.22rem;
  --fs-h2: clamp(1.65rem, 1.25rem + 1.5vw, 2.25rem);
  --fs-h1: clamp(2.1rem, 1.3rem + 3vw, 3.3rem);

  --radius: 4px;
  --wrap: 1240px;
  --gutter: 24px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 70;
  background: var(--navy-900);
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--navy-800); }
a svg { width: .8em; height: .8em; vertical-align: -.04em; flex: none; }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.18; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; color: var(--ink); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blue-600); color: #fff; padding: 8px 14px; text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
@media (max-width: 600px) { :root { --gutter: 18px; } }

.kicker {
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-600);
}
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--muted); max-width: 64ch; }
.prose { max-width: 72ch; display: grid; gap: 1em; }
.prose ul { display: grid; gap: .5em; list-style: none; }
.prose li { position: relative; padding-left: 1.5em; }
.prose li::before {
  content: ""; position: absolute; left: .15em; top: .62em;
  width: .5em; height: .5em; border-radius: 1px; background: var(--blue-500);
}
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 .95rem/1.2 var(--font);
  padding: .85em 1.4em;
  border-radius: var(--radius);
  border: 1px solid var(--blue-600);
  background: var(--blue-600);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn svg { width: 1em; height: 1em; flex: none; }
.btn-light { background: #fff; border-color: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--tint); border-color: var(--tint); color: var(--navy-900); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.more {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; text-decoration: none; color: var(--blue-600);
}
.more svg { width: .95em; height: .95em; transition: transform .15s ease; }
.more:hover { color: var(--navy-800); }
.more:hover svg { transform: translateX(3px); }

/* ---------- Barra superiore ---------- */
.topbar { background: var(--navy-900); color: var(--on-dark-muted); font-size: .84rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 20px; flex: none; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--cyan-400); }
.topbar .contact-link { display: inline-flex; align-items: center; gap: 6px; }
.topbar .contact-link svg { width: 14px; height: 14px; color: var(--cyan-400); }
.lang { display: flex; align-items: center; gap: 2px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .18); }
.lang a { padding: 4px 7px; font-weight: 600; font-size: .78rem; letter-spacing: .04em; color: var(--on-dark-muted); border-radius: 3px; }
.lang a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.lang a[aria-current="true"] { color: var(--navy-900); background: #fff; }
@media (max-width: 900px) {
  .topbar p, .topbar .contact-link span { display: none; }
  .topbar-inner { justify-content: flex-end; }
  .lang { border-left: 0; padding-left: 0; }
}

/* ---------- Testata ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; flex: none; }
.brand img { height: 54px; width: auto; }
.site-nav { display: flex; align-items: center; align-self: stretch; }
.nav-list { list-style: none; display: flex; align-items: stretch; gap: 2px; height: 100%; }
.nav-list > li { display: flex; align-items: stretch; }
.nav-list > li > a, .menu-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 14px;
  font: 600 .98rem/1.2 var(--font);
  color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer;
  border-bottom: 3px solid transparent;
  border-top: 3px solid transparent;
}
.nav-list > li > a:hover, .menu-btn:hover, .menu-btn[aria-expanded="true"] { color: var(--blue-600); }
.nav-list > li > a[aria-current="page"], .menu-btn.is-current { border-bottom-color: var(--blue-600); color: var(--navy-800); }
.menu-btn svg { width: 12px; height: 12px; transition: transform .15s ease; }
.menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-label { display: none; }
.header-cta { flex: none; }
.nav-toggle {
  display: none; align-items: center; gap: 8px;
  padding: 10px 14px;
  font: 600 .92rem/1 var(--font); color: var(--navy-800);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* Mega menu */
.menu-panel {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(10, 31, 74, .14);
}
.has-menu.is-open .menu-panel { display: block; }
.menu-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 32px;
  padding-block: 28px 32px;
}
.menu-group { display: grid; gap: 2px; align-content: start; }
.menu-group > p { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-group a { display: grid; gap: 1px; padding: 10px 12px; border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.menu-group a span { font-weight: 600; }
.menu-group a small { font-size: .86rem; color: var(--muted); }
.menu-group a:hover { background: var(--bg-alt); }
.menu-group a:hover span { color: var(--blue-600); }
.menu-group a[aria-current="page"] span { color: var(--blue-600); }
.menu-promo {
  display: grid; gap: 12px; align-content: start;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(rgba(7, 22, 55, .78), rgba(7, 22, 55, .9)), url("../img/banner.jpg") center / cover;
  color: var(--on-dark-muted);
}
.menu-promo h3 { color: #fff; font-size: 1.15rem; }
.menu-promo p { font-size: .94rem; }
.menu-promo .btn { justify-self: start; }

@media (max-width: 1100px) {
  .header-inner { gap: 16px; }
  .nav-list > li > a, .menu-btn { padding: 0 10px; }
}
@media (max-width: 1020px) {
  .header-cta { display: none; }
}
@media (max-width: 900px) {
  .header-inner { min-height: 70px; }
  .brand img { height: 44px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(10, 31, 74, .14);
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 24px max(var(--gutter), env(safe-area-inset-left, 0px));
    max-height: calc(100vh - 110px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
  }
  .site-header.nav-open .site-nav { display: block; }
  .nav-list { flex-direction: column; gap: 0; height: auto; }
  .nav-list > li { display: block; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { display: flex; padding: 15px 4px; border: 0; }
  .nav-list > li > a[aria-current="page"] { color: var(--blue-600); }
  .menu-btn { display: none; }
  .menu-label { display: block; padding: 15px 4px 4px; font-weight: 600; color: var(--ink); }
  .menu-panel { display: block; position: static; border: 0; box-shadow: none; }
  .menu-inner { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 4px 0 12px; }
  .menu-group > p { padding: 8px 4px 6px; }
  .menu-group a { padding: 8px 4px; }
  .menu-promo { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--navy-950); color: #fff; overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 60% 60%; max-width: none; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5, 14, 38, .88) 0%, rgba(5, 14, 38, .62) 42%, rgba(5, 14, 38, .08) 78%);
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(72px, 9vw, 128px) clamp(120px, 12vw, 168px); }
.hero-copy { display: grid; gap: 22px; max-width: 640px; }
.hero .kicker { color: var(--cyan-400); }
.hero h1 { color: #fff; }
.hero .lead { color: #D4DEEE; }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(5, 14, 38, .75) 0%, rgba(5, 14, 38, .55) 55%, rgba(5, 14, 38, .25) 100%); }
  .hero-media img { object-position: 50% 70%; }
}

/* Accesso rapido alle piattaforme */
.quick { position: relative; z-index: 2; margin-top: clamp(-96px, -7vw, -64px); }
.quick-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.quick-grid a {
  display: grid; gap: 4px; align-content: start;
  padding: 22px 18px 20px;
  text-decoration: none; color: var(--text);
  border-top: 4px solid transparent;
  transition: background-color .15s ease, border-color .15s ease;
  min-width: 0;
}
.quick-grid a + a { border-left: 1px solid var(--line); }
.quick-grid a:hover { background: var(--bg-alt); border-top-color: var(--blue-600); }
.quick-grid b { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.quick-grid span { font-size: .86rem; color: var(--muted); }
.quick-grid em { font-style: normal; font-weight: 600; color: var(--blue-600); font-size: .95rem; margin-top: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) {
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-grid a:nth-child(4) { border-left: 0; }
  .quick-grid a:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .quick-grid { grid-template-columns: minmax(0, 1fr); }
  .quick-grid a + a { border-left: 0; border-top: 1px solid var(--line); }
  .quick-grid a { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 16px 18px; }
  .quick-grid em { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; }
}

/* ---------- Sezioni ---------- */
.section { padding-block: clamp(64px, 8vw, 104px); }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head > div { display: grid; gap: 12px; max-width: 760px; min-width: 0; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.title-rule { display: block; width: 48px; height: 4px; background: var(--blue-600); border-radius: 2px; }

/* Introduzione + cifre */
.intro-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
@media (max-width: 900px) { .intro-grid { grid-template-columns: minmax(0, 1fr); } }
.intro-copy { display: grid; gap: 18px; }
.intro-copy p { font-size: 1.08rem; }
.intro-copy .actions { margin-top: 6px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat {
  display: grid; gap: 6px; align-content: start;
  padding: 26px 24px;
  background: var(--bg-alt);
  border-left: 4px solid var(--blue-600);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.stat b { font-size: clamp(2.2rem, 1.6rem + 1.8vw, 2.9rem); font-weight: 600; line-height: 1; color: var(--navy-800); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat span { font-size: .95rem; color: var(--muted); }
@media (max-width: 420px) { .stat { padding: 20px 16px; } }

/* Schede editori */
.pub-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.pub-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  transition: box-shadow .2s ease, transform .2s ease;
}
.pub-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pub-band {
  display: grid; gap: 4px; align-content: end;
  min-height: 120px; padding: 20px 22px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--blue-700) 100%);
  color: #fff;
}
.pub-band strong { color: #fff; font-size: 1.65rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.pub-band span { color: var(--on-dark-muted); font-size: .85rem; }
.pub-body { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 22px; flex: 1; }
.pub-body p { font-size: .98rem; }
.pub-body .more { margin-top: auto; }
.pub-card .stretch::after { content: ""; position: absolute; inset: 0; }
.pub-platform { font-size: .86rem; color: var(--muted); }
.pub-platform b { color: var(--ink); font-weight: 600; }

.pub-card--wide { grid-column: 1 / -1; flex-direction: row; }
.pub-card--wide:hover { transform: none; }
.pub-card--wide .pub-band { width: 32%; min-height: 0; align-content: center; padding: 32px; background: linear-gradient(135deg, var(--navy-900) 0%, var(--blue-600) 100%); }
.pub-card--wide .pub-band strong { font-size: 2.6rem; }
.pub-card--wide .pub-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; padding: 28px 32px; align-items: center; }
.pub-sub { list-style: none; display: grid; }
.pub-sub li + li { border-top: 1px solid var(--line); }
.pub-sub a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px; text-decoration: none; color: var(--ink); }
.pub-sub a span { display: grid; gap: 1px; font-weight: 600; }
.pub-sub a small { font-weight: 400; font-size: .88rem; color: var(--muted); }
.pub-sub a svg { width: 18px; height: 18px; color: var(--blue-600); flex: none; transition: transform .15s ease; }
.pub-sub a:hover span { color: var(--blue-600); }
.pub-sub a:hover svg { transform: translateX(3px); }
@media (max-width: 1180px) {
  .pub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .pub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .pub-card--wide { flex-direction: column; }
  .pub-card--wide .pub-band { width: auto; padding: 24px 22px; }
  .pub-card--wide .pub-band strong { font-size: 2rem; }
  .pub-card--wide .pub-body { grid-template-columns: minmax(0, 1fr); padding: 20px 22px; gap: 12px; }
}
@media (max-width: 560px) { .pub-grid { grid-template-columns: minmax(0, 1fr); } }

/* Loghi degli editori nelle schede della home */
.pub-card { border-top: 3px solid var(--blue-600); }
.pub-band--logo, .pub-card--wide .pub-band--logo {
  align-content: center; justify-items: start;
  background: #fff; border-bottom: 1px solid var(--line);
}
.pub-band--logo span { color: var(--muted); }
.pub-band--logo .pub-wordmark { color: var(--navy-800); font-size: 1.9rem; font-weight: 700; letter-spacing: .01em; }
.pub-logo { display: block; width: auto; max-width: 100%; }
.pub-band .logo-ieee { height: 44px; }
.pub-band .logo-sae { height: 62px; }
.pub-band .logo-ipcom { height: 36px; }
.pub-band .logo-accuris { height: 28px; }
.pub-band .logo-bentham { height: 78px; }
.pub-band .logo-astm { height: 78px; }
.pub-card--wide .pub-band--logo { gap: 14px; border-bottom: 0; border-right: 1px solid var(--line); }
.pub-card--wide .pub-band .logo-ieee { height: 58px; }
@media (max-width: 820px) {
  .pub-card--wide .pub-band--logo { border-right: 0; border-bottom: 1px solid var(--line); }
  .pub-card--wide .pub-band .logo-ieee { height: 46px; }
}

/* Riquadro "partner esclusivo" con il logo, nei banner delle pagine */
.partner-card {
  display: inline-flex; align-items: center; gap: 16px; justify-self: start; max-width: 100%;
  padding: 12px 18px 12px 16px; background: #fff; border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.partner-card .logo-ieee { height: 32px; }
.partner-card .logo-sae { height: 46px; }
.partner-card .logo-ipcom { height: 28px; }
.partner-card .logo-accuris { height: 22px; }
.partner-card .logo-bentham { height: 60px; }
.partner-card .logo-astm { height: 60px; }
.partner-card p { display: flex; align-items: center; gap: 8px; padding-left: 16px; border-left: 1px solid var(--line); color: var(--navy-800); font-size: .92rem; font-weight: 600; line-height: 1.35; }
.partner-card svg { width: 16px; height: 16px; color: var(--blue-600); flex: none; }
@media (max-width: 480px) {
  .partner-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .partner-card p { padding-left: 0; border-left: 0; padding-top: 10px; border-top: 1px solid var(--line); }
}

/* Servizi con icone */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile {
  display: grid; gap: 12px; align-content: start;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.section-alt .tile { border-color: transparent; box-shadow: var(--shadow-sm); }
.tile .icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--blue-600); }
.tile .icon svg { width: 26px; height: 26px; }
.tile p { font-size: .98rem; color: var(--muted); }
.tile--cta {
  background: linear-gradient(rgba(7, 22, 55, .82), rgba(7, 22, 55, .92)), url("../img/banner.jpg") center / cover;
  border-color: transparent; color: var(--on-dark-muted);
}
.section-alt .tile--cta { border-color: transparent; }
.tile--cta h3 { color: #fff; }
.tile--cta p { color: var(--on-dark-muted); }
.tile--cta .btn { justify-self: start; margin-top: 4px; }
/* Riquadro "Un progetto su misura per voi" a tutta larghezza, sotto le aree di expertise (Chi siamo) */
.tile--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 40px; padding: 32px 36px; }
.tile--wide > div { display: grid; gap: 8px; max-width: 70ch; }
.tile--wide h3 { font-size: 1.35rem; }
.tile--wide p { font-size: 1.02rem; }
.tile--wide .btn { justify-self: end; margin-top: 0; white-space: nowrap; }
@media (max-width: 700px) {
  .tile--wide { grid-template-columns: minmax(0, 1fr); padding: 26px 24px; }
  .tile--wide .btn { justify-self: start; }
}

/* Colonne con elenco */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .cols3 { grid-template-columns: minmax(0, 1fr); } }
.card {
  display: grid; gap: 14px; align-content: start;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue-600);
  border-radius: var(--radius);
  min-width: 0;
}
.card .icon { color: var(--blue-600); }
.card .icon svg { width: 34px; height: 34px; }
.card p { color: var(--muted); }
.checks { list-style: none; display: grid; gap: 10px; font-size: .97rem; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%231E5FB4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .news-grid { grid-template-columns: minmax(0, 1fr); } }
.news-card {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.news-date {
  display: grid; justify-items: center; align-content: start; gap: 0;
  padding: 10px 6px 8px;
  background: var(--navy-800); color: #fff;
  border-radius: var(--radius);
  text-align: center; font-variant-numeric: tabular-nums;
  height: max-content;
}
.news-date .d { font-size: 1.75rem; font-weight: 600; line-height: 1.05; white-space: nowrap; }
.news-date .d--range { font-size: 1.15rem; padding-top: .25em; }
.news-date .m { font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan-400); }
.news-date .y { font-size: .76rem; color: var(--on-dark-muted); }
.news-body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.news-body h3 { font-size: 1.1rem; }
.news-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; color: var(--muted); }
.news-body p { font-size: .95rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 3px; background: var(--bg-alt); color: var(--muted); }
.section-alt .chip { background: var(--tint); }
.chip--next { background: var(--blue-600) !important; color: #fff; }
.news-list { list-style: none; display: grid; gap: 14px; }
.year-head { font-size: 1.05rem; font-weight: 600; color: var(--navy-800); padding: 26px 0 12px; border-bottom: 2px solid var(--line); margin-bottom: 14px; }
.year-head:first-child { padding-top: 0; }
.empty { display: grid; gap: 12px; padding: 28px; background: var(--bg-alt); border-left: 4px solid var(--blue-600); border-radius: 0 var(--radius) var(--radius) 0; }
.empty p { color: var(--text); max-width: 66ch; }

/* Eventi con locandina: anteprima cliccabile e finestra con i dettagli */
.news-card--poster { align-content: start; }
.poster-thumb {
  grid-column: 1 / -1; display: block; width: 100%; height: 300px; padding: 14px; margin: 0;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: zoom-in; transition: border-color .15s ease, box-shadow .15s ease;
}
.poster-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(10, 31, 74, .18)); }
.poster-thumb:hover { border-color: var(--blue-600); box-shadow: var(--shadow-sm); }
.poster-thumb:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.news-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 4px; }
button.link-arrow { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.news-actions .link-arrow { font-weight: 600; font-size: .95rem; color: var(--blue-600); text-decoration: none; }
.news-actions .link-arrow::after { content: " →"; }
.news-actions .link-arrow:hover { color: var(--navy-800); text-decoration: underline; text-underline-offset: 3px; }
.news-grid:has(> .news-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .news-grid:has(> .news-card:nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr); } }
.ev-dialog { width: min(1040px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(7, 22, 55, .45); overflow: auto; color: var(--text); }
.ev-dialog::backdrop { background: rgba(7, 22, 55, .65); }
.ev-dialog-inner { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.ev-dialog-inner.no-poster { grid-template-columns: minmax(0, 1fr); }
.ev-poster { display: block; align-self: stretch; padding: 24px; background: var(--bg-alt); cursor: zoom-in; }
.ev-poster img { display: block; width: 100%; height: auto; box-shadow: 0 6px 18px rgba(10, 31, 74, .18); }
.ev-info { display: grid; gap: 12px; align-content: start; padding: 32px 32px 30px; }
.ev-info h2 { font-size: 1.45rem; line-height: 1.25; color: var(--navy-900); padding-right: 36px; }
.ev-details { display: grid; gap: .8em; font-size: .98rem; }
.ev-details ul { display: grid; gap: .4em; padding-left: 1.2em; }
.ev-details strong { color: var(--ink); }
.ev-info .btn { justify-self: start; }
.ev-close { position: absolute; top: 10px; right: 12px; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--navy-900); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.ev-close:hover { background: var(--tint); }
@media (max-width: 760px) {
  .ev-dialog-inner { grid-template-columns: minmax(0, 1fr); }
  .ev-poster { padding: 16px; }
  .ev-info { padding: 22px 20px 24px; }
  .poster-thumb { height: 240px; }
}

/* ---------- Fascia invito ---------- */
.cta-band {
  position: relative; color: #fff;
  background: linear-gradient(90deg, rgba(7, 22, 55, .94) 0%, rgba(7, 22, 55, .78) 60%, rgba(7, 22, 55, .55) 100%), url("../img/band.jpg") center 70% / cover var(--navy-900);
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: clamp(48px, 6vw, 72px); }
.cta-inner > div { display: grid; gap: 10px; max-width: 680px; min-width: 0; }
.cta-inner h2 { color: #fff; font-size: clamp(1.45rem, 1.15rem + 1.2vw, 1.95rem); }
.cta-inner p { color: var(--on-dark-muted); font-size: 1.05rem; }

/* ---------- Banner pagine interne ---------- */
.page-banner {
  position: relative; color: #fff;
  background: linear-gradient(90deg, rgba(5, 14, 38, .92) 0%, rgba(5, 14, 38, .72) 55%, rgba(5, 14, 38, .35) 100%), url("../img/banner.jpg") center 60% / cover var(--navy-950);
}
.banner-inner { display: grid; gap: 16px; padding-block: clamp(44px, 6vw, 76px); }
.banner-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .banner-grid { grid-template-columns: minmax(0, 1fr); } }
.banner-copy { display: grid; gap: 16px; min-width: 0; }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 1.35rem + 2.6vw, 3rem); }
.page-banner .lead { color: #D4DEEE; }
.page-banner .kicker { color: var(--cyan-400); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-current] { color: #fff; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding: 7px 12px; border-radius: 3px;
  background: rgba(59, 178, 230, .16); border: 1px solid rgba(59, 178, 230, .45);
  color: #fff; font-size: .92rem; font-weight: 500;
}
.badge svg { width: 16px; height: 16px; color: var(--cyan-400); flex: none; }

/* Cifre sotto il banner */
.facts-band { background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { display: grid; align-content: start; gap: 4px; padding: 26px 24px; min-width: 0; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact b { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; color: var(--navy-800); line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact span { font-size: .9rem; color: var(--muted); }
.facts--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.facts--5 .fact { padding-inline: 20px; }
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(odd) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fact { padding: 18px 14px; }
  .fact b { font-size: 1.3rem; }
}

/* ---------- Video ---------- */
.video { margin: 0; display: grid; gap: 10px; min-width: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--navy-950); border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; text-align: left; font: inherit; }
.video-play img { width: 100%; height: 100%; object-fit: cover; }
.video-overlay {
  position: absolute; inset: 0;
  display: grid; align-content: end; gap: 4px;
  padding: clamp(16px, 3vw, 24px);
  background: linear-gradient(180deg, rgba(5, 14, 38, .1) 0%, rgba(5, 14, 38, .35) 50%, rgba(5, 14, 38, .9) 100%);
}
.play-icon {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  transition: transform .15s ease, background-color .15s ease;
}
.play-icon::after {
  content: ""; position: absolute; left: 30px; top: 24px;
  border-style: solid; border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--blue-600);
}
.video-play:hover .play-icon { transform: translate(-50%, -50%) scale(1.06); background: #fff; }
.video-label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-400); }
@media (max-width: 560px) {
  .video-overlay { gap: 2px; }
  .play-icon { top: 34%; width: 54px; height: 54px; }
  .play-icon::after { left: 21px; top: 16px; border-width: 11px 0 11px 17px; }
  .video-label { font-size: .7rem; }
  .video-play .video-title { font-size: 1rem; line-height: 1.3; }
}
.video-title { font-size: clamp(1.05rem, .95rem + .6vw, 1.35rem); font-weight: 600; color: #fff; }
.video figcaption { font-size: .86rem; color: var(--muted); }
.page-banner .video figcaption { color: var(--on-dark-muted); }
.page-banner .video figcaption a { color: #fff; }
@media (max-width: 480px) { .play-icon { width: 60px; height: 60px; } .play-icon::after { left: 24px; top: 18px; border-width: 12px 0 12px 18px; } }

/* ---------- Pagine editore ---------- */
.pub-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 1000px) { .pub-layout { grid-template-columns: minmax(0, 1fr); } }
.pub-sections { display: grid; gap: clamp(48px, 5vw, 64px); min-width: 0; }
.pub-section { display: grid; gap: 18px; min-width: 0; scroll-margin-top: 110px; }
.pub-section > h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pub-section h3 { font-size: 1.15rem; margin-top: 6px; }
.pub-section > h2.has-num { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--blue-600); }
.h2-num { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue-600); color: #fff; font-size: 1.3rem; font-weight: 700; line-height: 1; }
.pub-section h3.sub-h { margin-top: 26px; font-size: 1.3rem; color: var(--navy-900); }
@media (max-width: 520px) { .h2-num { width: 38px; height: 38px; font-size: 1.1rem; } }
.side { position: sticky; top: 110px; display: grid; gap: 18px; min-width: 0; }
@media (max-width: 1000px) { .side { position: static; } }
.side-box { display: grid; gap: 12px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.side-title { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-box h2 { font-size: 1.25rem; }
.side-box p { font-size: .96rem; color: var(--muted); }
.side-box--accent { background: var(--navy-900); border-color: var(--navy-900); }
.side-box--accent h2 { color: #fff; }
.side-box--accent p { color: var(--on-dark-muted); }
.side-box--accent .btn { background: #fff; border-color: #fff; color: var(--navy-800); }
.side-box--accent .btn:hover { background: var(--tint); border-color: var(--tint); }
.toc { list-style: none; display: grid; gap: 2px; font-size: .96rem; }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 3px solid var(--line); color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--blue-600); border-left-color: var(--blue-600); }
.ext-links { list-style: none; display: grid; gap: 10px; font-size: .96rem; }
.ext-links a { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.ext-links svg { width: 13px; height: 13px; flex: none; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
thead th { background: var(--navy-800); color: #fff; font-weight: 600; font-size: .88rem; border-bottom: 0; }
tbody tr:nth-child(even) td { background: var(--bg-alt); }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
tr.total td { font-weight: 600; background: var(--tint) !important; color: var(--navy-800); }

.list-tiles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .list-tiles { grid-template-columns: minmax(0, 1fr); } }
.list-tiles li { display: grid; align-content: start; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--blue-600); border-radius: var(--radius); background: #fff; min-width: 0; }
.list-tiles b { font-weight: 600; color: var(--ink); line-height: 1.35; }
.list-tiles span { font-size: .86rem; color: var(--muted); }
.list-tiles a { color: var(--ink); text-decoration: none; }
.list-tiles a:hover { color: var(--blue-600); text-decoration: underline; }

.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li a, .pill-list li span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .92rem; color: var(--ink); text-decoration: none; background: #fff; }
.pill-list li a:hover { border-color: var(--blue-600); color: var(--blue-600); }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; position: relative; display: grid; gap: 8px; align-content: start; padding: 26px 24px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-600); color: #fff; font-weight: 600; font-size: 1rem;
  margin-bottom: 4px;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 40px; right: -17px; z-index: 1;
  width: 10px; height: 10px; border-top: 2px solid var(--blue-500); border-right: 2px solid var(--blue-500);
  transform: rotate(45deg);
}
.steps h3, .steps h4 { font-size: 1.12rem; }
.steps p { color: var(--muted); font-size: .97rem; }
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li:not(:last-child)::after { display: none; }
}

.def-list { display: grid; margin: 0; border-top: 1px solid var(--line); }
.def-list > div { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 4px 24px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.def-list dt { font-weight: 600; color: var(--ink); }
.def-list dd { margin: 0; color: var(--text); }
.section-sub { color: var(--muted); }
.pub-section .def-list + .prose { margin-top: 18px; }
.pub-section .prose h3 + .section-sub { margin-top: 2px; }
@media (max-width: 560px) { .def-list > div { grid-template-columns: minmax(0, 1fr); } }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .related { grid-template-columns: minmax(0, 1fr); } }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 600; transition: border-color .15s ease, box-shadow .15s ease; }
.related a small { display: block; color: var(--muted); font-weight: 400; font-size: .88rem; }
.related a svg { width: 18px; height: 18px; color: var(--blue-600); flex: none; }
.related a:hover { border-color: var(--blue-600); box-shadow: var(--shadow-sm); }

/* ---------- Pagine delle collezioni eBook ---------- */
.checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 640px) { .checks--2 { grid-template-columns: minmax(0, 1fr); } }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 700px) { .cols2 { grid-template-columns: minmax(0, 1fr); } }
.cols2 .card { padding: 24px 24px 26px; }
.pub-section .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) { .pub-section .tiles { grid-template-columns: minmax(0, 1fr); } }
.dl-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
.dl-grid--wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.dl-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dl-card:hover { border-color: var(--blue-600); box-shadow: var(--shadow-sm); color: var(--ink); }
.dl-type {
  font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  padding: 5px 6px; border-radius: 3px;
  background: var(--tint); color: var(--blue-600);
}
.dl-text { display: grid; min-width: 0; line-height: 1.25; }
.dl-text b { font-weight: 600; font-variant-numeric: tabular-nums; }
.dl-text small { font-size: .8rem; color: var(--muted); }
.dl-card svg { width: 18px; height: 18px; color: var(--blue-600); }
.dl-card:hover svg { color: var(--navy-800); }
@media (max-width: 600px) {
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dl-grid--wide { grid-template-columns: minmax(0, 1fr); }
  .dl-grid:not(.dl-grid--wide) .dl-card { grid-template-columns: auto minmax(0, 1fr); padding: 10px 12px; gap: 10px; }
  .dl-grid:not(.dl-grid--wide) .dl-card svg { display: none; }
}
.list-tiles li.is-link { position: relative; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; background: var(--tint); transition: box-shadow .15s ease; }
.list-tiles li.is-link b { grid-column: 1; }
.list-tiles li.is-link span { grid-column: 1; }
.list-tiles li.is-link svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 18px; height: 18px; color: var(--blue-600); transition: transform .15s ease; }
.list-tiles li.is-link a { color: var(--navy-800); }
.list-tiles li.is-link a::after { content: ""; position: absolute; inset: 0; }
.list-tiles li.is-link:hover { box-shadow: var(--shadow-sm); }
.list-tiles li.is-link:hover svg { transform: translateX(3px); }

.badge-light { justify-self: start; display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--blue-600); padding: 4px 10px; border-radius: 3px; }

/* ---------- Componenti delle pagine editori ---------- */
/* Intestazione di una piattaforma dentro una sezione (ASTM Compass, ASTM Digital Library) */
.platform-head { display: grid; gap: 4px; padding: 18px 22px; background: var(--tint); border-left: 5px solid var(--blue-600); border-radius: 0 var(--radius) var(--radius) 0; }
.platform-tag { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); }
.pub-section .platform-head h3 { margin: 0; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.55rem); font-weight: 700; color: var(--navy-900); }
.platform-head p { color: var(--text); font-size: 1rem; }
.pub-section .platform-head ~ .platform-head { margin-top: 26px; }

/* Standard ASTM "di casa" e standard di altri enti su ASTM Compass */
.std-acr { justify-self: start; display: block; font-weight: 700; font-size: 1.3rem; line-height: 1.1; letter-spacing: .02em; color: var(--navy-800); white-space: nowrap; padding-bottom: 8px; border-bottom: 3px solid var(--blue-600); }
.std-home { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue-600); border-radius: var(--radius); }
.std-home .std-acr { padding: 12px 14px; border: 0; border-radius: var(--radius); background: var(--navy-800); color: #fff; font-size: 1.35rem; }
.std-home b { display: block; color: var(--navy-900); font-size: 1.16rem; font-weight: 700; line-height: 1.3; margin: 4px 0 8px; }
.std-home p { color: var(--text); font-size: .97rem; max-width: 64ch; }
.std-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); }
.std-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 10px; }
.std-grid li { display: grid; align-content: start; gap: 8px; padding: 16px 16px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.std-grid b { font-weight: 500; color: var(--ink); font-size: .93rem; line-height: 1.35; }
.std-where { font-size: .8rem; color: var(--muted); }
.std-free { justify-self: start; font-style: normal; font-size: .74rem; font-weight: 700; color: var(--ok); background: #E5F2EB; padding: 4px 8px; border-radius: 3px; }
@media (max-width: 520px) {
  .platform-head { padding: 16px 18px; }
  .std-home { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px; }
  .std-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .std-grid li { padding: 14px 12px 12px; }
  .std-grid .std-acr { font-size: 1.15rem; }
  .std-grid b { font-size: .86rem; }
}

/* Linea del tempo dei periodi d'archivio (IEEE Journals Archive) */
.periods { list-style: none; display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 4px; }
.periods li { display: grid; align-content: start; gap: 3px; padding: 12px 14px; background: var(--tint); border-top: 4px solid var(--blue-500); min-width: 0; }
.periods li:first-child { border-top-left-radius: var(--radius); border-bottom-left-radius: var(--radius); }
.periods li:last-child { border-top-right-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.periods b { font-weight: 700; font-size: 1rem; color: var(--navy-800); font-variant-numeric: tabular-nums; white-space: nowrap; }
.periods span { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.periods li.is-base { background: var(--navy-800); border-top-color: var(--cyan-400); }
.periods li.is-base b { color: #fff; }
.periods li.is-base span { color: var(--on-dark-muted); }
@media (max-width: 640px) {
  .periods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .periods li.is-base { grid-column: 1 / -1; }
  .periods li { border-radius: 0 !important; }
}

/* Piccola fascia di numeri dentro una sezione */
.mini-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.mini-stats li { display: grid; align-content: start; gap: 6px; padding: 16px 18px; border-left: 1px solid var(--line); min-width: 0; }
.mini-stats li:first-child { border-left: 0; }
.mini-stats b { font-size: 1.6rem; font-weight: 600; line-height: 1.1; color: var(--navy-800); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-stats span { font-size: .86rem; line-height: 1.35; color: var(--muted); }
@media (max-width: 760px) {
  .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-stats li:nth-child(odd) { border-left: 0; }
  .mini-stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.mini-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .mini-stats--3 { grid-template-columns: minmax(0, 1fr); }
  .mini-stats--3 li { border-left: 0; }
  .mini-stats--3 li + li { border-top: 1px solid var(--line); }
}

/* Riquadri affiancati con etichetta (es. licenze dati IEEE, strumenti AI) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.info-card { padding: 22px 22px 24px; gap: 10px; }
.pub-section .info-card h3 { margin-top: 0; font-size: 1.12rem; }
.info-card p { font-size: .96rem; }
.info-card ul { display: grid; gap: 6px; padding-left: 1.1em; color: var(--muted); font-size: .94rem; }
.card-tag { justify-self: start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; background: var(--tint); color: var(--blue-600); }

/* Tabella di confronto */
table.compare th[scope="row"] { font-weight: 600; color: var(--ink); background: var(--bg-alt); white-space: nowrap; }
table.compare tbody tr:nth-child(even) td { background: #fff; }
table.compare td { vertical-align: top; }
@media (max-width: 600px) { table.compare { min-width: 600px; font-size: .88rem; } table.compare th, table.compare td { padding: 10px 12px; } }

/* Riquadro largo cliccabile (es. Mini-MBA in IEEE E-Learning) */
.wide-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 24px 28px; background: var(--navy-900); border-radius: var(--radius); color: #fff; text-decoration: none; transition: background-color .15s ease; }
.wide-link:hover { background: var(--navy-800); color: #fff; }
.wide-text { display: grid; gap: 4px; min-width: 0; }
.wide-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-400); }
.wide-link b { font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.wide-sub { color: #fff; font-size: 1rem; }
.wide-meta { margin-top: 6px; color: var(--on-dark-muted); font-size: .9rem; }
.wide-link svg { width: 26px; height: 26px; color: #fff; transition: transform .15s ease; }
.wide-link:hover svg { transform: translateX(4px); }
@media (max-width: 520px) { .wide-link { padding: 20px; gap: 12px; } .wide-link b { font-size: 1.2rem; } }

/* Riquadro in evidenza con pulsanti (es. riviste Bentham per Impact Factor) */
.feature-box { display: grid; gap: 10px; padding: 26px 28px; background: var(--tint); border: 1px solid #C9DAF0; border-left: 4px solid var(--blue-600); border-radius: var(--radius); }
.feature-kicker { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); }
.pub-section .feature-box h3 { margin-top: 0; font-size: 1.3rem; color: var(--navy-900); }
.feature-box p:not(.feature-kicker) { color: var(--text); max-width: 68ch; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn-ghost { background: #fff; color: var(--blue-600); }
.btn-ghost:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
@media (max-width: 520px) {
  .feature-box { padding: 22px 20px; }
  .feature-actions .btn { width: 100%; }
}

/* ---------- Chi siamo ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }
.about-text { display: grid; gap: 1.1em; font-size: 1.1rem; max-width: 66ch; }
.sheet { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.sheet-head { padding: 16px 22px; background: var(--navy-800); color: #fff; font-weight: 600; }
.sheet .def-list { border-top: 0; }
.sheet .def-list > div { grid-template-columns: 8.5rem minmax(0, 1fr); padding: 13px 22px; }
.sheet .def-list > div:nth-child(even) { background: var(--bg-alt); }
.sheet .def-list > div:last-child { border-bottom: 0; }
.sheet dt { font-size: .9rem; color: var(--muted); font-weight: 500; }
@media (max-width: 420px) { .sheet .def-list > div { grid-template-columns: minmax(0, 1fr); } }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiles--2, .tiles--4 { grid-template-columns: minmax(0, 1fr); } }
.bridge { display: grid; gap: 14px; margin-top: clamp(28px, 4vw, 40px); }
.bridge h3 { font-size: 1.1rem; }
.highlight-card { display: grid; gap: 10px; align-content: start; padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.highlight-card .tag { justify-self: start; font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: #fff; background: var(--blue-600); padding: 4px 10px; border-radius: 3px; }
.highlight-card p { color: var(--muted); }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-card { background: var(--navy-900); color: var(--on-dark-muted); border-radius: var(--radius); overflow: hidden; }
.contact-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 22px 26px; }
.contact-row + .contact-row { border-top: 1px solid rgba(255, 255, 255, .1); }
.contact-row .icon { grid-row: span 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(59, 178, 230, .15); color: var(--cyan-400); }
.contact-row .icon svg { width: 20px; height: 20px; }
.contact-row .label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.contact-row address { font-style: normal; color: #fff; font-size: 1.05rem; }
.contact-value { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: #fff; font-size: 1.08rem; }
.contact-value a, .contact-row a { color: #fff; }
.contact-row .more { color: var(--cyan-400); font-size: .92rem; }
.contact-hint { padding: 18px 26px 22px; font-size: .92rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.copy-btn { font: 600 .75rem/1 var(--font); letter-spacing: .05em; text-transform: uppercase; padding: 6px 10px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; cursor: pointer; }
.copy-btn:hover { background: rgba(255, 255, 255, .12); }
.copy-btn.is-done { border-color: var(--cyan-400); color: var(--cyan-400); }

.form { display: grid; gap: 18px; padding: clamp(24px, 3.5vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); position: relative; }
.form h2 { font-size: 1.5rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .92rem; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 11px 12px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue-600); outline-offset: 0; border-color: var(--blue-600); }
.field-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: .92rem; color: var(--muted); }
.field-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue-600); }
.form-status { font-size: .95rem; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-alt); }
.form-status.is-ok { border-color: var(--ok); }
.form-status.is-error { border-color: var(--warn); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pagina testuale ---------- */
.legal { display: grid; gap: 1em; max-width: 74ch; }
.legal h2 { font-size: 1.3rem; margin-top: 1.2em; }
.legal ul { padding-left: 1.2em; display: grid; gap: .4em; }

/* ---------- Piè di pagina ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); font-size: .95rem; }
.site-footer a { color: #E4EBF6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 64px 48px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { max-width: 38ch; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); }
.social a:hover { background: var(--blue-600); border-color: var(--blue-600); text-decoration: none; }
.social svg { width: 18px; height: 18px; vertical-align: 0; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h2 { font-size: .95rem; font-weight: 600; color: #fff; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer-col ul { list-style: none; display: grid; gap: 7px; }
.footer-col address { font-style: normal; color: #E4EBF6; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 18px 22px; font-size: .85rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
