/**
 * Stile pagina Certificazioni — widget building_certs.
 * Coerente con il design del sito (navy, arancio, Manrope), racchiuso in
 * `.certs-scope` per non interferire con gli stili globali di Elementor.
 */

.certs-scope {
  --navy: #16233a;
  --navy-d: #0f1a2b;
  --navy-l: #1c2c46;
  --orange: #e8842b;
  --text-soft: #cdd7e2;
  --text-muted: #9fb0c4;
  --line: rgba(255, 255, 255, 0.09);
  --maxw: 1240px;
  --pad-x: 6vw;
  --radius-lg: 16px;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #fff;
  line-height: 1.6;
}
.certs-scope h1,
.certs-scope h2,
.certs-scope h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.certs-scope .text-orange { color: var(--orange); }
.certs-scope .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.certs-scope .kicker::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--orange);
}

/* Hero */
.certs-scope .page-hero {
  position: relative;
  padding: clamp(150px, 18vw, 200px) var(--pad-x) clamp(60px, 8vw, 90px);
  overflow: hidden;
  background: var(--navy);
}
.certs-scope .page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}
.certs-scope .page-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--navy-d), transparent), linear-gradient(90deg, var(--navy) 20%, transparent);
}
.certs-scope .page-hero__in {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin-inline: auto;
}
.certs-scope .page-hero h1 { font-size: clamp(38px, 5vw, 64px); }
.certs-scope .page-hero p {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-soft);
  margin-top: 18px;
  max-width: 560px;
}
.certs-scope .breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.certs-scope .breadcrumb a { color: inherit; text-decoration: none; }
.certs-scope .breadcrumb a:hover { color: var(--orange); }
.certs-scope .breadcrumb span { color: #5f718a; }

/* Sezione griglia */
.certs-scope .certs-page {
  background: var(--navy-d);
}
.certs-scope .certs-in {
  max-width: var(--maxw);
  margin-inline: auto;
}
.certs-scope .certs-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 52px);
}
.certs-scope .certs-head h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
}
.certs-scope .certs-head p {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text-muted);
  margin-top: 16px;
}

.certs-scope .certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Card */
.certs-scope .cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s, box-shadow 0.25s;
}
.certs-scope a.cert-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 132, 43, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.certs-scope .cert-card__logo {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.certs-scope .cert-card__logo img {
  max-width: 150px;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.certs-scope .cert-card__title {
  font-size: 22px;
  margin-bottom: 12px;
}
.certs-scope .cert-card__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.certs-scope .cert-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--orange);
}
.certs-scope .cert-card__cta em {
  font-style: normal;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.certs-scope a.cert-card:hover .cert-card__cta em {
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1000px) {
  .certs-scope .certs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .certs-scope .certs-grid { grid-template-columns: 1fr; }
  .certs-scope .page-hero { padding: 118px var(--pad-x) 46px; }
  .certs-scope .page-hero h1 { font-size: clamp(34px, 11vw, 44px); }
  .certs-scope .cert-card__logo { height: 130px; }
}
