/* Dynexa Solutions – www.dynexasolutions.it */

/* ---------- Font (Montserrat, ospitato sul sito) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin-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: "Montserrat";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-latin-italic.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;
}

/* ---------- Colori e misure ---------- */
:root {
  --ink: #0d1b2a;
  --text: #2d3540;
  --muted: #69707a;
  --navy: #1a365f;          /* blu Dynexa */
  --navy-dark: #12284a;
  --accent: #00adef;        /* ciano Dynexa: solo per piccoli dettagli */
  --paper: #ffffff;
  --paper-warm: #f3f1ec;
  --rule: #d8d4cc;
  --ok: #0a7d55;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --gap: clamp(16px, 2vw, 32px);
  --header-h: 76px;
  --space: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(.2, .7, .1, 1);

}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
address { font-style: normal; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--navy); color: #fff; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

/* ---------- Pulsanti e link ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 20px;
  font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.2;
  color: #fff; background: var(--navy); border: 1px solid var(--navy); border-radius: 2px;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { color: #fff; background: var(--navy-dark); border-color: var(--navy-dark); text-decoration: none; }
.btn--line { color: var(--ink); background: transparent; border-color: var(--ink); }
.btn--line:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
.btn--block { width: 100%; justify-content: space-between; }
.btn:active { transform: translateY(1px); }
.more { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.more:hover { text-decoration: none; color: var(--navy); border-bottom-width: 2px; }

/* ======================================================================
   Header
   ====================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex: none; display: block; position: relative; z-index: 2; }
.brand img { width: 152px; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__link { position: relative; display: block; padding: 8px 0; font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: color .2s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--navy); text-decoration: none; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--navy); }
.nav__actions { display: flex; align-items: center; gap: 24px; }
.nav__portal { font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav__portal:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.nav__actions .btn { padding: 10px 16px; }
.nav__contact { display: none; }
.lang { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
.lang__link { color: var(--muted); text-decoration: none; padding: 4px 0; }
.lang__link:hover { color: var(--ink); text-decoration: none; }
.lang__link[aria-current] { color: var(--ink); }

.nav-toggle {
  display: none; position: relative; z-index: 2; align-items: center; gap: 12px; padding: 8px 0;
  border: 0; background: none; cursor: pointer; font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink);
}
.nav-toggle__bars { position: relative; width: 22px; height: 10px; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8.5px; }
.nav-open .nav-toggle__bars::before { top: 4.25px; transform: rotate(45deg); }
.nav-open .nav-toggle__bars::after { top: 4.25px; transform: rotate(-45deg); }
.nav-toggle .label-close { display: none; }
.nav-open .nav-toggle .label-open { display: none; }
.nav-open .nav-toggle .label-close { display: inline; }


@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 32px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
    background: var(--paper); overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s;
  }
  .nav-open .nav { visibility: visible; opacity: 1; transition: opacity .25s; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding: 14px 0; font-size: clamp(1.8rem, 7vw, 2.6rem); font-weight: 600; letter-spacing: -.035em; border-bottom: 1px solid var(--rule); }
  .nav__link::after { display: none; }
  .nav__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .nav__portal { padding: 12px 0; }
  .lang { font-size: 1rem; gap: 10px; padding: 8px 0; }
  .nav__actions .btn { justify-content: center; padding: 16px; }
  .nav__contact { display: block; margin-top: auto; font-size: .92rem; color: var(--muted); }
  .nav__contact p { margin: 0 0 4px; }
  .nav__contact a { color: var(--ink); }
}

/* ======================================================================
   Sezioni: etichetta a sinistra, contenuto a destra
   ====================================================================== */
.section { padding: 0 0 var(--space); }
.section > .wrap::before { content: ""; display: block; grid-column: 1 / -1; border-top: 1px solid var(--ink); margin-bottom: 24px; }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.row__label {
  grid-column: 1 / span 3; align-self: start; position: sticky; top: calc(var(--header-h) + 24px);
  font-size: .95rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--ink); margin: 0 0 32px;
}
.row__body { grid-column: 4 / -1; }
.row__side { grid-column: 1 / span 3; }
.sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.section-title { font-size: clamp(2.2rem, 5vw, 4.25rem); letter-spacing: -.04em; line-height: 1; margin: 0 0 28px; }

.lead { font-size: clamp(1.3rem, 2.3vw, 1.9rem); line-height: 1.35; letter-spacing: -.015em; color: var(--ink); font-weight: 400; max-width: 34ch; }
.lead--wide { max-width: 44ch; }
.subhead { font-size: .95rem; font-weight: 600; color: var(--ink); margin: 64px 0 0; }

