/* Inter Variable — auto-ospitato (SIL Open Font License 1.1, vedi assets/fonts/LICENSE-inter.txt) */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  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: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  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;
}

:root {
  --page-gutter: 28px;
  --container: min(100vw - (var(--page-gutter) * 2), 1240px);
  --es-graphite: #202635;
  --es-ink: #111722;
  --es-muted: #66707c;
  --es-offwhite: #f7f8f7;
  --es-green: #00b879;
  --es-steel: #d9dee3;
  --es-blue: #26384a;
  --es-brass: #a88d4a;
  --button-radius: 5px;
  --section-kicker-size: 0.78rem;
  --section-title-size: clamp(2rem, 3.7vw, 3.55rem);
  --section-title-size-mobile: clamp(1.85rem, 8vw, 2.2rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--es-graphite);
  background: #fff;
  font-family: 'Inter Variable', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--es-graphite);
  border-radius: var(--button-radius);
  transform: translateY(-160%);
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--es-green);
  outline-offset: 3px;
}
h1, h2, h3, p, li, a, span, strong { overflow-wrap: break-word; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: 104px 0; }
.section--intro, .section--quality { background: var(--es-offwhite); }
.section--dark {
  color: #fff;
  background: linear-gradient(135deg, rgba(38, 56, 74, 0.86), var(--es-graphite));
}
.section--dark h2, .section--dark h3 { color: #fff; }
.kicker {
  margin: 0 0 14px;
  color: var(--es-green);
  font-size: var(--section-kicker-size);
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; color: var(--es-graphite); letter-spacing: 0; }
h1 { max-width: 980px; font-size: clamp(2.9rem, 6vw, 5.8rem); line-height: 0.94; font-weight: 820; text-wrap: balance; }
h2 { font-size: var(--section-title-size); line-height: 1; font-weight: 810; text-wrap: balance; }
h3 { font-size: clamp(1.08rem, 1.3vw, 1.22rem); line-height: 1.18; font-weight: 780; }
p { color: var(--es-muted); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: var(--button-radius);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.button--primary { color: #fff; background: var(--es-green); border-color: var(--es-green); }
.button--primary:hover,
.button--primary:focus-visible { color: var(--es-green); background:#fff; border-color:var(--es-green); }
.button--ghost { color: #fff; background: transparent; }
.button--ghost:hover { color: #fff; background: var(--es-green); border-color: var(--es-green); }
.text-link {
  color: var(--es-graphite);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}
.text-link:hover { color: var(--es-green); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
  min-height: 78px;
  padding-inline: max(var(--page-gutter), calc((100vw - 1240px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--es-steel);
  backdrop-filter: blur(14px);
}
.brand img {
  display: block;
  width: clamp(240px, 21vw, 280px);
  height: auto;
}
.main-nav { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: clamp(14px, 1.45vw, 24px); height: 100%; }
.main-nav a, .nav-cta {
  color: var(--es-graphite);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--es-green); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--button-radius);
  color: #fff;
  background: var(--es-green);
  transition: background 0.16s ease, color 0.16s ease;
}
.nav-cta:hover {
  background: var(--es-graphite);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 38px;
  height: 38px;
  border: 1px solid var(--es-steel);
  border-radius: var(--button-radius);
  color: var(--es-graphite);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.lang-switch:hover {
  color: #fff;
  background: var(--es-graphite);
  border-color: var(--es-graphite);
}
.activity-menu {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0;
}
.activity-menu > a {
  display: flex;
  align-items: center;
}
.activity-menu__panel {
  position: absolute;
  top: 100%;
  left: -28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 6px;
  min-width: 520px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--es-steel);
  box-shadow: 0 24px 64px rgba(32, 38, 53, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.activity-menu:hover .activity-menu__panel,
.activity-menu:focus-within .activity-menu__panel { opacity: 1; pointer-events: auto; transform: translateY(0); }
.activity-link { display: flex !important; align-items: center; gap: 10px; padding: 10px; border: 1px solid transparent; border-radius: var(--button-radius); }
.activity-link:hover { border-color: rgba(0, 184, 121, 0.28); background: rgba(0, 184, 121, 0.06); }
.activity-link::before {
  content: "";
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0, 184, 121, 0.45);
  border-radius: 5px;
  background-color: rgba(0, 184, 121, 0.08);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 17px;
}
.activity-link--fv::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b879' stroke-width='1.8'%3E%3Crect x='3' y='10' width='13' height='8' rx='1.5'/%3E%3Cpath d='M6 13h10M8 10l-1 8M12 10l-1 8'/%3E%3Ccircle cx='18' cy='6' r='2.5'/%3E%3C/svg%3E"); }
.activity-link--qe::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b879' stroke-width='1.8'%3E%3Crect x='6' y='3' width='12' height='18' rx='2'/%3E%3Cpath d='M9 7h6M9 11h6M9 15h2M14 15h1'/%3E%3C/svg%3E"); }
.activity-link--it::before, .activity-link--mn::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b879' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M4.9 4.9 7 7M17 17l2.1 2.1M2 12h3M19 12h3M4.9 19.1 7 17M17 7l2.1-2.1'/%3E%3C/svg%3E"); }
.activity-link--ie::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b879' stroke-width='1.8'%3E%3Cpath d='M13 2 5 13h6l-1 9 8-12h-6l1-8z'/%3E%3C/svg%3E"); }
.activity-link--ai::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b879' stroke-width='1.8'%3E%3Cpath d='M12 3 19 6v5c0 5-3 8-7 10-4-2-7-5-7-10V6l7-3z'/%3E%3Cpath d='M12 16c2-1 3-3 1-5-.6.9-1.3 1.2-2 1.8-.9.8-1 2.2 1 3.2z'/%3E%3C/svg%3E"); }
.activity-link--ip::before, .activity-link--rl::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b879' stroke-width='1.8'%3E%3Cpath d='M9 18h6M10 21h4'/%3E%3Cpath d='M8 10a4 4 0 0 1 8 0c0 2-1 3-2 4v1h-4v-1c-1-1-2-2-2-4z'/%3E%3C/svg%3E"); }
.activity-link--tv::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b879' stroke-width='1.8'%3E%3Cpath d='M4 9h10v6H4zM14 11l6-3v8l-6-3z'/%3E%3C/svg%3E"); }
.activity-link--rd::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b879' stroke-width='1.8'%3E%3Ccircle cx='6' cy='7' r='2'/%3E%3Ccircle cx='18' cy='7' r='2'/%3E%3Ccircle cx='12' cy='17' r='2'/%3E%3Cpath d='M8 8.5 11 15M16 8.5 13 15M8 7h8'/%3E%3C/svg%3E"); }
.activity-link--sl::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b879' stroke-width='1.8'%3E%3Cpath d='M12 21V4'/%3E%3Crect x='5' y='4' width='14' height='7' rx='1'/%3E%3Cpath d='M8 7h7M15 7l-2-2M15 7l-2 2'/%3E%3C/svg%3E"); }
.activity-link--os::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b879' stroke-width='1.8'%3E%3Crect x='4' y='5' width='16' height='14' rx='2'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E"); }
.mobile-menu { display: none; }

.hero {
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 120px 0 82px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17, 23, 34, 0.91), rgba(17, 23, 34, 0.58) 58%, rgba(17, 23, 34, 0.22)),
    url("assets/images/home-hero-poster.webp") center / cover;
}
.hero h1, .dark-hero h1 { color: #fff; }
.hero--video {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: url("assets/images/home-hero-poster.webp") center / cover;
}
.home-hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero--video::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17, 23, 34, 0.91), rgba(17, 23, 34, 0.58) 58%, rgba(17, 23, 34, 0.22)); }
.hero p:not(.kicker), .dark-hero p:not(.kicker) {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.22rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.dark-hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 126px 0 74px;
  color: #fff;
  background: linear-gradient(135deg, rgba(38, 56, 74, 0.86), var(--es-graphite));
}
.proof { background: #fff; border-bottom: 1px solid var(--es-steel); }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof__grid div { padding: 34px 28px; }
.proof strong {
  display: block;
  color: var(--es-green);
  background: linear-gradient(90deg, var(--es-green) 0%, #35d99f 52%, #a8f6d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(2.7rem, 4.4vw, 3.85rem);
  font-weight: 820;
  line-height: 1;
}
.proof span {
  display: block;
  margin-top: 8px;
  color: var(--es-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.intro-grid, .split-grid, .certificates-grid, .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 80px;
  align-items: start;
}
.intro-copy {
  color: var(--es-graphite);
  font-size: 1.14rem;
}
.section-heading {
  max-width: 860px;
  margin-bottom: 52px;
}
.competence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.competence-card,
.card {
  min-height: 100%;
  background: #fff;
  border: 1px solid var(--es-steel);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.competence-card:hover,
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 184, 121, 0.72);
  box-shadow: 0 24px 52px rgba(32, 38, 53, 0.08);
}
.competence-card img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}
.competence-card div {
  padding: 28px;
}
.card div {
  padding: 28px;
}
.competence-card span,
.method-rows span {
  display: block;
  margin-bottom: 16px;
  color: var(--es-brass);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}
.method-list, .sector-list, .community-list { display: grid; border-top: 1px solid var(--es-steel); }
.method-list article, .sector-list a, .sector-list span, .community-list span {
  padding: 18px 0;
  border-bottom: 1px solid var(--es-steel);
  text-decoration: none;
}
.method-rows {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.method-rows article {
  display: grid;
  grid-template-columns: 72px minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.method-rows span {
  margin-bottom: 0;
}
.method-rows p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}
.sector-list a, .sector-list span {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--es-graphite);
  font-weight: 760;
}
.sector-list a::before {
  content: "";
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0, 184, 121, 0.45);
  border-radius: 5px;
  background-color: rgba(0, 184, 121, 0.08);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 17px;
}
.sector-list a::after, .sector-list span::after {
  content: "";
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-left: auto;
  background: rgba(0, 184, 121, 0.08)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b879' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
  border: 1px solid rgba(0, 184, 121, 0.34);
  border-radius: 999px;
}
.sector-list a:hover {
  color: var(--es-green);
}
.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 80px;
  align-items: center;
}
.split-feature--top {
  align-items: start;
}
.split-feature--media {
  align-items: stretch;
}
.feature-copy p,
.quality-panel p {
  font-size: 1.08rem;
}
.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05);
}
.feature-image .company-capability-image { object-position: 22% center; }
.quality-panel {
  align-self: center;
  padding-top: 42px;
  border-top: 2px solid var(--es-green);
}
.quality-panel .text-link {
  display: inline-flex;
  margin-top: 18px;
}
.method-list span, .value-grid span, .timeline span { color: var(--es-brass); font-weight: 850; letter-spacing: 0.12em; }
.value-grid, .timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,0.18); }
.value-grid article, .timeline article { padding: 26px; border-right: 1px solid rgba(255,255,255,0.18); }
.value-grid p, .timeline p { color: rgba(255,255,255,0.72); }
.final-cta { padding: 96px 0; text-align: center; background: #fff; }
.final-cta__inner { max-width: 800px; margin: 0 auto; }
.informative { background: var(--es-offwhite); }
.informative-logo-strip {
  width: 100%;
  background: #fff;
}
.informative h2 { margin-top: 34px; color: var(--es-green); font-size: clamp(1.9rem, 3vw, 2.75rem); }
.informative-copy { max-width: 1140px; font-size: 1.08rem; line-height: 1.72; }

.site-footer { padding: 58px 0 24px; background: #171d29; border-top: 4px solid var(--es-green); }
.footer-main { display: grid; grid-template-columns: 1.45fr 1fr 1fr 0.9fr; gap: 54px; align-items: start; }
.footer-brand img {
  display: block;
  width: clamp(240px, 21vw, 280px);
  max-width: 100%;
  height: auto;
}
.site-footer strong { display: block; margin-bottom: 14px; color: #fff; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer span, .site-footer a { display: block; color: rgba(255,255,255,0.72); text-decoration: none; }
.site-footer a:hover { color: var(--es-green); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.52);
  font-size: 0.78rem;
}
.footer-bottom sup {
  margin-left: 2px;
  font-size: 0.68em;
  line-height: 0;
}

@media (max-width: 1120px) {
  .site-header { grid-template-columns: auto 1fr auto auto; min-height: 72px; column-gap: 10px; }
  .brand img { width: 240px; }
  .main-nav, .nav-cta { display: none; }
  .lang-switch {
    min-width: 36px;
    max-width: 44px;
    min-height: 40px;
    height: 40px;
    padding: 0 9px;
    align-self: center;
    justify-self: end;
    font-size: 0.7rem;
    line-height: 1;
  }
  .mobile-menu { display: block; justify-self: end; position: relative; }
  .mobile-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--es-steel);
    border-radius: var(--button-radius);
    cursor: pointer;
    list-style: none;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu[open] summary {
    color: #fff;
    background: var(--es-graphite);
    border-color: var(--es-graphite);
  }
  .mobile-menu__panel {
    position: absolute;
    top: 44px;
    right: 0;
    display: grid;
    width: min(calc(100vw - 32px), 390px);
    max-height: 78vh;
    overflow: auto;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--es-steel);
    box-shadow: 0 24px 64px rgba(32, 38, 53, 0.16);
  }
  .mobile-menu__panel a, .mobile-menu__panel strong { padding: 10px; text-decoration: none; }
}

