/* oe-site.css — stile del sito openeconomics.eu
   Valori ricavati dal CSS Webflow reale. Le regole marcate "derivato" non
   sono state verificate sul sito (il CSS scaricato non conteneva i media query). */

:root {
  /* colori */
  --oes-bluette-700: #4400B3;
  --oes-bluette-800: #340088;
  --oes-bluette-900: #270065;
  --oes-violet-band: #4711BA;
  --oes-violet-band-2: #510FC2;
  --oes-violet-link: #5902EE;
  --oes-lime: #B9FF69;
  --oes-lime-hover: #7FF100;
  --oes-lavender: #EFE5FF;
  --oes-grey-box: #F1F1F1;
  --oes-grey-text: #545454;
  --oes-ink: #000;
  --oes-ink-soft: #2C2C2C;
  --oes-white: #fff;
  --oes-line-soft: #CDD0D7;
  --oes-focus: #0050BD;
  /* font */
  --oes-font-display: "Hedvig Letters Serif", Georgia, serif;
  --oes-font-body: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --oes-font-mono: "Atkinson Hyperlegible Mono", ui-monospace, monospace;
  /* misure */
  --oes-container: 1300px;
  --oes-gap: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--oes-white); color: var(--oes-ink);
  font-family: var(--oes-font-body); font-size: 20px; line-height: 28px; font-weight: 300;
}
img { max-width: 100%; vertical-align: middle; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--oes-focus); outline-offset: 2px; }
p { margin: 0 0 10px; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.oes-container { width: 100%; max-width: var(--oes-container); margin: 0 auto; padding: 0 30px; }
.oes-section { margin: 100px 0; }
.oes-rule-top { border-top: 1px solid var(--oes-ink); }
.oes-rule-bottom { border-bottom: 1px solid var(--oes-ink); }

/* tipografia */
.oes-h-display { font-family: var(--oes-font-display); font-weight: 400; line-height: 1.2; }
.oes-h1 { font-size: 70px; color: var(--oes-white); }
.oes-h2 { font-size: 42px; letter-spacing: -.02em; }
.oes-h3 { font-family: var(--oes-font-body); font-size: 32px; line-height: 1.2; }
.oes-lead { font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
.oes-body-2 { font-size: 18px; line-height: 1.3; color: var(--oes-grey-text); }
.oes-bigfig { font-size: 120px; line-height: 1.2; letter-spacing: -1px; color: var(--oes-bluette-800); }

/* chip */
.oes-chip {
  display: inline-flex; align-self: flex-start; max-width: 100%;
  background: var(--oes-lime); color: var(--oes-bluette-700);
  font-family: var(--oes-font-mono); font-size: 16px; font-weight: 400; line-height: 1.4;
  text-transform: uppercase; text-align: center; padding: 5px 20px; border-radius: 2.5px;
  transition: all .2s;
}
.oes-chip.is-active { background: var(--oes-violet-link); color: var(--oes-lime); }

/* CTA */
.oes-cta {
  display: inline-block; padding: 15px 20px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--oes-lime); color: var(--oes-bluette-700); text-decoration: none;
  font-family: var(--oes-font-body); font-size: 18px; line-height: 1; font-weight: 400;
  text-transform: uppercase; transition: background-color .4s;
}
.oes-cta:hover { background: var(--oes-lime-hover); }
.oes-cta.is-inverted { background: var(--oes-bluette-700); color: var(--oes-lime); padding: 15px 24px; }
.oes-cta.is-inverted:hover { background: var(--oes-bluette-800); }
.oes-cta.is-outline { background: transparent; color: var(--oes-lime); border: 1px solid var(--oes-lime); }
.oes-cta.is-outline:hover { background: var(--oes-lime); color: var(--oes-bluette-700); }

/* nav */
.oes-nav { position: fixed; inset: 0 0 auto 0; z-index: 10; margin-top: 30px; }
.oes-nav__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--oes-container); margin: 0 auto; padding: 10px 20px; background: var(--oes-white);
}
.oes-nav__logo img { height: 28px; width: auto; }
.oes-nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.oes-nav__link {
  padding: 5px 10px; font-size: 18px; line-height: 20px; font-weight: 400; letter-spacing: .25px;
  color: #1A1B1F; text-decoration: none;
}
.oes-nav__link:hover { color: #1A1B1FBF; }
.oes-nav__cta {
  display: inline-flex; padding: 10px; border-radius: 2px; background: var(--oes-bluette-700);
  color: var(--oes-lime); text-transform: uppercase; font-size: 18px; line-height: 1; text-decoration: none;
}

/* hero */
.oes-hero {
  background: var(--oes-bluette-900) var(--oes-hero-image, none) 0 0 / cover no-repeat;
  padding: 60px 0 0; color: var(--oes-white);
}
.oes-hero__inner { max-width: var(--oes-container); margin: 0 auto; padding: 157px 30px 80px; }
.oes-hero__copy { display: flex; flex-direction: column; gap: 56px; max-width: 838px; padding-top: 86px; }
.oes-hero__lead { margin-top: -25px; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }

/* intestazione di sezione: titolo a sinistra, CTA a destra */
.oes-little-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding: 40px 0 60px;
}
.oes-little-header .oes-h2 { margin: 0; }

