/* Stile per la griglia degli eventi */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.event-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.event-box:hover {
    transform: translateY(-5px);
}

.event-box h3 {
    margin: 10px 0;
    color: #333;
}

.event-box p {
    color: #666;
    font-size: 14px;
}

.event-box a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.event-box a:hover {
    background: #005177;
}

/* Stile per il meteo */
.wpem-weather {
    text-align: center;
    margin-top: 15px;
    background: #bfb8dd;
    border-radius: 5px;
    color: #000;
    padding-top: 18px;
}

.wpem-weather img {
    width: 50px;
    height: 50px;
    margin-top: 5px;
}

/* Stile per il pulsante WhatsApp */
.wpem-whatsapp-button {
    display: flex;
    align-items: center;
    background: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    justify-content: center;
    margin-top: 15px;
}

.wpem-whatsapp-button img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}
/* Stile generale della pagina evento */
.single-event-container {
    display: grid;
    grid-template-columns: 70% 30%; /* 70% contenuto evento, 30% sidebar */
    gap: 20px;
    max-width: 1200px;
    margin: 50px auto;
}

.event-sidebar h3 {font-size:15px; padding: 20px 0 20px 0;}

/* Contenuto Principale */
.event-main {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
}

/* Stile per l'immagine in evidenza */
.event-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 3px;
    margin-bottom: 15px;
}

/* Stile per la descrizione */
.event-description {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: justify;
}

/* Sidebar */
.event-sidebar {
    background: #f8f7f3;
    padding: 20px;
    border-radius: 8px;
    align-self: start; /* Mantiene la sidebar allineata */
    margin-top:20px;
    width: 100%!important;
}


.event-sidebar before {margin-right: 10px;}