@media (max-width: 980px) {
  :root { --page-gutter: 16px; --container: min(100vw - 32px, 720px); }
  .hero p:not(.kicker), .dark-hero p:not(.kicker) { font-size: 1.12rem; }
  .hero, .dark-hero { min-height: 620px; padding: 112px 0 56px; }
  .section { padding: 68px 0; }
  .proof__grid { grid-template-columns: repeat(2, 1fr); }
  .proof__grid div { padding: 26px 18px; }
    .intro-grid, .split-grid, .split-feature, .certificates-grid, .contact-grid, .footer-main { grid-template-columns: 1fr; gap: 34px; }
    .competence-grid, .card-grid, .value-grid, .timeline { grid-template-columns: 1fr; }
    .method-rows article { grid-template-columns: 1fr; gap: 8px; }
    .feature-image img { min-height: 280px; }
  .footer-bottom { justify-content: flex-start; }
  .brand img,
  .footer-brand img { width: min(280px, 100%); }
}

@media (max-width: 640px) {
  .brand img,
  .footer-brand img { width: min(250px, 78vw); }
  h1 { font-size: clamp(2.55rem, 12vw, 3.05rem); }
  h2 { font-size: var(--section-title-size-mobile); }
  .button, .text-link { width: fit-content; max-width: 100%; }
  .proof__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__video { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Reveal allo scroll: contenuto sempre visibile senza JS o con reduced-motion;
   l'animazione si attiva solo quando <html class="js"> è presente (vedi dynamics.js). */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.js .reveal--visible { opacity: 1; transform: none; }
.js .reveal--visible.reveal--delay-1 { transition-delay: .1s; }
.js .reveal--visible.reveal--delay-2 { transition-delay: .2s; }
.js .reveal--visible.reveal--delay-3 { transition-delay: .3s; }

/* Contatori numerici animati */
.stat-counter { font-variant-numeric: tabular-nums; }

@media (max-width: 380px) {
  .site-header {
    column-gap: 8px;
    padding-inline: 12px;
  }
  .brand img,
  .footer-brand img { width: clamp(172px, 51vw, 204px); }
  .lang-switch {
    min-width: 34px;
    max-width: 38px;
    padding: 0 7px;
  }
  .mobile-menu summary { padding: 0 10px; }
}

/* FAQ (domande frequenti) - blocco riutilizzabile per pagine servizio */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 880px; }
.faq-item {
  border: 1px solid rgba(17,23,34,.12);
  border-radius: 10px;
  background: #fff;
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--es-green, #1f8a4c);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: rgba(17,23,34,.75); line-height: 1.6; }

/* Hover con zoom immagine sulle card (competenze, progetti) */
.competence-card { overflow: hidden; }
.competence-card img { transition: transform .45s ease; }
.competence-card:hover img { transform: scale(1.06); }
.project-card { overflow: hidden; }
.project-card img { transition: transform .45s ease; }
.project-card:hover img { transform: scale(1.06); }

/* Reveal a cascata per griglie di elementi */
.js .stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.js .stagger.stagger-visible > * { opacity: 1; transform: none; }
.js .stagger.stagger-visible > *:nth-child(1) { transition-delay: 0ms; }
.js .stagger.stagger-visible > *:nth-child(2) { transition-delay: 70ms; }
.js .stagger.stagger-visible > *:nth-child(3) { transition-delay: 140ms; }
.js .stagger.stagger-visible > *:nth-child(4) { transition-delay: 210ms; }
.js .stagger.stagger-visible > *:nth-child(5) { transition-delay: 280ms; }
.js .stagger.stagger-visible > *:nth-child(6) { transition-delay: 350ms; }
.js .stagger.stagger-visible > *:nth-child(7) { transition-delay: 420ms; }
.js .stagger.stagger-visible > *:nth-child(n+8) { transition-delay: 480ms; }

/* Header che si comprime allo scroll */

/* Micro-interazione sui bottoni CTA */
.button--primary::after, .button--ghost::after, .nav-cta::after {
  content: "\2192";
  display: inline-block;
  margin-left: 8px;
  transition: transform .2s ease;
}
.button--primary:hover::after, .button--ghost:hover::after, .nav-cta:hover::after {
  transform: translateX(4px);
}

/* Linea di progresso Metodo EPC */
.method-rows { position: relative; padding-left: 22px; }
.method-rows::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.18);
}
.method-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0%;
  background: var(--es-green);
  transition: height .4s ease;
}
@media (prefers-reduced-motion: reduce) {
  .method-progress-fill { transition: none; }
}

