/* =========================================================
   PARITA SCOLASTICA
   ESTILO SCUOLA INSTITUCIONAL
   ========================================================= */

.parita-page {
  --azul: #12345c;
  --azul-2: #0d2748;
  --rojo: #b51f2f;
  --oro: #c8a45d;
  --crema-2: #fbf8f2;
  --texto: #2f2f2f;

  color: var(--texto);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

.parita-page h2,
.parita-page h3,
.parita-page h4 {
  color: var(--azul);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
}

.parita-wide {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}

.parita-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.parita-page .row {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.parita-section {
  padding: 70px 0;
}

.parita-section-soft {
  background: var(--crema-2);
}

.parita-section-blue {
  background: var(--azul);
  color: #fff;
}

.parita-section-blue h2,
.parita-section-blue h3 {
  color: #fff;
}

.parita-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--rojo);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.parita-eyebrow::before {
  content: "";
  width: 46px;
  height: 2px;
  background: var(--oro);
  display: inline-block;
}

.parita-section-blue .parita-eyebrow {
  color: #fff;
}

.parita-title {
  max-width: 580px;
  color: var(--azul);
  font-size: clamp(38px, 4.5vw, 54px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: none;
  margin: 0 0 24px;
}

.parita-title em {
  color: var(--oro);
  font-style: italic;
  font-weight: 400;
}

.parita-title-small {
  max-width: 720px;
  color: var(--azul);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: none;
  margin: 0 0 18px;
}

.parita-lead {
  max-width: 780px;
  color: #555;
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 20px;
}

.parita-text {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.parita-section-blue .parita-lead,
.parita-section-blue .parita-text {
  color: rgba(255,255,255,.88);
}

/* Notas y tarjetas */

.parita-side-note {
  width: 100%;
  background: #fff;
  border: 1px solid #e8e1d6;
  border-top: 2px solid var(--oro);
  border-radius: 10px;
  padding: 24px 26px !important;
  box-shadow: 0 8px 22px rgba(18, 52, 92, .05);
}

.parita-side-note span {
  display: block;
  color: var(--oro);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: 11px;
}

.parita-side-note p {
  color: var(--azul);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  margin: 0;
}

.parita-intro-card {
  position: relative;
  background: #fff;
  padding: 28px 32px !important;
  border: 1px solid #eee5d8;
  border-left: 4px solid var(--rojo);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(18, 52, 92, .06);
}

.parita-intro-card::after {
  content: "Italia";
  position: absolute;
  right: 18px;
  bottom: -8px;
  color: rgba(18,52,92,.045);
  font-size: 76px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
  pointer-events: none;
}

.parita-benefit {
  position: relative;
  height: 100%;
  background: #fff;
  padding: 28px 26px 26px;
  border: 1px solid #eee3d3;
  border-bottom: 3px solid var(--oro);
  border-radius: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.parita-benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(18, 52, 92, .07);
}

.parita-benefit::before {
  content: attr(data-number);
  position: absolute;
  right: 20px;
  top: 18px;
  color: rgba(18,52,92,.07);
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
}

.parita-benefit h3 {
  position: relative;
  max-width: 220px;
  font-size: 21px;
  line-height: 1.15;
  margin: 0 0 14px;
}

.parita-benefit p {
  position: relative;
  color: #555;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* Imagen institucional con lightbox nativo de WordPress */

.parita-photo {
  position: relative;
  display: block;
  min-height: 380px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: var(--azul);
}

.parita-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.parita-photo-blue,
.parita-photo-blue img {
  min-height: 520px;
}

.parita-photo-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.05;
  text-align: left;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}

.parita-photo-caption span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.86);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
}

/* Bloque azul de títulos */

.parita-blue-panel {
  background: var(--azul);
}

.parita-blue-content {
  padding: 54px 52px;
}

.parita-italian-name {
  display: block;
  color: var(--oro);
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 8px;
}

.parita-title-line {
  padding-left: 18px;
  border-left: 3px solid var(--rojo);
  margin-bottom: 22px;
}

.parita-badge {
  display: inline-block;
  background: #fff;
  color: var(--azul);
  padding: 9px 13px;
  margin: 0 6px 8px 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

/* Áreas de formación */

.parita-subject {
  height: 100%;
  background: #fff;
  border-left: 4px solid var(--rojo);
  border-radius: 8px;
  padding: 20px;
  color: var(--azul);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(18,52,92,.05);
}

.parita-exam {
  position: relative;
  padding: 24px 0 24px 82px;
  border-bottom: 1px solid #e6dccd;
}

.parita-exam:last-child {
  border-bottom: 0;
}

.parita-exam-number {
  position: absolute;
  left: 0;
  top: 24px;
  width: 56px;
  height: 56px;
  background: var(--azul);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}

.parita-exam h3 {
  font-size: 20px;
  margin: 0 0 7px;
}

.parita-exam p {
  color: #555;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.parita-university {
  position: relative;
  height: 100%;
  background: #fff;
  color: var(--azul);
  border: 1px solid #eee3d3;
  border-radius: 8px;
  padding: 20px 20px 20px 28px;
  font-size: 15px;
  font-weight: 700;
}

.parita-university::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--rojo);
}

.parita-final {
  position: relative;
  background: linear-gradient(135deg, var(--azul), var(--azul-2));
  color: #fff;
  padding: 70px 0;
}

.parita-final h2 {
  color: #fff;
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 500;
  line-height: 1.05;
  text-transform: none;
  margin: 0 0 20px;
}

.parita-final p {
  max-width: 850px;
  color: rgba(255,255,255,.88);
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 991.98px) {
  .parita-section {
    padding: 55px 0;
  }

  .parita-blue-content {
    padding: 44px 34px;
  }

  .parita-photo,
  .parita-photo-blue,
  .parita-photo img,
  .parita-photo-blue img {
    min-height: 300px;
  }
}

@media (max-width: 575.98px) {
  .parita-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .parita-section {
    padding: 45px 0;
  }

  .parita-intro-card,
  .parita-side-note {
    padding: 22px !important;
  }

  .parita-blue-content {
    padding: 38px 22px;
  }

  .parita-photo-caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
    font-size: 22px;
  }

  .parita-exam {
    padding-left: 0;
    padding-top: 86px;
  }

  .parita-exam-number {
    top: 22px;
  }
}
