/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

@media screen and (max-width:767px)
{
	.nobr-mobile br{display:none;}
}

/* TAG SOPRA AI TITOLI */

.tag-green p{background:#7DAF85;
border-radius:8px;
display:inline-block;
margin-bottom:0;
font-size:18px;
padding:8px 12px 8px 12px;}

.tag-green.tag-dark-green p{background:#deecdd;}

.tag-orange p{background:#fef2e4;
border-radius:8px;
display:inline-block;
margin-bottom:0;
font-size:18px;
padding:8px 12px 8px 12px;}


/* BADGE SHORTDATE EVENTI */

/* Badge data (alto dx) */
.event-date-badge{
  width: 50px;
  height: 50px;
  border-radius: 0 0 10px 10px;
  background: #7DAF85; 
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1;
}

/* elimina margini di default dei Text Editor */
.event-date-badge p{
  margin: 0;
}

/* giorno */
.event-date-badge .day{
  font-size: 16px;
  font-weight: 700;
  color:#fff;
}


/* CARD EVENTI */
.card-event-carousel {
  background: #fff;
  border-radius: 10px;
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.04);
}

/* mese */
.event-date-badge .month{
  margin-top: 4px;
  font-size: 10px !important;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color:#fff;
}

/* img */
.event-img img{border-radius:10px;}

/* modifiche al carousel per non tagliare le ombre */
.elementor-loop-container .swiper-slide {
  padding: 18px;
  box-sizing: border-box;
}

.elementor-loop-container .swiper-slide .e-loop-item,
.elementor-loop-container .swiper-slide .elementor {
  margin: -18px;
}



/* La card deve poter “riempire” la slide */
.elementor-loop-container .swiper-slide {
  display: flex;
}

.elementor-loop-container .swiper-slide > * {
  height: 100%;
}

/* card */
.card-event-carousel {
  height: 100%;
}

/* QUESTO è il vero wrapper immagine+contenuti */
.card-event-carousel .event-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* contenuti devono crescere per creare spazio */
.card-event-carousel .event-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* CTA spinto in fondo */
.card-event-carousel .event-card-cta-wrap {
  margin-top: auto;
}

/* blocca l'area immagine a un'altezza costante */
.card-event-carousel .event-img{
  height: 300px;          /* scegli tu: 200/220/240 */
  overflow: hidden;
  border-radius: 10px; /* se vuoi seguire la card */
}

/* l'immagine riempie e taglia se serve */
.card-event-carousel .event-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SCHEDA DETTAGLIO EVENTO */
/*.event-featured-scheda img{
    width: 100%;
    height: 480px;          
    object-fit: cover;
    object-position: center top; 
    display: block;
} */

/* Liste nella descrizione evento */
.description-excerpt{font-family:"Kumbh Sans", sans-serif;
font-size:13px;
text-align:left !important;}

.description-excerpt p,
.description-excerpt ul,
.description-excerpt ol{text-align:left;}



/* Singoli elementi */
.event-description li {
    line-height: 1.6;               
    margin-bottom: 0.4em;
}

/* PAGINAZIONE ARCHIVIO EVENTI */

.elementor-pagination{margin-top:50px;}

/* Wrapper paginazione */
.paginazione-archivio .elementor-pagination {
    display: flex;
    gap: 15px;
    align-items: center;
	justify-content: center;
}

/* Tutti i numeri */
.paginazione-archivio .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    font-size: 14px;
    text-decoration: none;
    border-radius: 50%;
    color: #000;
}

/* Pagina corrente */
.paginazione-archivio .page-numbers.current {
    background-color: #F7921E; /* arancione */
    color: #fff;
    font-weight: 600;
}

/* Hover sulle altre */
.paginazione-archivio a.page-numbers:hover {
    background-color: rgba(255, 122, 0, 0.15);
}


/* estratto descrizione carousel e archivio */

.description-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;      /* numero di righe */
    -webkit-box-orient: vertical;
    overflow: hidden;

    line-height: 1.5;
    max-height: calc(1.5em * 2); /* line-height × righe */
}

.description-excerpt br{
  display: none;          /* evita righe "vuote" che falsano il clamp */
}

/* opzionale: se ci sono liste dentro */
.description-excerpt ul,
.description-excerpt ol{
  margin: 0;
  padding-left: 1.2em;
}
.description-excerpt li{
  margin: 0;
}


/* QUFORM */

.nolabel label{display:none !important;}

/* Placeholder Quform */
.quform ::-webkit-input-placeholder {
  color: #b3b3b3;
  font-size: 14px;
}

.quform :-ms-input-placeholder {
  color: #b3b3b3;
  font-size: 14px;
}

.quform ::placeholder {
  color: #b3b3b3;
  font-size: 14px;
  opacity: 1;
}

.quform-1 .quform-button-submit button{padding:15px 30px 15px 30px;}

.quform-2 .quform-button-submit button{margin-top:-4px;}

.quform-1 .quform-button-submit-default{float:right !important;}


/* menu mobile */
.dialog-close-button.dialog-lightbox-close-button{-webkit-tap-highlight-color: transparent !important;}

@media (hover: none) {
  .elementor-popup-modal .dialog-close-button:focus {
    outline: none !important;
  }
}