/* ==========================================================================
   Animazioni sincronizzate con lo scorrimento (scroll-driven animations)
   --------------------------------------------------------------------------
   Quando il browser supporta animation-timeline, l'avanzamento delle
   animazioni è legato alla posizione di scroll: scorrendo in su l'effetto
   torna indietro, scorrendo in giù avanza, in modo continuo.
   Nei browser che non lo supportano (oggi Firefox) restano attive le
   animazioni a comparsa già presenti, gestite via JavaScript.
   ========================================================================== */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    /* --- Sezioni: comparsa legata allo scroll --- */
    .js .reveal {
      opacity: 1;
      transform: none;
      transition: none;
      animation: es-scroll-reveal linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 22%;
    }

    /* --- Griglie: ogni elemento ha la propria timeline, così la
           cascata nasce dall'ordine in cui entrano nello schermo --- */
    .js .stagger > * {
      opacity: 1;
      transform: none;
      transition: none;
      animation: es-scroll-reveal linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 20%;
    }
    /* I ritardi fissi non servono più: li annulla la timeline di scroll. */
    .js .stagger.stagger-visible > *:nth-child(n) { transition-delay: 0s; }

    /* Cascata anche per gli elementi affiancati, che entrerebbero nello
       schermo tutti insieme: ogni colonna parte poco dopo la precedente. */
    .js .stagger > *:nth-child(1) { animation-range: entry 5% cover 18%; }
    .js .stagger > *:nth-child(2) { animation-range: entry 9% cover 23%; }
    .js .stagger > *:nth-child(3) { animation-range: entry 13% cover 28%; }
    .js .stagger > *:nth-child(4) { animation-range: entry 17% cover 33%; }
    .js .stagger > *:nth-child(n+5) { animation-range: entry 20% cover 36%; }

    /* --- Metodo EPC: la linea verde segue lo scroll in modo continuo --- */
    .method-rows {
      view-timeline: --es-method block;
    }
    .method-progress-fill {
      height: 100%;
      transform-origin: top center;
      transition: none;
      animation: es-scroll-progress linear both;
      animation-timeline: --es-method;
      animation-range: cover 20% cover 75%;
    }

    /* --- Hero: leggera dissolvenza del contenuto mentre si esce --- */
    .hero .container {
      animation: es-scroll-hero linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 85%;
    }
  }
}

