/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/


/* ============================================================
   EVENT GRID
   ============================================================ */

.seqr-event-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 360px)) !important;
  justify-content: start !important;
  gap: 36px !important;
}

@media (min-width: 600px) and (max-width: 1024px) {
  .seqr-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* ============================================================
   CARD EVENTO
   ============================================================ */

.seqr-event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
}

.seqr-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.seqr-event-card > a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.seqr-event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.seqr-event-card:hover img {
  transform: scale(1.05);
}

.seqr-event-card > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px !important;
  padding-bottom: 22px !important;
}

.seqr-event-card h2,
.seqr-event-card h3 {
  font-size: 18px  !important;
  font-weight: 600  !important;
  line-height: 1.4;
  margin-bottom: 21px  !important;
  white-space: normal !important;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.seqr-event-card p {
  color: #000 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.4;
  white-space: normal !important;
  overflow: visible !important;
  word-break: break-word;
}

.seqr-event-card div[style*="padding-top:16px"] p {
  position: relative;
  padding-left: 26px;
}

.seqr-event-card div[style*="padding-top:16px"] p:nth-of-type(1)::before {
  content: "📅";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 16px;
}

.seqr-event-card div[style*="padding-top:16px"] p:nth-of-type(2)::before {
  content: "📍";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 16px;
}

.seqr-event-card a[style*="background"] {
  margin-top: auto !important;
  align-self: flex-start;
  display: inline-block;
  padding: 7px 22px !important;
  border-radius: 14px !important;
  font-weight: 500;
  transition: all .2s ease;
}

.seqr-event-card a[style*="background"]:hover {
  background: #3e3e3e !important;
  transform: translateY(-2px);
}


/* ============================================================
   BADGE ECM — sulle card
   ============================================================ */

.seqr-badge-ecm {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  background: #d18b1d;
  color: #fff !important;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2px;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}


/* ============================================================
   SCHEDA SINGOLA EVENTO
   ============================================================ */

/* Immagine in evidenza — sempre contenuta nel box */
.seqr-event-layout img,
.seqr-event-layout img[style],
.single-evento .entry-content img,
.single-evento .nectar-featured-img img,
.single-evento .post-thumbnail img,
.single-evento article img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
}

/* Nasconde sottotitoli */
.seqr-event-subheading-when,
.seqr-event-meta-col h5 {
  display: none !important;
}

/* Nasconde blocco Iscritti */
.seqr-event-heading-subscribers,
.seqr-event-heading-subscribers + p {
  display: none !important;
}

.seqr-event-heading-subscribers + p + p {
  margin-top: 30px !important;
}

/* Spazio tra blocchi Quando / Dove / Tipologia */
.seqr-event-heading-when,
.seqr-event-heading-where,
.seqr-event-heading-type {
  margin-top: 20px !important;
}

/* Spazio tra le date */
.seqr-event-meta-left p {
  margin-bottom: 4px !important;
  padding-bottom: 0 !important;
}

/* Spazio sopra riga ECM */
.seqr-event-ecm-info {
  margin-top: 14px !important;
}

/* Icone nei titoli sezione */
.seqr-event-meta-left .seqr-event-heading-when,
.seqr-event-meta-right h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seqr-event-meta-left .seqr-event-heading-when::before {
  content: "📅";
  font-size: 18px;
  line-height: 1;
}

.seqr-event-meta-right h3:first-of-type::before {
  content: "📍";
  font-size: 18px;
  line-height: 1;
}

/* Luogo in bold */
.seqr-event-meta-right p {
  font-weight: 600 !important;
}


/* ============================================================
   TIPOLOGIA EVENTO
   ============================================================ */

.seqr-event-layout .seqr-event-meta-grid ul,
.seqr-event-layout .seqr-event-meta-grid ol {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin: 10px 0 0 0 !important;
}

.seqr-event-layout .seqr-event-meta-grid li {
  background: none !important;
  padding-left: 0 !important;
  margin: 0 0 10px 0 !important;
  text-indent: 0 !important;
}

.seqr-event-layout .seqr-event-meta-grid li::marker,
.seqr-event-layout .seqr-event-meta-grid li::before {
  content: "" !important;
  display: none !important;
}

.seqr-event-meta-grid ul li a[href*="/categoria-evento/ecm-2026/"],
.seqr-event-meta-grid ul li a[href*="/categoria-evento/no-ecm/"] {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  text-decoration: none !important;
}

.seqr-event-meta-grid ul li a[href*="/categoria-evento/ecm-2026/"] {
  background: #d18b1d;
  color: #111 !important;
}

.seqr-event-meta-grid ul li a[href*="/categoria-evento/no-ecm/"] {
  background: #e5e7eb;
  color: #111 !important;
}

.seqr-event-meta-grid ul li a:not([href*="/categoria-evento/ecm-2026/"]):not([href*="/categoria-evento/no-ecm/"]) {
  font-size: 15px;
  font-weight: 500;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all .2s ease;
}

.seqr-event-meta-grid ul li a:hover {
  opacity: 0.6;
}


/* ============================================================
   PULSANTE SCARICA PROGRAMMA
   ============================================================ */

.seqr-event-layout a[href*="programma"],
.seqr-event-layout a[style*="background:#d18b1d"] {
  background: #e5e7eb !important;
  color: #111 !important;
  border-radius: 999px !important;
  padding: 6px 24px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .3px !important;
  text-decoration: none !important;
}

.seqr-event-layout a[style*="background:#d18b1d"]:hover {
  background: #d18b1d !important;
  color: #111 !important;
}


/* ============================================================
   RIMUOVI BULLET — singola pagina evento
   ============================================================ */

body.single-evento ul,
body.single-evento ol {
  list-style-type: none !important;
  list-style-image: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

body.single-evento li {
  list-style-type: none !important;
  list-style-image: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

body.single-evento li::marker,
body.single-evento li::before {
  content: "" !important;
  display: none !important;
}


/* ============================================================
   MOBILE — scheda evento
   ============================================================ */

@media (max-width: 767px) {

  .seqr-event-meta-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 16px !important;
    margin-bottom: 18px !important;
  }

  .seqr-event-meta-left,
  .seqr-event-meta-right {
    display: contents !important;
  }

  .seqr-event-heading-when      { order: 1; }
  .seqr-event-subheading-when   { order: 2; }
  .seqr-event-heading-when ~ p  { order: 3; }
  .seqr-event-heading-where     { order: 10; }
  .seqr-event-subheading-where  { order: 11; }
  .seqr-event-heading-where ~ p { order: 12; }
  .seqr-event-heading-type      { order: 20; }
  .seqr-event-heading-type ~ ul { order: 21; }
  .seqr-event-heading-type ~ p  { order: 21; }
  .seqr-event-heading-subscribers       { order: 30; }
  .seqr-event-heading-subscribers ~ p   { order: 31; }
  .seqr-event-ecm-info                  { order: 32; }

  .seqr-event-layout .seqr-event-meta-grid h3 {
    font-size: 20px !important;
    line-height: 1.1 !important;
    margin: 0 0 6px !important;
  }

  .seqr-event-layout .seqr-event-meta-grid h5 {
    display: none !important;
  }

  .seqr-event-layout .seqr-event-meta-grid p {
    font-size: 15px !important;
    line-height: 1.40 !important;
    margin: 0 0 6px !important;
  }

  .seqr-event-layout .seqr-event-meta-grid > div {
    margin-bottom: 10px !important;
  }
}


/* ============================================================
   CALENDARIO EVENTI
   ============================================================ */

.seqr-calendar {
  max-width: 1100px;
  margin: 0 auto 40px;
  font-size: 14px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.seqr-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

.seqr-cal-title {
  font-size: 22px;
  font-weight: 700;
}

.seqr-cal-nav {
  text-decoration: none;
  font-size: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111;
  line-height: 1;
}

.seqr-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.seqr-cal-cell {
  min-height: 120px;
  border-radius: 18px;
  background: #f9fafb;
  padding: 8px 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.seqr-cal-cell-head {
  min-height: auto;
  background: transparent;
  text-align: center;
  font-weight: 600;
  color: #6b7280;
}

.seqr-cal-cell-empty {
  background: transparent;
}

.seqr-cal-day-number {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
}

.seqr-cal-events {
  list-style: none;
  margin: 0;
  padding: 0;
}

.seqr-cal-event {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 6px 0;
}

.seqr-calendar .seqr-cal-events li::before,
.seqr-calendar .seqr-cal-events li::marker {
  content: "" !important;
  display: none !important;
}

.seqr-cal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 3px;
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  box-shadow: none !important;
}

.seqr-badge-ecm,
.seqr-calendar .seqr-badge-ecm {
  background: #d18b1d;
  color: #111;
}

.seqr-calendar .seqr-badge-ecm {
  position: static !important;
  box-shadow: none !important;
  color: #111;
}

.seqr-badge-noecm,
.seqr-calendar .seqr-badge-noecm {
  background: #e5e7eb;
  color: #111;
  position: static !important;
  box-shadow: none !important;
}

.seqr-cal-events a {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600  ;
  color: #111 !important;
  text-decoration: none;
}

.seqr-cal-events a:hover {
  text-decoration: underline;
}

.seqr-cal-events a::before {
  content: "";
}

@media (max-width: 768px) {

  .seqr-calendar {
    max-width: 100%;
    padding: 0 16px 24px;
  }

  .seqr-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .seqr-calendar-grid .seqr-cal-cell-head,
  .seqr-calendar-grid .seqr-cal-cell-empty {
    display: none;
  }

  .seqr-calendar-grid .seqr-cal-cell-day:not(:has(.seqr-cal-events)) {
    display: none;
  }

  .seqr-cal-cell {
    min-height: 120px;
    border-radius: 20px;
    padding: 10px 12px;
  }

  .seqr-cal-day-number {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
  }

  .seqr-calendar .seqr-cal-badge {
    font-size: 10px;
    padding: 2px 8px;
    margin-bottom: 3px;
  }

  .seqr-calendar .seqr-cal-events a {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
  }
}

.single-evento .post-featured-img img,
.single-evento span.post-featured-img img,
.single-evento img.wp-post-image {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
}

.seqr-event-card a[style*="background"] {
  background: #e5e7eb !important;
  color: #111 !important;
  border-radius: 999px !important;
}

.seqr-event-card a[style*="background"]:hover {
  background: #d18b1d !important;
  color: #fff !important;
}

.seqr-calendar .seqr-badge-ecm {
    background-color: #d88a1c !important;
    color: #fff !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    padding: 6px 18px !important;
    height: auto !important;
    width: auto !important;

    border-radius: 999px;
    
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;

    margin: 8px 0;
}