/* ===========================================================================
   ESA · What's new in ESA · v1.0.0 (2026-10-27)
   Tutto è racchiuso in .esn. I pulsanti usano i .btn-tech del CSS globale del sito.
   =========================================================================== */
.esn{
  --esn-font-head:'Aptos','Segoe UI',system-ui,sans-serif;
  --esn-head-weight:700;
  --esn-font-body:'Aptos','Segoe UI',system-ui,sans-serif;
  --esn-body-weight:300;
  --esn-font-mono:'IBM Plex Mono',ui-monospace,monospace;
  --esn-navy:#16243E;
  --esn-accent:#2E5CFF;
  --esn-ink:#2B3444;
  --esn-text:#4A5464;
  --esn-mute:#5B6472;
  --esn-line:#E3E3E3;
  --esn-paper:#F6F7F9;
  --esn-mark:#16243E;               /* colore del logo LinkedIn nelle schede (#0A66C2 = blu LinkedIn) */
  --esn-focus:2px solid #2E5CFF;    /* stile del focus visibile: cambialo qui */
  font-family:var(--esn-font-body);
  font-weight:var(--esn-body-weight);
  color:var(--esn-ink);
}
.esn *,.esn *::before,.esn *::after{ box-sizing:border-box; }
.esn p,.esn h2,.esn h3,.esn h4{ margin:0; padding:0; }
.esn [hidden]{ display:none !important; }
.esn .esn-sr{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.esn .esn-icon{ flex:none; }
.esn a:focus,.esn button:focus{ outline:none; }
.esn a:not(.btn-tech):focus-visible,.esn button:not(.btn-tech):focus-visible,.esn [tabindex]:focus-visible{ outline:var(--esn-focus); outline-offset:3px; }
.esn a.btn-tech{ text-decoration:none; }
.esn a.btn-tech.ghost,.esn button.btn-tech.ghost{ color:var(--navy, #16243E) !important; }
.esn .btn-tech.primary{ color:#fff !important; }
/* pulsanti <button>: alcuni temi danno uno sfondo a tutti i pulsanti */
.esn button.btn-tech.ghost{ background:transparent !important; border-color:var(--navy, #16243E) !important; box-shadow:none !important; }
.esn button.btn-tech.primary{ background:var(--navy, #16243E) !important; border-color:var(--navy, #16243E) !important; }
.esn .esn-mark{ flex:none; }
.esn .esn-mark rect{ fill:var(--esn-mark); }
.esn .esn-meta{ font-family:var(--esn-font-mono); font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--esn-mute); }
.esn .esn-rule{
  display:flex; align-items:center; gap:24px; margin:0 0 24px;
  font-family:var(--esn-font-mono); font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:var(--esn-mute);
}
.esn .esn-rule::after{ content:""; flex:1 1 auto; height:1px; background:#E1E3E7; }
.esn .esn-rule--plain::after{ display:none; }
.esn .esn-badge{
  position:absolute; left:12px; top:12px; z-index:1; padding:4px 9px; background:var(--esn-navy); color:#fff;
  font-family:var(--esn-font-head); font-weight:var(--esn-head-weight); font-size:11px; letter-spacing:.06em; text-transform:uppercase;
}
.esn .esn-card__img{ position:absolute; inset:0; display:block; width:100% !important; height:100% !important; max-width:none; object-fit:cover; transition:transform .5s cubic-bezier(.22,1,.36,1); }
.esn .is-empty{ background-color:#E9ECF0; background-image:repeating-linear-gradient(135deg, rgba(22,36,62,.07) 0 1px, transparent 1px 11px); }

/* --- in evidenza --- */
.esn-feat{ margin:0 0 72px; }
.esn-feat__card{ display:flex; flex-wrap:wrap; border:1px solid var(--esn-line); border-radius:4px; overflow:hidden; background:#fff; }
.esn-feat__media{ position:relative; flex:1.2 1 520px; min-height:360px; overflow:hidden; background:#E9ECF0; }
.esn-feat__media .esn-badge{ left:16px; top:16px; font-size:12px; padding:5px 10px; }
.esn-feat__body{ flex:1 1 380px; min-width:0; display:flex; flex-direction:column; gap:16px; padding:40px 44px; }
.esn .esn-feat__title{ font-family:var(--esn-font-head); font-weight:var(--esn-head-weight); font-size:clamp(26px, 2.4vw, 34px); line-height:1.15; color:var(--esn-navy); }
.esn .esn-feat__title a{ color:var(--esn-navy) !important; text-decoration:none; }
.esn .esn-feat__title a:hover{ color:var(--esn-accent) !important; }
.esn .esn-feat__text{ font-size:17px; line-height:1.65; color:var(--esn-text); }
.esn-feat__cta{ margin-top:auto; padding-top:12px; }
.esn-feat__card:hover .esn-card__img{ transform:scale(1.03); }

/* --- filtri --- */
.esn-bar{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:16px 32px; margin:0 0 32px; }
.esn-filters{ display:flex; flex-wrap:wrap; gap:8px; }
.esn .esn-chip{
  display:inline-flex; align-items:center; gap:8px; min-height:44px; margin:0; padding:0 16px !important;
  border:1px solid var(--esn-navy) !important; border-radius:3px !important; background:#fff !important; color:var(--esn-navy) !important;
  font-family:var(--esn-font-head); font-weight:var(--esn-head-weight); font-size:14px; line-height:1; cursor:pointer; box-shadow:none !important;
  transition:background .15s ease, color .15s ease;
}
.esn .esn-chip:hover{ background:#EEF3FF !important; }
.esn .esn-chip[aria-pressed="true"]{ background:var(--esn-navy) !important; color:#fff !important; }
.esn .esn-chip__count{ font-family:var(--esn-font-body); font-weight:var(--esn-body-weight); opacity:.75; }
.esn .esn-count{ font-size:15px; color:var(--esn-mute); }

/* --- schede: tutte della stessa altezza e con lo stesso formato d'immagine --- */
.esn-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:28px; }
.esn-card{
  position:relative; display:flex; flex-direction:column; border:1px solid var(--esn-line); border-radius:4px; overflow:hidden; background:#fff;
  transition:border-color .25s ease, box-shadow .25s ease, transform .25s cubic-bezier(.22,1,.36,1);
}
.esn-card:hover,.esn-card:focus-within{ border-color:var(--esn-accent); box-shadow:0 12px 28px -16px rgba(46,92,255,.45); transform:translateY(-3px); }
.esn-card:hover .esn-card__img{ transform:scale(1.04); }
.esn-card__media{ position:relative; flex:none; aspect-ratio:16 / 10; overflow:hidden; background:#E9ECF0; }
.esn .esn-card__ph{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background-color:#E9ECF0; background-image:repeating-linear-gradient(135deg, rgba(22,36,62,.07) 0 1px, transparent 1px 11px); }
.esn .esn-card__ph--li{ background-color:var(--esn-navy); background-image:repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 11px); }
.esn .esn-card__ph--li .esn-mark rect{ fill:transparent; }
.esn .esn-badge{ display:inline-flex; align-items:center; gap:6px; }
.esn .esn-badge .esn-mark{ width:14px; height:14px; }
.esn .esn-badge .esn-mark rect{ fill:transparent; }
.esn-card__body{ flex:1 1 auto; display:flex; flex-direction:column; gap:12px; padding:22px 22px 20px; }
.esn-card__body .esn-meta{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }   /* una riga sola: tutte le schede alte uguali */
.esn .esn-card__title{
  font-family:var(--esn-font-head); font-weight:var(--esn-head-weight); font-size:20px; line-height:1.3; color:var(--esn-navy);
  min-height:2.6em; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;   /* sempre 2 righe */
}
.esn .esn-card__title a{ color:var(--esn-navy) !important; text-decoration:none; }
.esn .esn-card__title a::after{ content:""; position:absolute; inset:0; z-index:2; }   /* tutta la scheda è cliccabile */
.esn .esn-card__title a:focus-visible{ outline:none; }
.esn-card:focus-within{ outline:var(--esn-focus); outline-offset:3px; }
.esn .esn-card__text{
  font-size:15px; line-height:1.6; color:var(--esn-text); white-space:pre-line;
  min-height:4.8em; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;   /* sempre 3 righe */
}
.esn .esn-card__foot{
  flex:none; display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:52px; padding:0 22px;
  border-top:1px solid var(--esn-line); font-family:var(--esn-font-head); font-weight:var(--esn-head-weight); font-size:14px; color:var(--esn-navy);
}
.esn-card:hover .esn-card__foot{ color:var(--esn-accent); }

/* link "Apri il profilo" del feed in diretta */
.esn .esn-li-link{
  display:inline-flex; align-items:center; gap:8px; min-height:44px;
  font-family:var(--esn-font-head); font-weight:var(--esn-head-weight); font-size:14px; color:var(--esn-navy) !important; text-decoration:none;
}
.esn .esn-li-link:hover{ color:var(--esn-accent) !important; }

.esn-more{ display:flex; justify-content:center; margin:44px 0 0; }
.esn .esn-empty{ font-size:16px; color:var(--esn-mute); }

/* --- [esa_novita_segui] --- */
.esn-follow{ display:flex; align-items:center; gap:16px; padding:18px 20px; border:1px solid var(--esn-navy); background:#fff; }
.esn-follow__text{ flex:1 1 auto; min-width:0; }
.esn .esn-follow__title{ margin:0 0 2px; font-family:var(--esn-font-head); font-weight:var(--esn-head-weight); font-size:15px; color:var(--esn-navy); }
.esn .esn-follow__sub{ font-size:14px; line-height:1.45; color:var(--esn-mute); }
.esn-follow .btn-tech{ flex:none; padding:10px 18px; }

/* --- [esa_novita_linkedin] --- */
.esn-live__head{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:16px 40px; margin:0 0 32px; }
.esn-live .esn-rule{ margin:0 0 12px; }
.esn .esn-live__title{ font-family:var(--esn-font-head); font-weight:var(--esn-head-weight); font-size:30px; line-height:1.15; color:var(--esn-navy); }
.esn-live__consent{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px 40px; padding:36px 40px; border:1px dashed #B4BAC4; border-radius:4px; background:#fff; }
.esn-live__consent > div{ flex:1 1 460px; min-width:0; }
.esn .esn-live__lead{ margin:0 0 6px; font-family:var(--esn-font-head); font-weight:var(--esn-head-weight); font-size:17px; color:var(--esn-navy); }
.esn .esn-live__text{ font-size:15px; line-height:1.6; color:var(--esn-text); }

@media (max-width:767px){
  .esn-feat{ margin-bottom:56px; }
  .esn-feat__media{ flex-basis:100%; min-height:0; aspect-ratio:16 / 10; }
  .esn-feat__body{ padding:26px 22px 28px; }
  .esn-grid{ grid-template-columns:minmax(0, 1fr); gap:20px; }
  .esn-follow{ flex-wrap:wrap; }
  .esn-live__consent{ padding:24px 20px; }
  .esn .esn-live__title{ font-size:26px; }
}
@media (prefers-reduced-motion:reduce){
  .esn *{ transition:none !important; }
}
