/* =============================================================
   Settori in fase di sviluppo — segnaposto temporaneo (2026-09-18)
   /settori/chimico/, /settori/metalmeccanico/ e le due EN
   (/en/industries/chemical/, /en/industries/metalworking/).
   Namespace .dev-. Le pagine vere verranno rifatte da zero come
   cavi/gomma/packaging: a quel punto questo file si puo' eliminare.
   Nessuna comparsa via JS (niente html.reveal-ready): solo CSS,
   cosi' la pagina resta visibile anche se il JS non parte.
   ============================================================= */

.page-dev {
  --dev-ink: #0b1220;
  --dev-copy: #56627a;
  --dev-gray: #7b889c;
  --dev-accent: #2563eb;
  --dev-accent-deep: #1e3a8a;
  --dev-rule: rgba(15, 23, 42, 0.1);
  --dev-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-dev main {
  overflow-x: clip;
  padding-top: 0;
  background: #ffffff;
}

.dev-wrap {
  width: min(100% - 40px, 1040px);
  margin-inline: auto;
}

.page-dev :is(a, button):focus-visible {
  outline: 3px solid var(--dev-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---- apertura ------------------------------------------------ */
.dev-hero {
  display: flex;
  align-items: center;
  min-height: min(72vh, 760px);
  padding-block: clamp(80px, 11vw, 150px) clamp(56px, 8vw, 110px);
  text-align: center;
}

.dev-eyebrow {
  margin: 0;
  color: var(--dev-accent-deep);
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}
.dev-eyebrow a {
  color: inherit;
  text-decoration: none;
}
.dev-eyebrow a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dev-hero h1 {
  margin: 0.34em auto 0;
  color: var(--dev-ink);
  font-size: clamp(2.6rem, 5.9vw, 5.4rem);
  font-weight: 790;
  letter-spacing: -0.05em;
  line-height: 1;
  text-wrap: balance;
}
.dev-hero h1 span {
  display: block;
  color: var(--dev-gray);
}

.dev-lead {
  margin: 28px auto 0;
  max-width: 44ch;
  color: var(--dev-copy);
  font-size: clamp(1.1rem, 1.45vw, 1.3rem);
  line-height: 1.55;
  text-wrap: balance;
}

.dev-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* ---- gli altri settori --------------------------------------- */
.dev-more {
  padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 120px);
}
.dev-more .dev-wrap {
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--dev-rule);
  text-align: center;
}
.dev-more__title {
  margin: 0;
  color: var(--dev-gray);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0;
}
.dev-more__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.dev-more__list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--dev-accent-deep);
  font-size: var(--fs-body);
  font-weight: 600;
  text-decoration: none;
}
.dev-more__list a span {
  transition: transform 0.3s var(--dev-ease);
}
.dev-more__list a:hover {
  color: var(--dev-accent);
}
.dev-more__list a:hover span {
  transform: translateX(3px);
}

/* ---- comparsa, solo CSS -------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .dev-hero .dev-wrap > * {
    animation: dev-in 0.9s var(--dev-ease) both;
  }
  .dev-hero .dev-wrap > :nth-child(2) { animation-delay: 0.06s; }
  .dev-hero .dev-wrap > :nth-child(3) { animation-delay: 0.14s; }
  .dev-hero .dev-wrap > :nth-child(4) { animation-delay: 0.2s; }
}
@keyframes dev-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .dev-hero {
    min-height: 0;
    padding-bottom: 32px;
  }
  .dev-actions .button {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }
}
