:root {
  --blue: #0a51a1;
  --blue-dark: #0b4282;
  --text: #18212d;
  --muted: #5f6f82;
  --bg: #f3f6fa;
  --white: #ffffff;
  --border: #dbe3ec;
  --shadow: 0 12px 36px rgba(15, 35, 65, 0.10);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 700;
  box-shadow: var(--shadow);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}
.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}
.narrow { max-width: 840px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand img {
  height: 58px;
  width: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
}
.site-nav a:hover { color: var(--blue); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
  white-space: nowrap;
}
.lang-switch a {
  font-weight: 700;
  color: var(--muted);
}
.lang-switch a.active {
  color: var(--blue);
}
.lang-switch .sep {
  color: #9aacbf;
}
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.hero {
  background: linear-gradient(180deg, #f7fbff 0%, #edf4fb 100%);
  padding: 72px 0 54px;
}
.hero-grid,
.split,
.cta-inner,
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: center;
}
.hero h1,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 18px;
}
.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 760px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  border: 1px solid var(--blue);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-secondary:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-small { padding: 10px 16px; }
.site-nav .btn-small {
  min-width: 110px;
}

.hero-card,
.card,
.info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { padding: 18px; }
.stat {
  padding: 16px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #e4edf7;
}
.stat + .stat { margin-top: 12px; }
.stat strong { display: block; font-size: 1.02rem; margin-bottom: 6px; }
.stat span { color: var(--muted); }

