/* Pagina Certificazioni (page-certificazioni.php). Classi prefissate cc- per non collidere con main.css. */
.certo-cert {
  --navy: #152e4d;
  --navy-600: #294f78;
  --navy-400: #6b8aac;
  --navy-100: #e2e9f1;
  --teal: #008dab;
  --teal-400: #5dbcd2;
  --teal-100: #e3f2f6;
  --border: #ececec;
  --pink: #ec0a7e;
  --pink-dark: #c4006a;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 999px;
  --shadow-3: 0 12px 32px rgba(21,46,77,.12);

  font-family: 'Montserrat', system-ui, 'Helvetica Neue', Arial, sans-serif;
  color: var(--navy);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.certo-cert *, .certo-cert *::before, .certo-cert *::after { box-sizing: border-box; }
.certo-cert h1, .certo-cert h2, .certo-cert h3, .certo-cert p, .certo-cert ul { margin: 0; padding: 0; }
.certo-cert a { text-decoration: none; }

.cc-page { display: none; }
.cc-page.active { display: block; }

.cc-wrap { max-width: 1080px; margin: 0 auto; padding: 52px 28px; }

.cc-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }

.certo-cert .cc-h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.15;
  letter-spacing: -.01em; text-wrap: balance; margin-bottom: 16px; /* colore dalla classe .cyan del tema */
}
.certo-cert .cc-h2 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin: 40px 0 12px; }
.certo-cert .cc-h2:first-child { margin-top: 0; }

.certo-cert .cc-lead { font-size: 1rem; color: var(--navy-400); line-height: 1.7; margin-bottom: 40px; }
.certo-cert .cc-text { font-size: .9rem; color: var(--navy-400); line-height: 1.7; }

.cc-card {
  display: block; background: #fff; color: var(--navy);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px 32px; transition: box-shadow .2s, transform .2s;
}
.cc-card:hover { box-shadow: var(--shadow-3); transform: translateY(-2px); color: var(--navy); }
@media (min-width: 992px) {
  a.cc-card { display: flex; aspect-ratio: 5 / 4; flex-direction: column; justify-content: center; align-items: stretch; }
  .cc-tag { width: 50%; }
}
.cc-card-navy { border-top: 3px solid var(--navy); }
.cc-card-teal { border-top: 3px solid var(--teal); }

.cc-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 36px; }
.cc-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 32px; }

.cc-tag {
  display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-100);
  padding: 3px 10px; border-radius: var(--r-pill); margin-bottom: 14px;
}
.cc-tag.navy { color: var(--navy); background: var(--navy-100); }

.cc-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.cc-card-body { font-size: .875rem; color: var(--navy-400); line-height: 1.65; }
.cc-card-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal); transition: gap .15s;
}
.cc-card:hover .cc-card-cta { gap: 10px; }