@keyframes es-scroll-reveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

@keyframes es-scroll-progress {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

@keyframes es-scroll-hero {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-40px); }
}

/* Condivisione delle posizioni aperte */
.career-role__share {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 23, 34, 0.14);
}
.career-role__share > span {
  display: block;
  margin-bottom: 10px;
  color: var(--es-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.career-role__share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.career-role__share-links a,
.career-role__share-links button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(17, 23, 34, 0.22);
  border-radius: var(--button-radius);
  background: #fff;
  color: var(--es-graphite);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.career-role__share-links a:hover,
.career-role__share-links button:hover,
.career-role__share-links a:focus-visible,
.career-role__share-links button:focus-visible {
  color: #fff;
  background: var(--es-green);
  border-color: var(--es-green);
}
.career-role__share-links svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.career-role__share-links button.is-copied {
  color: #fff;
  background: var(--es-green);
  border-color: var(--es-green);
}

/* Rete di sicurezza: se un'animazione legata allo scroll non si avvia
   (differenze di implementazione tra browser), il contenuto verrebbe
   lasciato invisibile. Questa classe, applicata da dynamics.js, lo
   riporta comunque in vista. */
.js .reveal.es-force-visible,
.js .stagger > .es-force-visible,
.js .es-force-visible {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* ==========================================================================
   Gestione del consenso ai cookie
   ========================================================================== */

.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: none;
  max-width: 1060px;
  margin: 0 auto;
  padding: 22px 26px;
  color: #fff;
  background: var(--es-ink);
  border-top: 3px solid var(--es-green);
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(17, 23, 34, .3);
}
.cc-banner.is-open { display: block; }
.cc-banner__grid {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
}
.cc-banner__text { margin: 0; font-size: .92rem; line-height: 1.55; color: rgba(255,255,255,.86); }
.cc-banner__text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cc-banner__text a:hover { color: var(--es-green); }
.cc-actions { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 10px; }

.cc-btn {
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  font: inherit;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.cc-btn--accept { color: #fff; background: var(--es-green); border-color: var(--es-green); }
.cc-btn--accept:hover { color: var(--es-green); background: #fff; }
/* Rifiuto con lo stesso rilievo dell'accettazione, come richiesto dal Garante */
.cc-btn--reject { color: #fff; background: transparent; border-color: rgba(255,255,255,.55); }
.cc-btn--reject:hover { color: var(--es-ink); background: #fff; border-color: #fff; }
.cc-btn--settings {
  color: rgba(255,255,255,.8);
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-btn--settings:hover { color: var(--es-green); }

/* --- Finestra delle preferenze --- */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 23, 34, .72);
}
.cc-modal.is-open { display: flex; }
.cc-modal__panel {
  width: min(660px, 100%);
  max-height: min(86vh, 760px);
  overflow-y: auto;
  padding: 30px 32px 26px;
  background: #fff;
  border-top: 3px solid var(--es-green);
  border-radius: 6px;
}
.cc-modal__panel h2 { margin: 0 0 8px; font-size: 1.4rem; }
.cc-modal__intro { margin: 0 0 22px; color: rgba(17,23,34,.72); font-size: .94rem; line-height: 1.6; }
.cc-modal__intro a { color: var(--es-green); }

.cc-group {
  padding: 16px 0;
  border-top: 1px solid rgba(17,23,34,.12);
}
.cc-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cc-group__title { margin: 0; font-size: 1rem; font-weight: 800; }
.cc-group p { margin: 8px 0 0; color: rgba(17,23,34,.7); font-size: .88rem; line-height: 1.55; }
.cc-group__locked { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--es-muted); }

/* interruttore */
.cc-switch { position: relative; flex-shrink: 0; width: 46px; height: 26px; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch span {
  position: absolute;
  inset: 0;
  background: #cfd5dc;
  border-radius: 999px;
  transition: background .18s ease;
  pointer-events: none;
}
.cc-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform .18s ease;
}
.cc-switch input:checked + span { background: var(--es-green); }
.cc-switch input:checked + span::after { transform: translateX(20px); }
.cc-switch input:focus-visible + span { outline: 3px solid var(--es-green); outline-offset: 2px; }

.cc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(17,23,34,.12);
}
.cc-modal .cc-btn--accept { color: #fff; background: var(--es-green); border-color: var(--es-green); }
.cc-modal .cc-btn--reject { color: var(--es-graphite); background: #fff; border-color: rgba(17,23,34,.25); }
.cc-modal .cc-btn--reject:hover { color: #fff; background: var(--es-graphite); border-color: var(--es-graphite); }

@media (max-width: 820px) {
  .cc-banner { left: 10px; right: 10px; bottom: 10px; padding: 18px 18px 20px; }
  .cc-banner__grid { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cc-actions { width: 100%; }
  .cc-actions .cc-btn { flex: 1 1 auto; text-align: center; }
  .cc-btn--settings { flex-basis: 100%; }
  .cc-modal__panel { padding: 24px 20px 20px; }
  .cc-modal__actions .cc-btn { flex: 1 1 auto; text-align: center; }
}
