/* ============================================================
   DATAMY.IT — home.css (restyling home, 2026-09-29)
   Tutte le classi hanno prefisso .dmh- per non interferire con style.css
   ============================================================ */
.dmh {
  --dmh-ink: #1B1410; --dmh-cream: #FFF8F0; --dmh-accent: #F28C0F; --dmh-accent-ink: #A85A00;
  --dmh-line: #EADBC8; --dmh-muted: #4a3d32; --dmh-soft: #6b5a4b; --dmh-sand: #D9C9B8;
  --dmh-display: 'Fraunces', Georgia, serif; --dmh-body: 'Instrument Sans', system-ui, sans-serif;
  font-family: var(--dmh-body); color: var(--dmh-ink); background: var(--dmh-cream);
  -webkit-font-smoothing: antialiased;
}
.dmh *, .dmh *::before, .dmh *::after { box-sizing: border-box; }
:where(.dmh) a { color: inherit; text-decoration: none; }
.dmh h1, .dmh h2, .dmh h3 { font-family: var(--dmh-display); font-weight: 700; margin: 0; color: inherit; }
.dmh p { margin: 0; }
.dmh-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.dmh-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--dmh-accent-ink); }
.dmh-h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -1px; }
.dmh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 17px; font-family: inherit; cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .15s, opacity .15s; }
.dmh-btn:hover { transform: translateY(-1px); }
.dmh .dmh-btn--accent { background: var(--dmh-accent); color: var(--dmh-ink); }
.dmh .dmh-btn--ghost { border-color: #7a6a5c; color: var(--dmh-cream); background: transparent; }
.dmh .dmh-btn--dark { background: var(--dmh-ink); color: var(--dmh-cream); }

/* ─── Hero + nav ─────────────────────────────────────────── */
.dmh-hero { background: var(--dmh-ink); color: var(--dmh-cream); padding-bottom: 96px; }
.dmh-nav { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; position: relative; }
.dmh-logo { font-family: var(--dmh-display); font-weight: 700; font-size: 28px; }
.dmh-logo span { color: var(--dmh-accent); }
.dmh-nav__links { display: flex; align-items: center; gap: 32px; font-size: 16px; }
.dmh-nav__links > a:not(.dmh-btn):hover { color: #F5C98A; }
.dmh-nav__links .dmh-btn { min-height: 44px; padding: 0 22px; font-size: 16px; }
.dmh-burger { display: none; background: none; border: 1px solid #7a6a5c; border-radius: 12px; width: 48px; height: 44px; color: var(--dmh-cream); cursor: pointer; }
.dmh-access { position: relative; }
.dmh-access__menu { position: absolute; right: 0; top: 56px; width: 340px; background: var(--dmh-cream); color: var(--dmh-ink); border-radius: 20px; padding: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.45); display: none; flex-direction: column; gap: 2px; z-index: 50; }
.dmh-access.is-open .dmh-access__menu { display: flex; }
.dmh-access__cms { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--dmh-ink); color: var(--dmh-cream) !important; }
.dmh-access__cms small { font-size: 13px; color: var(--dmh-sand); }
.dmh-access__label { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; color: var(--dmh-soft); padding: 12px 14px 4px; }
.dmh-access__app { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; min-height: 44px; border-radius: 12px; }
.dmh-access__app:hover { background: #F7E6D0; }
.dmh-access__app span { display: flex; flex-direction: column; font-weight: 600; font-size: 15px; }
.dmh-access__app small { font-weight: 400; font-size: 13px; color: var(--dmh-soft); }
.dmh-access__app b { color: var(--dmh-accent-ink); font-weight: 400; }

.dmh-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; padding-top: 56px; }
.dmh-hero__copy { display: flex; flex-direction: column; gap: 28px; }
.dmh-pill { align-self: flex-start; border: 1px solid #5a4a3c; border-radius: 999px; padding: 8px 16px; font-size: 14px; color: #F5C98A; }
.dmh-hero h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -1.5px; }
.dmh-hero h1 em { font-style: normal; color: var(--dmh-accent); }
.dmh-hero__lead { font-size: 20px; line-height: 1.5; color: var(--dmh-sand); max-width: 540px; }
.dmh-hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ─── Slider ─────────────────────────────────────────────── */
.dmh-slider { display: flex; flex-direction: column; gap: 20px; }
.dmh-slide { display: none; background: var(--dmh-cream); color: var(--dmh-ink); border-radius: 24px; padding: 28px; flex-direction: column; gap: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.dmh-slide.is-active { display: flex; animation: dmhIn .45s ease; }
@keyframes dmhIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dmh-slide__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dmh-slide__title { font-family: var(--dmh-display); font-weight: 700; font-size: 22px; }
.dmh-tags { display: flex; gap: 8px; }
.dmh-tag { font-size: 13px; background: var(--dmh-ink); color: var(--dmh-cream); border-radius: 999px; padding: 6px 14px; }
.dmh-kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.dmh-kpis--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.dmh-kpi { background: #fff; border-radius: 14px; padding: 16px; }
.dmh-kpi small { display: block; font-size: 13px; color: var(--dmh-soft); }
.dmh-kpi strong { display: block; font-family: var(--dmh-display); font-weight: 700; font-size: 32px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.dmh-today { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--dmh-muted); padding: 0 4px; }
.dmh-row { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 14px 16px; }
.dmh-row__av { width: 36px; height: 36px; border-radius: 50%; background: #F7D9B0; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.dmh-row__main { flex-grow: 1; font-weight: 500; }
.dmh-row__main small { display: block; font-weight: 400; font-size: 13px; color: var(--dmh-soft); }
.dmh-row__time { font-size: 14px; color: var(--dmh-soft); }
.dmh-badge { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.dmh-badge--ok { background: #BFE3C6; } .dmh-badge--warn { background: #F7D9B0; } .dmh-badge--ko { background: #F5B7A8; } .dmh-badge--off { background: #D9D3CC; }
.dmh-slider__nav { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.dmh-slider__nav button { min-height: 44px; cursor: pointer; border-radius: 999px; padding: 0 20px; font-family: inherit; font-size: 15px; font-weight: 600; border: 1px solid #7a6a5c; background: transparent; color: var(--dmh-cream); }
.dmh-slider__nav button[aria-selected="true"] { background: var(--dmh-accent); border-color: var(--dmh-accent); color: var(--dmh-ink); }
.dmh-disclaimer { font-size: 13px; color: #B8A796; text-align: center; }

/* ─── Loghi ──────────────────────────────────────────────── */
.dmh-logos { border-bottom: 1px solid var(--dmh-line); }
.dmh-logos .dmh-wrap { display: flex; align-items: center; gap: 48px; min-height: 120px; padding-top: 24px; padding-bottom: 24px; }
.dmh-logos__label { font-size: 15px; color: var(--dmh-soft); max-width: 200px; flex-shrink: 0; }
.dmh-logos__list { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; flex-grow: 1; }
.dmh-logos__list img { max-height: 48px; max-width: 160px; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.dmh-logos__list a:hover img, .dmh-logos__list img:hover { filter: none; opacity: 1; }

/* ─── Sezioni ────────────────────────────────────────────── */
.dmh-section { padding: 110px 0 90px; }
.dmh-section__head { display: flex; flex-direction: column; gap: 14px; max-width: 780px; margin-bottom: 48px; }
.dmh-products { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.dmh-product { background: #fff; border: 1px solid var(--dmh-line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; min-height: 320px; transition: transform .2s, box-shadow .2s; }
.dmh-product:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(27,20,16,.08); }
.dmh-product h3 { font-size: 28px; }
.dmh-product__who { font-size: 13px; font-weight: 600; color: var(--dmh-accent-ink); }
.dmh-product p { font-size: 16px; line-height: 1.5; color: var(--dmh-muted); flex-grow: 1; }
.dmh-product__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dmh-product__more { white-space: nowrap; font-weight: 600; font-size: 15px; color: var(--dmh-accent-ink); }
.dmh-product__login { font-weight: 600; font-size: 14px; background: var(--dmh-ink); color: var(--dmh-cream) !important; padding: 0 16px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px; }

.dmh-band { background: var(--dmh-accent); }
.dmh-band .dmh-wrap { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 48px; align-items: center; min-height: 300px; padding-top: 48px; padding-bottom: 48px; }
.dmh-band strong { display: block; font-family: var(--dmh-display); font-weight: 700; font-size: clamp(56px, 7vw, 96px); line-height: 1; font-variant-numeric: tabular-nums; }
.dmh-band span { display: block; font-size: 18px; margin-top: 8px; }
.dmh-band small { font-size: 14px; }

.dmh-flows { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 64px; }
.dmh-flows__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dmh-flows__tabs button { min-height: 44px; cursor: pointer; border-radius: 999px; padding: 0 20px; font-family: inherit; font-size: 15px; font-weight: 600; border: 1px solid var(--dmh-ink); background: transparent; color: var(--dmh-ink); }
.dmh-flows__tabs button[aria-selected="true"] { background: var(--dmh-ink); color: var(--dmh-cream); }
.dmh-flows__who { font-size: 16px; color: var(--dmh-muted); margin-top: 8px; }
.dmh-flow { display: none; flex-direction: column; gap: 20px; }
.dmh-flow.is-active { display: flex; animation: dmhIn .45s ease; }
.dmh-step { display: flex; gap: 24px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--dmh-line); }
.dmh-step__n { font-family: var(--dmh-display); font-weight: 700; font-size: 44px; color: var(--dmh-accent); line-height: 1; min-width: 56px; }
.dmh-step h3 { font-family: var(--dmh-body); font-weight: 600; font-size: 22px; }
.dmh-step p { font-size: 16px; line-height: 1.5; color: var(--dmh-muted); margin-top: 6px; }

.dmh-news { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.dmh-news__card { background: #fff; border: 1px solid var(--dmh-line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.dmh-news__card time { font-size: 13px; color: var(--dmh-soft); }
.dmh-news__card h3 { font-size: 24px; line-height: 1.2; }
.dmh-news__card p { font-size: 16px; color: var(--dmh-muted); flex-grow: 1; }
.dmh-news__card .dmh-link { font-weight: 600; color: var(--dmh-accent-ink); }
.dmh-news__all { margin-top: 28px; }

.dmh-cta { padding-bottom: 96px; }
.dmh-cta__box { background: var(--dmh-accent); border-radius: 32px; padding: 64px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.dmh-cta__box h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.05; letter-spacing: -1px; max-width: 640px; }
.dmh-cta__side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; font-size: 15px; }

/* ─── Reveal on scroll ───────────────────────────────────── */
.dmh-rv { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.dmh-rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .dmh-rv { opacity: 1; transform: none; transition: none; }
  .dmh-slide.is-active, .dmh-flow.is-active { animation: none; }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .dmh-products { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dmh-hero__grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 900px) {
  .dmh-wrap { padding: 0 20px; }
  .dmh-burger { display: inline-flex; align-items: center; justify-content: center; }
  .dmh-nav__links { display: none; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 8px; background: #2a201a; padding: 16px; border-radius: 20px; z-index: 40; }
  .dmh-nav__links.is-open { display: flex; }
  .dmh-nav__links > a:not(.dmh-btn) { padding: 10px 8px; }
  .dmh-access__menu { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .dmh-access > .dmh-btn { width: 100%; }
  .dmh-flows, .dmh-news { grid-template-columns: 1fr; gap: 32px; }
  .dmh-band .dmh-wrap { grid-template-columns: 1fr; gap: 28px; }
  .dmh-cta__box { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .dmh-logos .dmh-wrap { flex-direction: column; align-items: flex-start; gap: 20px; }
  .dmh-section { padding: 72px 0 56px; }
}
@media (max-width: 600px) {
  .dmh-products { grid-template-columns: 1fr; }
  .dmh-kpis { grid-template-columns: 1fr 1fr; }
  .dmh-kpi strong { font-size: 26px; }
  .dmh-slide { padding: 18px; }
  .dmh-row__time { display: none; }
}