.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section-head { margin-bottom: 28px; }
.section-head h2,
.split h2,
.cta-inner h2 { font-size: 2rem; line-height: 1.15; margin: 0 0 12px; }
.cards {
  display: grid;
  gap: 22px;
}
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { padding: 26px; }
.card h3,
.card h2 { margin-top: 0; line-height: 1.2; }
.card p,
.info-box p,
.info-box li,
.card li { color: var(--muted); }
.large-card { height: 100%; }
.info-box { padding: 26px; }
.check-list,
.card ul,
.info-box ul { padding-left: 18px; }
.certifications-section {
  padding-top: 20px;
}
.company-profile-section {
  padding-bottom: 44px;
}
.certifications-layout {
  display: grid;
  gap: 18px;
}
.certifications-head {
  max-width: 780px;
  margin-bottom: 8px;
}
.certifications-section h2,
.company-profile-section h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 12px;
}
.certification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 35, 65, 0.08);
}
.certification-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fbff;
}
.certification-logo img {
  max-width: 100%;
  max-height: 78px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.certification-logo img[src*="certificazione-soa"] {
  max-height: 88px;
}
.certification-item h3 {
  margin: 0 0 8px;
  line-height: 1.2;
}
.company-profile-card {
  grid-template-columns: 1fr;
}
.company-profile-card p + p {
  margin-top: 12px;
}
.certification-copy {
  min-width: 0;
}
.certification-copy p {
  margin-top: 0;
}
.certification-item p,
.certifications-head p {
  color: var(--muted);
  margin-bottom: 0;
}
.jobs-section { background: #ffffff; }
.jobs-intro {
  margin-bottom: 22px;
}
.jobs-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.jobs-title-row h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
}
.jobs-intro-copy {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 720px;
}
.jobs-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid #46b86f;
  border-radius: 999px;
  background: #dcfce7;
  color: #116530;
}
.jobs-status-indicator {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #15803d;
  box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.14);
}
.jobs-status strong { font-size: 0.96rem; }
.jobs-status.is-empty {
  border-color: #d2dce7;
  background: #f6f8fa;
  color: #486075;
}
.jobs-status.is-empty .jobs-status-indicator {
  background: #91a4b8;
  box-shadow: 0 0 0 5px rgba(145, 164, 184, 0.15);
}
.job-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.job-card {
  min-height: 150px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 35, 65, 0.08);
}
.job-card h3 {
  margin: 0 0 10px;
  color: #10213a;
  font-size: 1.12rem;
  line-height: 1.25;
}
.job-card p {
  margin: 0;
  color: var(--muted);
}
.job-card-link {
  display: block;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.job-card-link:hover,
.job-card-link:focus-visible {
  border-color: rgba(10, 81, 161, 0.45);
  box-shadow: 0 16px 34px rgba(15, 35, 65, 0.12);
  outline: 0;
  transform: translateY(-2px);
}
.job-card-action {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--blue);
  font-weight: 800;
}
.job-card-empty {
  grid-column: 1 / -1;
  border-left-color: #9aacbf;
  box-shadow: none;
}
.jobs-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fbff;
}
.jobs-contact p {
  margin: 0;
  color: var(--muted);
}
.job-detail {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}
.job-detail-body {
  color: var(--text);
  font-size: 1.05rem;
}
.job-detail-body p {
  margin: 0 0 18px;
}
.job-detail-body p:last-child,
.job-detail-body ul:last-child,
.job-detail-body ol:last-child {
  margin-bottom: 0;
}
.job-detail-body ul,
.job-detail-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}
.job-detail-body li + li {
  margin-top: 5px;
}
.job-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
  }
  .job-application-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }
  .job-application-card h2 {
    margin-top: 0;
  }
  .job-application-success {
    border-left: 5px solid #218838;
  }
  .job-application-errors {
    margin: 22px 0;
    padding: 16px 18px;
    border: 1px solid #e7a9ad;
    border-radius: 6px;
    background: #fff5f5;
    color: #842029;
  }
  .job-application-errors ul {
    margin: 8px 0 0;
    padding-left: 22px;
  }
  .job-application-form {
    display: grid;
    gap: 20px;
    margin-top: 24px;
  }
  .job-application-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .job-application-form label > span:first-child {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-weight: 700;
  }
  .job-application-form input[type="text"],
  .job-application-form input[type="file"] {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
  }
  .job-application-form input:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(16, 76, 132, 0.15);
  }
  .job-application-form small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
  }
  .job-cv-field {
    display: grid;
    gap: 7px;
  }
  .job-cv-label {
    color: var(--text);
    font-weight: 700;
  }
  .job-cv-drop-zone {
    display: grid;
    min-height: 145px;
    place-content: center;
    gap: 7px;
    padding: 20px;
    border: 2px dashed #99b6c7;
    border-radius: 8px;
    background: #f8fbfc;
    color: var(--text);
    cursor: pointer;
    text-align: center;
    transition: border-color .16s ease, background-color .16s ease;
  }
  .job-cv-drop-zone:hover,
  .job-cv-drop-zone.is-dragging {
    border-color: var(--blue);
    background: #edf6fb;
  }
  .job-cv-drop-zone.has-file {
    border-color: #3a8b65;
    background: #f0faf4;
  }
  .job-cv-drop-title {
    font-weight: 700;
  }
  .job-cv-drop-hint {
    color: var(--muted);
    font-size: .92rem;
  }
  .job-cv-file-input {
    position: absolute;
    width: 1px !important;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .job-application-privacy {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    color: var(--muted);
    line-height: 1.5;
  }
  .job-application-privacy input {
    margin-top: 5px;
  }
  .job-application-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
  }
  @media (max-width: 640px) {
    .job-application-grid {
      grid-template-columns: 1fr;
    }
    .job-application-card {
      padding: 22px 18px;
    }
  }
  .cta-strip { background: linear-gradient(90deg, var(--blue-dark), var(--blue)); color: #fff; }
.cta-strip .eyebrow,
.cta-strip p { color: rgba(255,255,255,0.85); }

.page-main { min-height: 60vh; }
.page-hero {
  padding: 58px 0 20px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}
.job-offer-page .page-hero .lead {
  display: none;
}
.job-offer-page .page-hero {
  padding-bottom: 8px;
}
.job-offer-page .section {
  padding-top: 36px;
}

.privacy-content {
  padding-top: 44px;
}
.legal-text {
  max-width: 960px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.65;
}
.legal-text h2 {
  margin: 2rem 0 0.75rem;
  color: #10213a;
  font-size: 1.35rem;
  line-height: 1.25;
}
.legal-text p {
  margin: 0 0 1rem;
}
.legal-text ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.legal-text li + li {
  margin-top: 0.35rem;
}
.legal-text .update-date {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  background: #0d1b2b;
  color: #dfe9f6;
  padding: 42px 0;
}
.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: #dfe9f6;
}
.site-footer h4 {
  margin-top: 0;
  color: #ffffff;
}
.footer-logo {
    width: 120px;
    margin-bottom: 16px;
    line-height: 0;
    color: #ffffff;
}

.footer-logo-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}
.site-footer .footer-grid { align-items: start; }
code {
  background: #eef3f8;
  padding: 2px 6px;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .cta-inner,
  .footer-grid,
  .cards.three,
  .cards.two,
  .job-list {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 86px;
    left: 16px;
    right: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .lang-switch {
    padding-left: 0;
    justify-content: center;
  }

  .jobs-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .jobs-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .certification-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .certification-logo {
    justify-content: flex-start;
    min-height: 86px;
    max-width: 220px;
  }

  .certification-logo img {
    max-height: 72px;
  }

  .certification-logo img[src*="certificazione-soa"] {
    max-height: 82px;
  }

  .site-nav.open { display: flex; }
}