.cc-v-num { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.cc-v-title { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.cc-v-desc { font-size: .825rem; color: var(--navy-400); line-height: 1.55; }

.cc-detail { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.cc-sidebar { position: sticky; top: 130px; }
@media (max-width: 760px) { .cc-detail { grid-template-columns: 1fr; } .cc-sidebar { position: static; } }

.certo-cert .cc-checklist { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.certo-cert .cc-checklist li { padding: 0; position: static; display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; line-height: 1.55; }
.certo-cert .cc-checklist li::before {
  content: ''; position: static; display: block; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23008dab' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7 7a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L9 11.6l6.3-6.3a1 1 0 0 1 1.4 0Z'/%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}

.cc-steps { display: flex; flex-direction: column; margin-top: 20px; }
.cc-step { display: flex; gap: 16px; }
.cc-step-col { display: flex; flex-direction: column; align-items: center; }
.cc-step-dot {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); color: #fff; font-weight: 700; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}
.cc-step-line { flex: 1; width: 2px; background: var(--border); margin: 4px 0; min-height: 20px; }
.cc-step:last-child .cc-step-line { display: none; }
.cc-step-body { padding: 3px 0 24px; min-width: 0; }
.cc-step-title { font-weight: 700; font-size: .875rem; margin-bottom: 3px; }
.cc-step-desc { font-size: .825rem; color: var(--navy-400); }

.cc-notice {
  background: var(--teal-100); border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 14px 18px; margin-top: 28px; font-size: .85rem; line-height: 1.6;
}
.cc-notice strong { color: var(--teal); font-weight: 700; }
.cc-notice.cc-error { background: #fdecef; border-left-color: #c4006a; }

/* Form: stesso stile del form delle landing webinar (webinar-sicurezza-ottici/css/style.css). */
.cc-form-center { max-width: 720px; margin: 0 auto; }
.cc-form-center .cc-h2 { text-align: center; }
.cc-form-card {
  font-family: 'Open Sans', system-ui, sans-serif; color: #13314f;
  background: #fff; border: 1px solid #e2eaec; border-radius: 14px;
  padding: 38px 36px; box-shadow: 0 30px 60px -32px rgba(14,46,79,.18);
}
.cc-sidebar .cc-form-card { padding: 28px 22px; }
.certo-cert .cc-form-card h3 { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 600; color: #0e2e4f; font-size: 22px; line-height: 1.3; letter-spacing: 0; text-transform: none; margin: 0 0 6px; }
.certo-cert .cc-sidebar .cc-form-card h3 { font-size: 19px; }
.certo-cert .cc-form-sub { color: #5b6b7a; font-size: 14px; margin: 0 0 24px; }
.cc-form-row { display: grid; gap: 16px; margin-bottom: 16px; }
.cc-row-2 { grid-template-columns: 1fr 1fr; }
.cc-sidebar .cc-row-2 { grid-template-columns: 1fr; }
@media (max-width: 560px) { .cc-row-2 { grid-template-columns: 1fr; } .cc-form-card { padding: 28px 22px; } }
.certo-cert .cc-field label { display: block; font-size: 13px; font-weight: 600; color: #0e2e4f; margin: 0 0 6px; padding: 0; }
.cc-req { color: #ec0a7e; }
.certo-cert .cc-field input {
  display: block; width: 100%; height: auto; border: 1px solid #d3dde0; border-radius: 8px; padding: 12px 14px;
  background: #f9fbfc; color: #13314f; font-family: inherit; font-size: 15px; box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.certo-cert .cc-field input:focus { outline: none; border-color: #0196ad; box-shadow: 0 0 0 3px rgba(1,150,173,.12); background: #fff; }
.certo-cert .cc-consent {
  display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; font-weight: 400; line-height: 1.55; color: #5b6b7a;
  margin: 14px 0 0; padding: 12px 0; border-top: 1px solid #e2eaec;
}
.cc-consent input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #0196ad; flex: none; cursor: pointer; }
.cc-consent a { color: #0196ad; font-weight: 600; }
.cc-form-status { margin: 0 0 18px; padding: 12px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; background: #e9f4f6; color: #0e6b78; border: 1px solid #cfe4e8; }
.cc-form-status.cc-error { background: #fde7ee; color: #c80668; border-color: #f5b8cf; }
.cc-form-card .cc-btn {
  margin-top: 22px; padding: 17px 24px; border-radius: 6px;
  font-family: 'Montserrat', system-ui, sans-serif; font-size: 13.5px; letter-spacing: .06em;
  box-shadow: 0 10px 24px -10px rgba(236,10,126,.6); transition: transform .25s ease, box-shadow .25s ease, background .2s ease;
}
.cc-form-card .cc-btn:hover { background: #c80668; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(236,10,126,.7); }
.cc-hp { position: absolute; left: -9999px; }

.cc-btn {
  display: block; width: 100%; padding: 11px; text-align: center;
  background: var(--pink); color: #fff; border: none; border-radius: var(--r-md);
  font-family: inherit; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; transition: background .15s;
}
.cc-btn:hover, .cc-btn:focus { background: var(--pink-dark); color: #fff; }

.cc-cal-card { background: var(--navy); border-radius: var(--r-lg); padding: 24px; margin-top: 16px; color: #fff; }
.certo-cert .cc-cal-card h3 { font-size: .9rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.certo-cert .cc-cal-card p { font-size: .8rem; color: rgba(255,255,255,.65); margin-bottom: 18px; line-height: 1.55; }

.certo-cert hr { border: none; border-top: 1px solid var(--border); margin: 44px 0; }

/* Voce attiva del menu sostitutivo */
.page-template-page-certificazioni .main-menu li.current-menu-item a { color: #0096ac; }