/* carosello di card progetto */
.oes-slider { margin-left: 280px; }
.oes-track {
  display: flex; gap: var(--oes-gap); overflow-x: auto; scrollbar-width: none; cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.oes-track::-webkit-scrollbar { display: none; }
.oes-track.is-dragging { cursor: grabbing; user-select: none; }
.oes-track > * { flex: 0 0 auto; width: 360px; }
.oes-slider-nav { display: flex; gap: var(--oes-gap); padding: 51px 0 64px; border-bottom: 1px solid var(--oes-ink); }
.oes-slider-nav button { background: none; border: 0; padding: 0; width: 20px; height: 20px; cursor: pointer; font-size: 20px; line-height: 1; }

.oes-card {
  position: relative; display: block; width: 360px; height: 440px; text-decoration: none; color: var(--oes-white);
  overflow: hidden; isolation: isolate;
}
.oes-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.oes-card__overlay { position: absolute; inset: 0; background-image: linear-gradient(#4400B3AD, #4400B300); transition: all .5s; }
.oes-card:hover .oes-card__overlay { background-image: none; }
.oes-card__content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; height: 100%; padding: 20px; }
.oes-card__title { font-size: 32px; font-weight: 300; line-height: 1.2; padding-bottom: 15px; }
.oes-card__text { font-size: 16px; font-weight: 200; line-height: 1.4; padding-bottom: 15px; margin: 0; color: var(--oes-white); }
.oes-arrow {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  background: var(--oes-lime); color: var(--oes-bluette-700); font-size: 20px; line-height: 1; transition: background-color .4s;
}
.oes-arrow:hover, .oes-card:hover .oes-arrow { background: var(--oes-lime-hover); }

/* accordion con quadratino */
.oes-accordion { display: grid; gap: 0; }
.oes-accordion__item { border-bottom: 1px solid var(--oes-line-soft); }
.oes-accordion__head {
  position: relative; display: block; width: 100%; padding: .5rem 0 1rem 22px; text-align: left; cursor: pointer;
  background: none; border: 0; font-family: var(--oes-font-body); font-size: 32px; line-height: 1.3; font-weight: 400; color: var(--oes-ink);
  transition: color .3s;
}
.oes-accordion__head::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; border-radius: 2px;
  background: var(--oes-bluette-800); transform: translateY(-50%) scale(0); transition: transform .25s;
}
.oes-accordion__item.is-open .oes-accordion__head { color: var(--oes-bluette-800); }
.oes-accordion__item.is-open .oes-accordion__head::before { transform: translateY(-50%) scale(1); }
.oes-accordion__body { display: none; padding: 0 0 1rem; font-size: 18px; line-height: 1.3; color: var(--oes-grey-text); }
.oes-accordion__item.is-open .oes-accordion__body { display: block; }

/* box grigio "mix di soluzioni" con filetto bluette */
.oes-box { background: var(--oes-grey-box); border-radius: 8px; padding: 80px 40px; }
.oes-box--lavender { background: var(--oes-lavender); border-radius: 4px; }
.oes-cols { display: flex; }
.oes-cols > * { width: 50%; }
.oes-rulecol { border-left: 2px solid var(--oes-bluette-800); padding-left: 40px; }
.oes-rulecol__label { padding-top: 30px; font-size: 36px; line-height: 1.2; font-weight: 500; color: var(--oes-bluette-800); }
.oes-rulecol__title { font-size: 36px; line-height: 1.2; color: var(--oes-bluette-800); }
.oes-rulecol p { padding: 32px 40px 0 0; font-size: 18px; }

/* punti di forza */
.oes-services { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.oes-services__sticky { position: sticky; top: 3rem; }
.oes-services__list { display: flex; flex-direction: column; gap: .8rem; margin-top: 176px; }
.oes-service { display: flex; flex-direction: column; gap: .75rem; padding: 40px; background: var(--oes-grey-box); }
.oes-service__title { font-size: 32px; line-height: 1.2; color: var(--oes-bluette-800); }
.oes-service p { color: var(--oes-ink-soft); }

/* marquee loghi */
.oes-marquee { margin: 50px 0; border-top: 1px solid var(--oes-ink); border-bottom: 1px solid var(--oes-ink); overflow: hidden; }
.oes-marquee__track { display: flex; align-items: center; gap: 6rem; width: max-content; animation: oes-marquee 40s linear infinite; }
.oes-marquee__track img { width: 200px; height: auto; }
@keyframes oes-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .oes-marquee__track { animation: none; } }

/* news */
.oes-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--oes-gap); }
.oes-news__item { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; text-decoration: none; color: #333; }
.oes-news__img { width: 100%; height: 250px; object-fit: cover; }
.oes-news__title { margin: 15px 0 10px; font-size: 24px; line-height: 1.2; font-weight: 300; }
.oes-news__date { font-weight: 300; }
.oes-news__rule { width: 100%; height: 1px; margin-top: 35px; background: var(--oes-ink); }

/* fascia CTA viola */
.oes-band { background: var(--oes-violet-band); color: var(--oes-white); }
.oes-band__inner { display: flex; align-items: center; max-width: var(--oes-container); margin: 0 auto; padding: 50px 0 59px; }
.oes-band__copy { width: 55%; padding-left: 80px; }
.oes-band__media { width: 45%; background: var(--oes-violet-band-2); }
.oes-band__media video, .oes-band__media img { display: block; width: 100%; height: 700px; object-fit: cover; }
.oes-band h2 { font-family: var(--oes-font-display); font-size: 40px; line-height: 1.2; padding-bottom: 20px; }
.oes-band__lead { font-size: 28px; line-height: 1.2; padding-bottom: 25px; }
.oes-band ul { margin: 0 0 40px; padding-left: 28px; font-size: 20px; line-height: 1.3; }
.oes-strip { background: var(--oes-grey-box); padding: 40px 0; }
.oes-strip p { margin: 0; font-size: 28px; line-height: 1.2; color: var(--oes-ink); }

/* footer */
.oes-footer { background: var(--oes-bluette-900); color: var(--oes-white); padding: 80px 0; }
.oes-footer__grid { display: flex; max-width: var(--oes-container); margin: 0 auto; padding: 0 30px; }
.oes-footer__brand { width: 35%; border-right: 1px solid var(--oes-white); }
.oes-footer__brand img { max-width: 80%; height: auto; }
.oes-footer__payoff { padding: 25px 0; font-family: var(--oes-font-display); font-size: 22px; line-height: 1.2; }
.oes-footer__label { padding-bottom: 20px; font-size: 16px; text-transform: uppercase; color: var(--oes-lime); }
.oes-footer__cols { flex: 1; margin-left: 44px; }
.oes-footer__links { display: grid; grid-template-columns: 1.75fr 1.25fr 3.5fr; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--oes-white); }
.oes-footer__links a { display: block; padding-bottom: 10px; font-size: 16px; color: var(--oes-white); text-decoration: none; }
.oes-footer__offices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; font-size: 16px; font-weight: 400; }
.oes-footer__legal { display: flex; flex-wrap: wrap; gap: 32px; max-width: var(--oes-container); margin: 13px auto 0; padding: 32px 30px 0; border-top: 1px solid var(--oes-white); font-size: 16px; font-weight: 400; }
.oes-footer__legal a { color: var(--oes-white); text-decoration: none; }

