.wvt-timeline {
  position: relative;
  max-width: 1100px;
  margin: 100px auto;
  padding-left: 60px;
}

/* LINEA BASE */
.wvt-timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 2px;
  height: 100%;
  background: #e5e5e5;
}

/* LINEA ANIMATA */
.wvt-progress-line {
  position: absolute;
  left: 20px;
  top: 0;
  width: 2px;
  height: 0;
  background: #f05a28;
  z-index: 2;
}

/* ITEM */
.wvt-item {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 100px;
  opacity: 0;
  transform: translateY(60px);
}

/* DOT */
.wvt-dot {
  position: absolute;
  left: -46px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: #e5e5e5;
  border: 3px solid #e5e5e5;
  border-radius: 50%;
  z-index: 3;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* DOT ATTIVO */
.wvt-dot.is-active {
  background: #f05a28;
  border-color: #f05a28;
  box-shadow: 0 0 0 6px rgba(240, 90, 40, 0.15);
}

/* CONTENUTO */
.wvt-content {
  display: flex;
  gap: 40px;
  align-items: center;
  width: 100%;
}

/* REVERSE (elementi pari: immagine a sinistra, testo a destra) */
.wvt-item--reverse .wvt-content {
  flex-direction: row-reverse;
}

/* TESTO */
.wvt-text {
  flex: 1;
}

.wvt-number {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 42px;
  font-weight: 700;
  color: rgba(240, 90, 40, 0.18);
  line-height: 1;
  margin-bottom: 6px;
}

.wvt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(240, 90, 40, 0.08), rgba(240, 90, 40, 0.18));
}

.wvt-icon svg {
  width: 22px;
  height: 22px;
  color: #f05a28;
}

.wvt-text h3 {
  margin: 10px 0;
  font-size: 20px;
  font-weight: 600;
  color: #f05a28;
}

.wvt-text p {
  color: #666;
  line-height: 1.7;
  font-size: 15px;
}

/* IMMAGINE */
.wvt-image {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  overflow: hidden;
}

.wvt-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

/* ========== CONTACT FORM 7 ========== */
.cf7-field {
  margin-bottom: 20px;
}

.cf7-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.cf7-field--half,
.cf7-field--three {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 20px;
}

.cf7-half,
.cf7-col {
  flex: 1;
  min-width: 0;
}

.cf7-half p,
.cf7-col p {
  margin: 0;
}

.cf7-half .wpcf7-form-control-wrap,
.cf7-col .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.cf7-half label,
.cf7-col label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.cf7-field select,
.cf7-field input[type="tel"],
.cf7-field input[type="text"],
.cf7-field input[type="email"],
.cf7-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cf7-field select:focus,
.cf7-field input:focus,
.cf7-field textarea:focus {
  outline: none;
  border-color: #f05a28;
  box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.1);
}

.cf7-field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
}

.cf7-field textarea {
  min-height: 150px;
  resize: vertical;
}

.cf7-submit input[type="submit"] {
  width: 100%;
  padding: 14px 28px;
  background-color: #d95c26;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='none' stroke='white' stroke-width='32' stroke-linejoin='round' stroke-linecap='round' d='M498.1 5.6c10.1 7 15.4 19.1 13.5 31.2l-64 416c-1.5 9.7-7.4 18.2-16 23s-18.9 5.4-28 1.6L284 427.7l-68.5 74.1c-8.9 9.7-22.9 12.9-35.2 8.1S160 492.3 160 480l0-83.6c0-4 1.5-7.8 4.2-10.8L331.8 202.8c5.8-6.3 5.4-16.1-.8-21.9s-16.1-5.4-21.9 .8L156 352.7 40.1 286.8c-9.8-5.7-16.1-16.1-16.9-27.6s5.1-22.7 14.3-29.3l448-288c9.2-6 21.1-6.4 30.6 .6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: calc(50% - 75px) center;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cf7-submit input[type="submit"]:hover {
  background-color: #c04f1e;
}

.cf7-submit input[type="submit"]:hover {
  background-color: #c04f1e;
}

/* CF7 messaggi errore */
.wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 4px;
}

.wpcf7-response-output {
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .wvt-content {
    flex-direction: column !important;
  }

  .wvt-timeline {
    padding-left: 40px;
  }

  .wvt-dot {
    left: -26px;
  }

  .wvt-item {
    margin-bottom: 60px;
  }

  .cf7-field--half,
  .cf7-field--three {
    flex-direction: column;
    gap: 0;
  }

  .cf7-half,
  .cf7-col {
    margin-bottom: 20px;
  }
}