/* Stile per i dettagli evento in colonna */
.event-details p {
    font-size: 16px;
    color: #444;
    padding: 16px 0px 16px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.event-details p:last-child {
    /*border-bottom: none;*/
}

/* Stile del form di iscrizione */
.wpem-register-form {
    background: #fbfafa;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
}

.wpem-register-form label {
    display: block;
    font-weight: bold;
    margin: 10px 0 5px;
}

.wpem-register-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.wpem-register-form button {
    background-color: #0073aa;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    width: 100%;
}

.wpem-register-form button:hover {
    background-color: #005177;
}

/* Stile pulsante WhatsApp */
.whatsapp-button {
    display: block;
    background-color: #25d366;
    color: white;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.whatsapp-button:hover {
    background-color: #1ebe57;
}

/* Stile per il box di condivisione social */
.social-share {
    text-align: center;
    margin-top: 20px;
}

.social-share p {
    font-weight: bold;
    margin-bottom: 10px;
}

.social-share a {
    display: inline-block;
    margin: 5px;
    padding: 8px 12px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.social-share a:hover {
    background: #005177;
}

/* Stile per il countdown */
.event-countdown {
    font-size: 20px;
    text-align: center;
    padding: 15px;
    background: #9b95b100;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: bold;
    color: #ffffff;
}


/* Stile per il countdown */
.event-countdown {
    font-size: 18px;
    font-weight: bold;
    color: #393646;
    text-align: center;
    margin-top: 10px;
    border: 1px solid #eee;
}

/* Stile per la FAQ in accordion */
.wpem-faq {
    max-width: 800px;
    margin: 20px auto;
}

.wpem-faq-item {
    border-bottom: 1px solid #ddd;
    padding: 10px;
}

.wpem-faq-question {
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

.wpem-faq-question::after {
    content: '▼';
    font-size: 14px;
    position: absolute;
    right: 10px;
}

.wpem-faq-answer {
    display: none;
    padding: 10px;
    background: #f9f9f9;
}

.wpem-agreement {
    margin-top: 10px;
    font-size: 14px;
}

.wpem-agreement label {
    display: flex;
    align-items: center;
}

.wpem-agreement input[type="checkbox"] {
    margin-right: 5px;
    width: auto;
}


/*add calendar*/
.event-calendar-buttons {
    margin-top: 20px;
    text-align: center;
}

.calendar-button {
    display: block;
    margin: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: #000000;
    background-color: #bfb8dd;
    border-radius: 5px;
    font-size: 16px;
}

.calendar-button:hover {
    background-color: #393646;
    color:#ffffff;
}

.google-calendar {
    background-color: #34a85300;
    border: solid 1px #ccc;
}

.ical {
    background-color: #ffffff00;
    border:solid 1px #ccc;
}

.social-share {
    text-align: center;
    margin-top: 20px;
}

.social-share a {
    display: inline-block;
    margin: 0 5px;
    text-decoration: none;
}

.social-share img {
    width: 32px; /* Regola la dimensione delle icone */
    height: 32px;
    transition: transform 0.3s ease;
}

.social-share img:hover {
    transform: scale(1.2);
}

.social-share i {
    font-size: 24px; /* Dimensione delle icone Font Awesome */
    color: #2b2a37; /* Colore icone */
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-share i:hover {
    color: #007bff;
    transform: scale(1.2);
}

/*FAQ eventi*/

.wpem-faq-section {
    margin-top: 20px;
}
.wpem-faq-question {
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    color: #393646;
}
.wpem-faq-answer {
    display: none;
    padding: 10px;
    background-color: #ffffff;
    border-left: 3px solid #0073aa;
    margin-bottom: 10px;
}
.wpem-faq-answer.active {
    display: block;
}


/* Griglia Eventi */
.wpem-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Maggiore spazio per ogni box */
    gap: 20px;
    padding: 20px;
}

/* Box Evento */
.wpem-event-box {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.wpem-event-box:hover {
    transform: scale(1.03);
}

/* Immagine Evento */
.wpem-event-image img {
    width: 100%;
    height: 180px; /* Altezza uniforme per tutte le immagini */
    object-fit: cover;
}

/* Contenuto Evento */
.wpem-event-content {
    padding: 15px;
    text-align: center;
}

/* Titolo Evento */
.wpem-event-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Se il titolo è troppo lungo, mostra "..." */
    max-width: 90%;
}

/* Informazioni Dettagliate */
.wpem-event-meta {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
    display: flex;
    align-items: left;
    justify-content: left;
    gap: 8px;
}

.wpem-event-meta i {
    color: #ff6600;
}

/* Prezzo Evento */
.wpem-event-price {
    font-size: 16px;
    font-weight: bold;
    color: #27ae60;
    margin-top: 10px;
}

/* Bottone di Dettaglio */
.wpem-event-button {
    display: block;
    text-align: center;
    background-color: #007bff;
    color: #fff;
    padding: 10px;
    margin: 15px auto 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    width: 80%;
    transition: background 0.3s;
}

.wpem-event-button:hover {
    background-color: #0056b3;
}

.wpem-payment-icons {
    margin-top: 15px;
    text-align: center;
}

.wpem-payment-logos {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.wpem-payment-logos img {
    height: 40px;
    width: auto;
}




/* Stili Responsive */
@media screen and (max-width: 768px) {
    .wpem-event-grid {
        grid-template-columns: 1fr!important; /* Un evento per riga su schermi piccoli */
    }

    .wpem-event-title {
        font-size: 16px; /* Adatta il titolo su dispositivi piccoli */
    }
    /* Adatta i colori e le dimensioni del testo al tema */
:root {
    --wpem-primary-color: var(--wp--preset--color--primary, #0073aa);
    --wpem-text-color: var(--wp--preset--color--text, #333);
}

/* Titoli e testi */
.event-title {
    font-size: var(--wp--preset--font-size--large, 24px);
    color: var(--wpem-primary-color);
}

.event-description {
    font-size: var(--wp--preset--font-size--small, 16px);
    color: var(--wpem-text-color);
}

/* Bottone */
.wpem-register-form button {
    background-color: var(--wpem-primary-color);
    color: white;
}

        .single-event-container {
        grid-template-columns: 1fr;
    }
    .event-sidebar {
        margin-top: 20px;
    }
}