/* popup di uscita (solo desktop) */
.oes-popup { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; background: #00000052; }
.oes-popup.is-open { display: flex; }
.oes-popup__panel { position: relative; display: flex; align-items: center; gap: 48px; max-width: 1300px; margin: 0 100px; padding: 50px; background: var(--oes-white); border-radius: 4px; }

/* ---- derivato (mobile non verificato sul sito) ---- */
@media (max-width: 991px) {
  .oes-h1 { font-size: 40px; }
  .oes-h2 { font-size: 32px; }
  .oes-bigfig { font-size: 72px; }
  .oes-slider { margin-left: 0; }
  .oes-cols, .oes-band__inner, .oes-footer__grid, .oes-popup__panel { flex-direction: column; }
  .oes-cols > *, .oes-band__copy, .oes-band__media, .oes-footer__brand { width: 100%; }
  .oes-band__copy { padding: 0 30px 30px; }
  .oes-band__media video, .oes-band__media img { height: 360px; }
  .oes-services, .oes-news { grid-template-columns: 1fr; }
  .oes-services__list { margin-top: 24px; }
  .oes-services__sticky { position: static; }
  .oes-footer__brand { border-right: 0; border-bottom: 1px solid var(--oes-white); padding-bottom: 24px; }
  .oes-footer__cols { margin: 24px 0 0; }
  .oes-footer__links, .oes-footer__offices { grid-template-columns: 1fr 1fr; }
  .oes-nav__menu { display: none; }
  .oes-popup { display: none !important; }
  .oes-hero__inner { padding: 120px 20px 60px; }
  .oes-hero__copy { padding-top: 24px; gap: 32px; }
  .oes-hero__lead { font-size: 22px; margin-top: 0; }
}
@media (max-width: 479px) {
  .oes-card, .oes-track > * { width: 300px; height: 420px; }
  .oes-box { padding: 40px 20px; }
  .oes-accordion__head { font-size: 24px; }
}
