/* ==========================================================
   PATHWAYS
========================================================== */

.pathways-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(320px, 1fr));

  gap: 28px;

  align-items: start;
}

.path-item {
  display: flex;

  flex-direction: column;
}

@media (max-width: 768px) {
  .pathways-grid {
    grid-template-columns: 1fr;
  }
}

.path-card {
  position: relative;

  min-height: 420px;

  border-radius: 24px;

  overflow: hidden;

  cursor: pointer;

  background: #143a5a;

  transform: translateY(0);

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease;
}

.path-image {
  position: absolute;

  inset: 0;

  z-index: 0;

  transform: scale(1);

  transition: transform 0.8s ease;

  will-change: transform;
}
.path-content {
  position: absolute;

  left: 35px;

  right: 35px;

  bottom: 35px;

  z-index: 2;

  color: white;

  display: flex;

  flex-direction: column;
}

.eso6 .path-image {
  background: url("../img/pathways/eso6.webp") center center / cover;
}

.eso8 .path-image {
  background: url("../img/pathways/eso8.webp") center center / cover;
}

.eso10 .path-image {
  background: url("../img/pathways/eso10.webp") center center / cover;
}

.ragazzi .path-image {
  background: url("../img/pathways/ragazzi.webp") center center / cover;
}

.cadetti .path-image {
  background: url("../img/pathways/cadetti.webp") center center / cover;
}

.assoluti .path-image {
  background: url("../img/pathways/assoluti.webp") center center / cover;
}

.path-overlay {
  position: absolute;

  inset: 0;

  z-index: 1;

  background: linear-gradient(
    180deg,
    rgba(20, 58, 90, 0.05) 0%,
    rgba(20, 58, 90, 0.35) 45%,
    rgba(20, 58, 90, 0.72) 100%
  );

  transition: 0.45s;
}

/* ==========================================================
   PATH CARD TYPOGRAPHY
========================================================== */

.path-age {
  display: inline-flex;

  align-items: center;

  align-self: flex-start;

  padding: 8px 18px;

  border-radius: 999px;

  background: rgba(216, 27, 96, 0.92);

  border: none;

  backdrop-filter: none;

  color: #fff;

  font-size: 0.78rem;

  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

/* ==========================================================
   PATH CARD HOVER
========================================================== */

.path-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.22);
}

.path-card:hover .path-image {
  transform: scale(1.05);
}

.path-card:hover .path-overlay {
  background: linear-gradient(
    180deg,
    rgba(20, 58, 90, 0.03) 0%,
    rgba(20, 58, 90, 0.3) 45%,
    rgba(20, 58, 90, 0.62) 100%
  );
}

/* ==========================================================
   PATH CONTENT
========================================================== */

.path-content h3 {
  margin: 16px 0 12px;

  font-size: 2.2rem;

  letter-spacing: -0.02em;

  font-weight: 800;

  line-height: 1;

  color: #fff;

  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.path-content p {
  max-width: 340px;

  margin: 0 0 24px;

  color: rgba(255, 255, 255, 0.92);

  font-size: 1rem;

  line-height: 1.7;

  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.path-content a {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  color: #fff;

  text-decoration: none;

  font-size: 0.9rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.08em;

  transition: gap 0.35s ease;
}

/* ======================================================
   PANNELLO PERCORSO
====================================================== */

.path-item {
  display: flex;

  flex-direction: column;
}

.path-panel {
  display: none;

  margin-top: 24px;

  padding: 36px;

  background: #fff;

  border: 1px solid #ececec;

  border-radius: 24px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* ======================================================
   PULSANTE SCOPRI DI PIÙ
====================================================== */

.path-toggle {
  display: flex;

  justify-content: space-between;

  align-items: center;

  width: 100%;

  padding: 18px 0 0;

  margin-top: 18px;

  background: none;

  border: none;

  border-top: 1px solid rgba(255, 255, 255, 0.25);

  color: #fff;

  font-size: 0.95rem;

  font-weight: 700;

  cursor: pointer;

  transition: 0.3s;

  margin-top: auto;
}

.path-toggle:hover {
  border-top-color: #ffffff;

  opacity: 0.9;
}

.path-toggle i {
  font-size: 0.9rem;

  transition: transform 0.3s ease;
}

/* ==========================================
   PANEL GRID
========================================== */

.panel-grid {
  display: flex;

  flex-direction: column;

  gap: 18px;

  margin-bottom: 30px;
}

.panel-item {
  padding: 0 0 26px;

  margin-bottom: 4px;

  border-bottom: 1px solid #ececec;
}

.panel-item:last-child {
  border-bottom: none;

  padding-bottom: 0;
}

.panel-item strong {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 10px;

  color: #143a5a;

  font-size: 0.82rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.12em;
}

.panel-item strong i {
  width: 24px;

  text-align: center;

  color: #d81b60;

  font-size: 1rem;

  flex-shrink: 0;
}

.panel-item p {
  margin: 0;

  color: #5f6874;

  font-size: 1rem;

  line-height: 1.75;
}

.path-panel .button {
  width: 100%;

  justify-content: center;

  margin-top: 24px;

  padding: 16px 24px;

  font-weight: 700;

  letter-spacing: 0.04em;
}

.path-panel .button {
  width: 100%;

  justify-content: center;

  gap: 10px;
}