/* ========== FILTRO ARTICOLI ========== */
.rdt-filter-wrap {
  display: flex;
  gap: 50px;
  max-width: 1200px;
  margin: 60px auto;
  align-items: flex-start;
}

/* SIDEBAR CATEGORIE */
.rdt-filter-sidebar {
  min-width: 220px;
  position: sticky;
  top: 100px;
}

.rdt-filter-label {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #d95c26;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.rdt-filter-title {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin: 0 0 24px;
  line-height: 1.2;
}

.rdt-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rdt-cat-list li {
  margin-bottom: 4px;
}

.rdt-cat-link {
  display: block;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  color: #555;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.rdt-cat-link:hover {
  color: #d95c26;
}

.rdt-cat-link.is-active {
  background: #d95c26;
  color: #fff;
  font-weight: 600;
}

/* GRIGLIA ARTICOLI */
.rdt-posts-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
  transition: opacity 0.3s ease;
}

/* CARD FEATURED (immagine + titolo + excerpt) - occupa tutta la colonna sinistra */
.rdt-card--featured {
  grid-row: 1 / 3;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e6e6e6;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.rdt-card__img {
  overflow: hidden;
}

.rdt-card__img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.rdt-card__img:hover img {
  transform: scale(1.03);
}

.rdt-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* META: tag + data */
.rdt-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rdt-card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(217, 92, 38, 0.1);
  color: #d95c26;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

.rdt-card__date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #999;
}

.rdt-card__date svg {
  color: #bbb;
}

.rdt-card__body h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.rdt-card__body h3 a {
  text-decoration: none;
  color: #222;
  transition: color 0.3s ease;
}

.rdt-card__body h3 a:hover {
  color: #d95c26;
}

.rdt-card__body p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.rdt-card__more {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #d95c26;
  text-decoration: none;
  margin-top: auto;
  transition: color 0.3s ease;
}

.rdt-card__more:hover {
  color: #b84a1a;
}

/* CARD DOUBLE (2 articoli senza immagine) - colonna destra */
.rdt-card--double {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rdt-card__item {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.rdt-card__item .rdt-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rdt-card__item h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.rdt-card__item h3 a {
  text-decoration: none;
  color: #222;
  transition: color 0.3s ease;
}

.rdt-card__item h3 a:hover {
  color: #d95c26;
}

.rdt-card__item p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.rdt-card__item .rdt-card__more {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #d95c26;
  text-decoration: none;
  margin-top: auto;
  transition: color 0.3s ease;
}

.rdt-card__item .rdt-card__more:hover {
  color: #b84a1a;
}

.rdt-no-posts {
  color: #999;
  font-style: italic;
  grid-column: 1 / -1;
}

/* ========== BLOG PAGE ========== */
.rdt-blog-wrap .rdt-filter-title {
  display: none;
}

.rdt-blog-grid {
  display: flex !important;
  gap: 24px;
}

.rdt-blog-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rdt-blog-col .rdt-card__item {
  margin-bottom: 0;
}

.rdt-blog-col .rdt-card--featured {
  grid-row: auto;
}

/* ========== POSIZIONI APERTE ========== */
.rdt-posizioni {
  display: flex;
  gap: 24px;
  max-width: 1200px;
  margin: 60px auto;
}

.rdt-pos-card {
  flex: 1;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.rdt-pos-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin: 0 0 10px;
}

.rdt-pos-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 18px;
}

.rdt-pos-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.rdt-pos-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f2f2f2;
  border-radius: 20px;
  font-size: 13px;
  color: #555;
}

.rdt-pos-badge svg {
  color: #999;
}

.rdt-pos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid #d95c26;
  border-radius: 8px;
  color: #d95c26;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.rdt-pos-btn:hover {
  background: #d95c26;
  color: #fff;
}

.rdt-pos-btn:hover svg {
  color: #fff;
}

.rdt-pos-btn svg {
  color: #d95c26;
  transition: color 0.3s ease;
}

/* RESPONSIVE FILTRO */
@media (max-width: 768px) {
  .rdt-filter-wrap {
    flex-direction: column;
    gap: 30px;
  }

  .rdt-filter-sidebar {
    min-width: 100%;
    position: static;
  }

  .rdt-cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .rdt-cat-list li {
    margin-bottom: 0;
  }

  .rdt-posts-grid {
    grid-template-columns: 1fr;
  }

  .rdt-card--featured {
    grid-row: auto;
  }

  .rdt-card--double {
    grid-row: auto;
  }

  .rdt-blog-grid {
    flex-direction: column !important;
  }

  .rdt-posizioni {
    flex-direction: column;
  }
}