/* 
============================================================================================================================
Ad ogni modifica,AGGIORNARE LA VERSIONE DI 
define ( 'RSCAS_EVENT_EVENT_HIGHLIGHT_TEMPLATE_CSS_VERSION', '1.0.1'); 
in ../config.php ogni volta che si modifica questo file, per forzare il refresh del css in caso di modifiche 
============================================================================================================================
*/

.content-container {
  width: 100% !important; /* For testing, remove in prod */
}

.detail-page {
  width: 100% !important; /* For testing, remove in prod */
}

.rscas-event-header-image-container {
  width: 100%;
  position: relative;
  max-height: 500px;
  overflow: hidden;
  border-radius: 20px;
}

.rscas-event-header-image-container img {
  -o-object-fit: cover;
  object-fit: cover;
}

.rscas-event-header-image {
  width: 100%;
  height: 258px;
  border-radius: 20px;
}

.rscas-event-title-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  color: #091540;
}

.rscas-event-title {
  width: 90%;
  float: left;
  margin-top: 80px;
}

.rscas-event-category {
  width: 10%;
  float: left;
  text-align: right;
}

.rscas-event-category span {
  background-color: #e2e2e2;
  color: #091540;
  font-size: 14px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 20px;
  position: absolute;
  left: 0px;
  top: 30px;
}

.rscas-event-card-category span {
  background-color: #e2e2e2;
  color: #091540;
  font-size: 14px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 20px;
}

.rscas-event-content-container {
  width: 100%;
  overflow: hidden;
  color: #091540;
}

.rscas-event-content-container h1,
.rscas-event-content-container h2,
.rscas-event-content-container h3,
.rscas-event-content-container h4,
.rscas-event-content-container h5,
.rscas-event-content-container h6 {
  color: #091540;
}

.rscas-event-detail-box {
  width: 35%;
  float: left;

  .rscas-event-detail-box-date {
    font-family: "Inter", Sans-serif;
  }
}

.rscas-event-main-box {
  width: 65%;
  float: left;
}

.rscas-event-main-box h3 {
  padding-top: 3rem;
  font-size: 20px;
  font-weight: 700;
}

.rscas-event-subscribe-box {
  width: 100%;
  background-color: #091540;
  border-radius: 20px;
  overflow: hidden;
  padding: 40px;
  display: flex;
  margin: 40px auto;
}

