/* GENERALI */
/* === Futura PT Bold Oblique (Bold Italic) === */
@font-face {
  font-family: 'Futura PT';
  src: url('/wp-content/themes/tuo-tema-child/assets/fonts/futuraptboldoblique.woff2') format('woff2');
  font-weight: 700; /* bold */
  font-style: italic;
  font-display: swap;
}

/* === Netto OT Bold === */
@font-face {
  font-family: 'Netto OT';
  src: url('/wp-content/themes/tuo-tema-child/assets/fonts/NettoOT-Bold.woff2') format('woff2');
  font-weight: 700; /* bold */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FuturaCyrillicMedium';
  src: url('/wp-content/themes/tuo-tema-child/assets/fonts/FuturaCyrillicMedium.woff') format('woff2');
  font-weight: 500; /* bold */
  font-style: normal;
  font-display: swap;
}

/* SWIPER */
.swiper-container {
    overflow: hidden;
    padding-bottom: 30px;
}
.swiper-slide {
    display: flex;
    justify-content: center;
}

/* CARD EVENTO */
.ep-event-card {
    position: relative;
    background: #fff;
    border-radius: 0px;
    overflow: hidden;
    width: 100%;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    -ms-border-radius: 0px;
    -o-border-radius: 0px;
}

/* IMMAGINE */
.ep-event-image {
    position: relative;
}
.ep-event-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* OVERLAY */
.ep-event-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
    border-top: 1px solid #eee;
}
/* .ep-event-card:hover .ep-event-overlay {
    transform: translateY(0);
} */

/* Mobile: overlay sempre visibile */
@media (max-width: 768px) {
    .ep-event-overlay {
        position: relative;
        transform: translateY(0) !important;
        border-top: none;
        display: none;
    }
}

/* CONTENUTO OVERLAY */
.ep-overlay-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ep-sessioni-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ep-sessioni-list li {
    font-size: 14px;
    margin-bottom: 4px;
    color: #444;
}

/* BOTTONI */
.ep-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ep-book-button,
.ep-detail-button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}
.ep-book-button {
    background: #e91e63;
    color: white;
}
.ep-book-button:hover {
    background: #d81b60;
}
.ep-detail-button {
    background: #009688;
    color: white;
}
.ep-detail-button:hover {
    background: #00796b;
}

/* INFO EVENTO */
.ep-event-info {
    background: #00000036;
    color: black;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    padding: 15% 45% 10% 10%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.ep-event-info h3 {
    font-size: 30px;
    color: white;
    margin-block: 30px;
}

.ep-category {
    font-size: 20px;
    line-height: 20px;
    color: #ffffff;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0px;
    font-weight: bold;
    margin-bottom: 10px;
}
h3.titoloEvento{
    font-size: 30px;
    color: white;
    margin-block: 33px;
    background-color: black;
    display: inline;
}
.ep-location-date {
    display: block;
    font-size: 20px;
    line-height: 20px;
    color: black;
    margin-top: 10px;
    background-color: white;
    width: fit-content;
}

.ep-partecipa a{
    font-size: 20px;
    color: #47d1cc;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10%;
}
.ep-partecipa a:hover{
    text-decoration: none;
}
.ep-sessioni-list li{
    color: white;
    background-color: red;
    display: inline;
    padding: 4px;
}

/* =========================== */
/*          MODALE             */
/* =========================== */

.ep-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    /* align-items: center; */
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.ep-modal-content {
    background: #fff;
    max-width: 600px;
    width: 90%;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    animation: fadeInModal 0.3s ease;
    top: 18%;
    height: 73vh;
    overflow: auto;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); */
}

.ep-close-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}
.ep-close-modal:hover {
    color: #e91e63;
}

/* Form nel modale */
.ep-modal-content form input,
.ep-modal-content form select,
.ep-modal-content form button {
    width: 100%;
    height: 100%;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
}
.ep-modal-content form button {
    background: #e91e63;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
}
.ep-modal-content form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* --- Responsive override per .ep-event-info --- */
.ep-event-info{
  /* evita che il padding faccia “esplodere” il box */
  box-sizing: border-box;
  /* cap al padding enorme a destra: al massimo 12vw (prima era 45%) */
  padding-right: min(45%, 5vw);
  /* padding top/bottom e sinistra fluidi */
  padding-top: clamp(12px, 6vh, 64px);
  padding-bottom: clamp(12px, 6vh, 48px);
  padding-left: clamp(12px, 5vw, 48px);

  /* se il contenuto supera l’altezza, scrolla internamente invece di uscire */
  overflow: auto;
  min-width: 0;
}

/* tipografia fluida e anti-overflow dentro l’overlay */
.ep-event-info *{
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* titoli e testi: font che si adattano */
.ep-event-info h3,
h3.titoloEvento{
  font-size: clamp(1.125rem, 2.3vw + 0.3rem, 2.175rem);
  line-height: 1.2;
  margin-block: 0.6em;
}

.ep-category,
.ep-location-date,
.ep-partecipa a,
.ep-sessioni-list li{
  font-size: clamp(0.95rem, 1.2vw + 0.3rem, 1.525rem);
  line-height: 1.35;
}

/* il bottone/link non usi gap in % (può esplodere su schermi stretti) */
.ep-partecipa a{
  gap: 0.6rem;
  font-size: clamp(1.65rem, 1.2vw + 0.3rem, 2.325rem);
      background-color: rgba(255, 255, 255, 0.945);
    width: fit-content;
    padding-inline: 5px;
}

/* Breakpoint: riduco ulteriormente i padding su schermi medi */
@media (max-width: 1024px){
  .ep-event-info{
    padding-right: min(32%, 10vw);
    padding-left: clamp(10px, 4vw, 32px);
  }
}

/* Mobile: overlay diventa “non assoluto” per far respirare il contenuto */
@media (max-width: 768px){
  .ep-event-info{
    /* position: static; */         /* non schiaccia sull’immagine */
    width: 100%;
    height: 100%;
    padding: 16px;
    background: rgba(0,0,0,0.22);
    color: #111;
  }
  /* .ep-event-card{
    max-height: 400px;
  } */
  .ep-location-date{
    /* resta leggibile su sfondo chiaro/scuro */
    background: #fff;
    color: #111;
  }
  .colonnaSpazioMobile{
    margin-top: 50px;
  }
  .archive .sezionePrincipaleElencoEventi .sezioneEventi .ep-title{
    padding-right: 0px;
  }
}

/* Schermi molto piccoli: padding minimo */
@media (max-width: 480px){
  .ep-event-info{
    padding: 12px;
  }

/* MODALE FULLSCREEN */
.ep-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.ep-modal-content {
    background: #fff;
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    position: relative;
}

.ep-close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.ep-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.ep-modal-content {
    background: #fff;
    max-width: 600px;
    width: 90%;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    animation: fadeInModal 0.3s ease;
}

.ep-close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

#tab-corso p{
    margin-bottom: 0px;
}
#tab-corso h1,
#tab-corso h2,
#tab-corso h3,
#tab-corso h4,
#tab-corso h5,
#tab-corso h6 {
    margin-bottom: 10px;
    margin-top: 10px;
    font-weight: bold;
}
}


.ep-notice {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  padding: 12px 40px;
  border-radius: 3px;
  font-weight: 600;
  background: #66c0bd;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
  z-index: 10;
  width: 97%;
  text-align: center;
}
.ep-notice-error { background:#fde8e8; color:#4a0d0d; }