/* ---------- Hero home ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: min(calc(100svh - var(--header-h)), 860px);
  color: #fff; background: #12202f; overflow: hidden;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 18, 32, 0) 40%, rgba(8, 18, 32, .8) 100%); }
.hero__inner { position: relative; z-index: 1; width: 100%; padding-top: 96px; padding-bottom: 36px; }
.hero h1 { color: #fff; font-size: clamp(3.4rem, 11vw, 9.5rem); line-height: .9; letter-spacing: -.055em; margin: 0 0 0 -.04em; }
.hero__meta {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  margin-top: 40px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .55);
  font-size: 1rem; font-weight: 500;
}
.hero__meta p { margin: 0; }
.hero__meta p:nth-child(1) { grid-column: 1 / span 4; }
.hero__meta p:nth-child(2) { grid-column: 5 / span 4; }

/* prossimo evento, in evidenza sotto l'hero */
.next-event { background: var(--navy); color: rgba(255, 255, 255, .82); padding: clamp(48px, 6vw, 88px) 0; }
.next-event[hidden] { display: none; }
.next-event .row { align-items: center; row-gap: 32px; }
.next-event__label { grid-column: 1 / span 3; align-self: start; color: #fff; font-weight: 600; }
.next-event__label p { margin: 0; }
.next-event__count { margin-top: 6px !important; font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: -.03em; color: var(--accent); }
.next-event__count:empty { display: none; }
.next-event__body { grid-column: 4 / span 5; }
.next-event__date { margin: 0 0 10px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.next-event h2 { color: #fff; font-size: clamp(2rem, 3.8vw, 3.4rem); letter-spacing: -.04em; line-height: 1.02; margin: 0 0 18px; }
.next-event__info { margin: 0 0 28px; }
.next-event__media { grid-column: 9 / -1; display: block; overflow: hidden; }
.next-event__media img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .6s var(--ease); }
.next-event__media:hover img { transform: scale(1.03); }
.btn--light { color: var(--navy); background: #fff; border-color: #fff; }
.btn--light:hover { color: var(--navy); background: #e6ecf4; border-color: #e6ecf4; }
.hero + .section, .next-event + .section, .ticker + .section { padding-top: var(--space); }

/* nastro delle tecnologie */
.ticker { overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 26px 0; }
.ticker li { display: flex; align-items: center; gap: 40px; padding-right: 40px; white-space: nowrap; font-size: clamp(1.4rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -.035em; color: var(--ink); }
.ticker li::after { content: "/"; color: var(--muted); font-weight: 300; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- Home: perché sceglierci ---------- */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px var(--gap); margin-top: 24px; }
.trust div { border-top: 1px solid var(--rule); padding-top: 18px; }
.trust h3 { margin-bottom: 8px; }
.trust p { margin: 0; }

/* elenco a righe (servizi, punti di forza) */
.list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.list > li { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: var(--gap); padding: 30px 0; border-top: 1px solid var(--rule); }
.list h3 { grid-column: 1 / span 4; margin: 0 0 8px; font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: -.025em; }
.list p { grid-column: 5 / -1; margin: 0; }
.intro-text { max-width: 52ch; margin-bottom: 56px; }

/* ---------- Intestazione delle pagine interne ---------- */
.page-head { padding: clamp(56px, 9vw, 128px) 0 clamp(56px, 7vw, 96px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head h1 { max-width: 18ch; margin: 0; }
.page-head .lead { margin: 28px 0 0; }
.page-head__meta { margin: 28px 0 0; font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.page-head__meta span + span::before { content: "·"; margin: 0 .6em; color: var(--muted); }

.figure { margin: 0 0 var(--space); }
.figure img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; filter: grayscale(1) contrast(1.08); }

/* ---------- Agenti AI ---------- */
.agent { padding: 44px 0; border-top: 1px solid var(--rule); }
.agent:first-child { border-top: 0; padding-top: 0; }
.agent h2 { margin-bottom: 8px; }
.agent__stack { font-size: .95rem; color: var(--muted); margin-bottom: 20px; }
.agent p { max-width: 62ch; }

/* ---------- Testo lungo ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin: 56px 0 16px; letter-spacing: -.02em; }
.prose h3 { font-size: 1.1rem; margin: 40px 0 12px; }
.prose > :first-child { margin-top: 0; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1em; }
.prose ul > li { position: relative; padding-left: 24px; margin-bottom: .45em; }
.prose ul > li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
.prose .lead { max-width: none; margin-bottom: 1.2em; font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
.prose figure { margin: 0 0 40px; }

/* colonna laterale con dati e azione */
.facts { margin: 0 0 24px; font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0 0 14px; color: var(--ink); font-weight: 600; }
.side-note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: .95rem; }

/* ---------- Eventi ---------- */
.events { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.event { display: grid; grid-template-columns: 120px minmax(0, 1fr) 300px; gap: var(--gap); padding: 32px 0; border-top: 1px solid var(--rule); align-items: start; }
.events > li:first-child .event { border-top: 0; padding-top: 4px; }
.event__date { margin: 0; font-variant-numeric: tabular-nums; }
.event__day { display: block; font-size: 3.4rem; font-weight: 600; line-height: .9; letter-spacing: -.05em; color: var(--ink); }
.event__month { display: block; margin-top: 8px; font-size: .95rem; color: var(--muted); }
.event h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0 0 10px; }
.event h2 a { text-decoration: none; }
.event h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.event__info { margin: 0 0 16px; }
.event__status { display: block; margin-bottom: 10px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.event__status[data-status="upcoming"] { color: var(--ok); }
.event__status:empty { display: none; }
.event__thumb { display: block; overflow: hidden; }
.event__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left center; transition: transform .6s var(--ease); }
.event:hover .event__thumb img { transform: scale(1.03); }

/* agenda dei webinar */
.agenda { list-style: none; margin: 0 0 40px; padding: 0; border-bottom: 1px solid var(--rule); }
.agenda > li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--rule); }
.agenda time { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.agenda strong { display: block; }
.agenda .speaker { display: block; color: var(--muted); font-size: .95rem; }
.agenda p { margin: 6px 0 0; font-size: .97rem; }
.agenda ul { margin: 8px 0 0; padding-left: 18px; font-size: .97rem; }
.agenda ul li { margin-bottom: 4px; }
.note { padding: 16px 0 0; border-top: 1px solid var(--ink); font-weight: 500; color: var(--ink); }

/* ---------- Jobs ---------- */
.jobs { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.job { display: grid; grid-template-columns: minmax(0, 1fr) 160px 200px 24px; gap: var(--gap); align-items: baseline; padding: 28px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.jobs > li:first-child .job { border-top: 0; padding-top: 4px; }
.job:hover { text-decoration: none; }
.job:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.job h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin: 0 0 4px; letter-spacing: -.02em; }
.job__sub { margin: 0; color: var(--muted); }
.job__cell { font-size: .95rem; }
.job__arrow { font-size: 1.2rem; color: var(--ink); text-align: right; transition: transform .25s var(--ease); }
.job:hover .job__arrow { transform: translateX(4px); }

/* ---------- 404 ---------- */
.notfound .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.notfound + .site-footer { margin-top: 0; }

/* ======================================================================
   Footer
   ====================================================================== */
/* testa blu: invito a contattarci, uguale su tutte le pagine */
.footer-cta { position: relative; overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, .85); padding: var(--space) 0; }
.footer-cta .wrap { position: relative; }
.footer-cta .wrap::before { content: ""; display: block; grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .45); margin-bottom: 24px; }
.footer-cta .row__label { position: static; color: #fff; }
.footer-cta .row { align-items: end; }
.footer-cta__text { grid-column: 4 / span 6; }
.footer-cta h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 3.25rem); letter-spacing: -.04em; line-height: 1.05; margin-bottom: 14px; }
.footer-cta__kicker { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #fff; margin-bottom: 20px; }
.footer-cta__text p:last-child { max-width: 56ch; margin-bottom: 0; }
.footer-cta__actions { grid-column: 10 / -1; display: grid; gap: 12px; }
.footer-cta__direct { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: .92rem; line-height: 1.7; color: rgba(255, 255, 255, .7); }
.btn--outline-light { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .6); }
.btn--outline-light:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: #fff; }

/* parte chiara: colonne, dati legali, firma */
.footer-main { background: var(--paper-warm); color: var(--text); font-size: .95rem; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; padding: 64px 0 56px; }
.footer-col { grid-column: span 2; }
.footer-col--brand { grid-column: 1 / span 2; }
.footer-col--wide { grid-column: span 3; }
.footer-col--brand img { width: 152px; }
.footer-main h2 { font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin: 0 0 14px; }
.footer-main ul { list-style: none; margin: 0; padding: 0; }
.footer-main li { margin-bottom: 8px; }
.footer-main a { color: var(--ink); text-decoration: none; }
.footer-main a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.footer-main address { color: var(--ink); margin-bottom: 10px; }
.footer-maps { font-weight: 600; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px;
  padding: 20px 0 24px; border-top: 1px solid var(--rule); font-size: .82rem; color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 1100px) {
  .event { grid-template-columns: 100px minmax(0, 1fr) 220px; }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-col, .footer-col--wide { grid-column: span 3; }
}
@media (max-width: 900px) {
  .row__label, .row__body, .row__side { grid-column: 1 / -1; }
  .row__label { position: static; }
  .row__side { margin-bottom: 40px; }
  .sticky { position: static; }
  .list > li { grid-template-columns: 1fr; }
  .list h3, .list p { grid-column: 1 / -1; }
  .event { grid-template-columns: 80px minmax(0, 1fr); }
  .event__date { grid-row: 1 / span 2; }
  .event__thumb { grid-column: 2; grid-row: 1; margin-bottom: 8px; }
  .event__body { grid-column: 2; grid-row: 2; }
  .job { grid-template-columns: minmax(0, 1fr) 24px; }
  .job__cell { display: none; }
  .hero__meta p:nth-child(n) { grid-column: 1 / -1; text-align: left; }
  .hero__meta p + p { margin-top: 4px; }
  .hero > img { object-position: 66% 50%; }
  .next-event__label, .next-event__body, .next-event__media { grid-column: 1 / -1; }
  .footer-cta__text, .footer-cta__actions { grid-column: 1 / -1; }
  .footer-cta__actions { max-width: 380px; margin-top: 32px; }
  .footer-col, .footer-col--wide { grid-column: span 6; }
  }
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .brand img { width: 128px; }
  .trust { grid-template-columns: 1fr; gap: 28px; }
  .event { grid-template-columns: 1fr; }
  .event__date, .event__thumb, .event__body { grid-column: 1; grid-row: auto; }
  .event__date { display: flex; align-items: baseline; gap: 10px; }
  .event__day { font-size: 2rem; }
  .event__month { margin: 0; }
  .agenda > li { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .footer-col, .footer-col--wide { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

/* ======================================================================
   Movimento
   Parte solo con JavaScript attivo (classe .js messa da lang.js) e mai
   per chi ha chiesto al sistema di ridurre le animazioni.
   ====================================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* passaggio tra le pagine: dissolvenza, con l'header che resta fermo */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .22s ease both; }
  ::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

  /* hero: la foto si assesta, il titolo sale parola per parola, la didascalia arriva dopo */
  .js .hero > img { animation: hero-settle 2.2s var(--ease) both; }
  @keyframes hero-settle { from { scale: 1.08; } }
  .js .hero__meta { animation: fade-up .9s var(--ease) .75s both; }

  /* titoli che salgono da dietro una maschera (le parole le prepara main.js) */
  .js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
  .js .split .w > span { display: inline-block; animation: word-rise 1s var(--ease) both; animation-delay: calc(var(--i) * 80ms + 120ms); }
  @keyframes word-rise { from { transform: translateY(110%); } }
  .js .page-head .lead, .js .page-head .page-head__meta, .js .page-head .crumbs { animation: fade-up .9s var(--ease) .35s both; }

  @keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }

  /* filetto in testa alle sezioni: si disegna da sinistra quando la sezione entra */
  .js .section > .wrap::before, .js .footer-cta .wrap::before { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
  .js .section.is-in > .wrap::before, .js .footer-cta.is-in .wrap::before { transform: scaleX(1); }

  /* contenuti che entrano dal basso, in sequenza (main.js aggiunge .is-in quando arrivano sullo schermo;
     lo stesso elenco di elementi è in main.js, REVEAL) */
  .js :is(.row__label, .section-title, .intro-text, .row__body > .lead, .subhead, .trust > div, .list > li,
          .events > li, .jobs > li, .agent, .figure, .row__side .sticky, .prose > :not(.agenda), .agenda > li,
          .footer-cta .row > *, .next-event .row > *) {
    opacity: 0; transform: translateY(26px);
    transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms);
  }
  .js :is(.row__label, .section-title, .intro-text, .row__body > .lead, .subhead, .trust > div, .list > li,
          .events > li, .jobs > li, .agent, .figure, .row__side .sticky, .prose > :not(.agenda), .agenda > li,
          .footer-cta .row > *, .next-event .row > *).is-in { opacity: 1; transform: none; }

  /* i titoli restano nascosti finché main.js non li ha divisi in parole */
  .js:not(.motion) :is(.hero h1, .page-head h1) { opacity: 0; }

  /* righe dei servizi e dei punti di forza */
  .list h3, .list p { transition: transform .45s var(--ease), color .3s; }
  .list > li:hover h3 { transform: translateX(10px); color: var(--navy); }
  .list > li:hover p { color: var(--ink); }

  /* link "Scopri di più": la sottolineatura scorre via e torna */
  .more { border-bottom: 0; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size .45s var(--ease), color .2s; }
  .more:hover { border-bottom: 0; background-size: 0 1px; background-position: right bottom; }

  /* pulsanti: la freccia si sposta */
  .btn span[aria-hidden="true"] { display: inline-block; transition: transform .3s var(--ease); }
  .btn:hover span[aria-hidden="true"] { transform: translateX(4px); }

  /* nastro: entra con una leggera dissolvenza */
  .js .ticker { animation: fade-up 1s var(--ease) .2s both; }
}