.rscas-event-subscribe-text {
  width: 65%;
  padding-right: 5%;
  float: left;
  font-size: 39px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rscas-event-subscribe-text h2 {
  font-family: "Raleway", Sans-serif;
  font-weight: 600;
  line-height: 1.2em;
  letter-spacing: 0px;
  color: white;
}

.rscas-event-subscribe-link {
  padding-top: 25px;
}

.rscas-event-subscribe-link a {
  font-size: 16px;
  color: white;
  text-decoration: underline;
  text-transform: uppercase;
}

.rscas-event-subscribe-image-box {
  width: 35%;
  border-radius: 12px;
  float: left;
}

.rscas-event-subscribe-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 2.6;
  border-radius: 12px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.rscas-event-card-body .rscas-event-register-link,
.rscas-event-detail-box .rscas-event-register-link {
  font-weight: bold;
  text-decoration: underline;
}

.rscas-event-title-divider {
  margin: 2rem 0;
  border-top: 1px solid #091540;
}

.rscas-event-main-box p {
  margin-bottom: 1rem;
}

@media (max-width: 1023px) {
  .rscas-event-subscribe-box {
    flex-direction: column;
  }

  .rscas-event-subscribe-text {
    width: 100%;
  }

  .rscas-event-subscribe-image-box {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .rscas-event-detail-box {
    width: 100%;
  }

  .rscas-event-main-box {
    width: 100%;
  }
}

.rscas-event-card-body {
  padding: 40px 20px;
  position: relative;
  bottom: 40px;
  background: white;
  border-radius: 20px;
  margin-bottom: -40px;
}

.rscas-event-card {
  margin: auto;
  border-radius: 22px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.rscas-event-card:hover {
  border-color: #b8f2e6;
}

.rscas-event-card-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
  text-align: left;
  padding: 20px 0;
}

.rscas-event-card-date {
  font-size: 18px;
  font-family: "Inter", Sans-serif;
  color: #a5be00;
  border-top: 1px solid #d6d6d6;
  margin-top: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.rscas-event-card-header-image-container {
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
}

/* .rscas-event-card-header-image {
    border-radius: 20px;
    margin-top: -80px;
} */

.rscas-event-card-header-image-container img,
.rscas-event-card-header-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill container, crop if needed */
  object-position: center 30%; /* shift crop slightly upward */
  display: block;
  margin-top: 0; /* remove previous negative margin */
  border-radius: 0; /* container handles rounding */
}

.rscas-event-card-title a {
  text-decoration: none;
}

.rscas-event-card-short-desc {
  margin-bottom: 20px;
}

.rscas-event-card-place {
  font-size: 14px;
}

.rscas-back-to-search-button {
  font-size: 20px;
  font-weight: 600;
  line-height: 22px;
  text-align: left;
}

a.rscas-back-to-search-button,
a.rscas-back-to-search-button:hover,
p a.rscas-back-to-search-button:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------------------------------ */

/* 
============================================================================================================================
Ad ogni modifica,AGGIORNARE LA VERSIONE DI 
define ( 'RSCAS_EVENT_EVENT_HIGHLIGHT_TEMPLATE_CSS_VERSION', '1.0.1'); 
in ../config.php ogni volta che si modifica questo file, per forzare il refresh del css in caso di modifiche 
============================================================================================================================
*/

/* ------------------------------------------------------------------------------------------ */

/* 'event-small' card container */
.rscas-event-small-card {
  align-self: stretch;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  /* align-items: center; */
  padding: 14px;
  border-radius: 10px;
  background-color: transparent;
  transition: background-color 0.2s ease;
  text-decoration: none; /* remove underline */
  color: inherit; /* keep normal text color */
}

.rscas-event-small-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* category left + place right */
.rscas-event-small-card-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

/* left block: image + tag */
.rscas-event-small-card-media {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center; /* ✅ vertical alignment inside itself */
  gap: 8px;
  flex-shrink: 0;
}

/* square image */
.rscas-event-small-card-media img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* grey rounded rectangle under image */
.rscas-event-small-card-tag {
  background-color: #e5e7eb;
  color: #4b5563;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: Arial, sans-serif;
}

/* right content */
.rscas-event-small-card-content {
  flex: 1;
}

/* title */
.rscas-event-small-card-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  text-align: left;
  padding: 2px 0;
  color: #fff;
  transition: color 0.4s ease;
}

/* title becomes green when hovering the whole card */
a.rscas-event-small-card:hover .rscas-event-small-card-title {
  color: #a5be00; /* choose your preferred green */
}

/* description */
.rscas-event-small-card-description {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.35;
  color: #6b7280;
}

.rscas-event-small-card-category span {
  background-color: #e2e2e2;
  color: #091540;
  font-size: 12px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 20px;
  /* white-space: nowrap; */
}

.rscas-event-small-card-short-desc {
  margin-bottom: 0;
  font-size: 14px;
  color: #fff;
}

.rscas-event-small-card-date {
  font-size: 14px;
  font-family: "Inter", Sans-serif;
  color: #a5be00;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.rscas-event-small-card-place {
  font-size: 12px;
  color: #e5e7eb;
}

/* ↓ 1000px and below: put place under category */
@media (max-width: 1000px) {
  .rscas-event-small-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .rscas-event-small-card-place {
    margin-left: 0;
    text-align: left;
    white-space: normal;
  }
}

/* ↓ 1000px and below: put place under category */
@media (max-width: 768px) {
  .rscas-event-small-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .rscas-event-small-card-place {
    margin-left: 0;
    text-align: left;
    white-space: normal;
  }
}

.rscas-event-small-card-separator {
  display: none;
  border: none;
}

@media (max-width: 768px) {
  .rscas-event-small-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: -16px;
  }

  .rscas-event-small-card-media {
    width: 100%;
    min-height: 150px;
    max-height: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .rscas-event-small-card-media img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center center;
    display: block;
  }

  .rscas-event-small-card-content {
    width: 100%;
  }

  .rscas-event-small-card-separator {
    display: block;
    height: 1px;
    /* width: 80%; */
    margin: 18px auto !important;
    background: rgba(255, 255, 255, 0.3) !important;
  }

  .elementor-widget:last-child .rscas-event-small-card-separator {
    display: none;
  }
}

/* 
============================================================================================================================
Ad ogni modifica,AGGIORNARE LA VERSIONE DI 
define ( 'RSCAS_EVENT_EVENT_HIGHLIGHT_TEMPLATE_CSS_VERSION', '1.0.1'); 
in ../config.php ogni volta che si modifica questo file, per forzare il refresh del css in caso di modifiche 
============================================================================================================================
*/

/* DA METTERE DIRETTAMENTE CON ELEMENTOR NEI CUSTOM CSS DELLE PAGINE EVENTO, PER EVITARE CHE INFLUENZI ALTRE PAGINE 
.elementor-shortcode {
    height: 100%;
}

.elementor-widget-container {
    height: 100%;
}
*/
