/* 
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.7
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 */

/** EVENT CARDS **/
.villa-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.villa-event-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    background: #17211d;
    color: white;
    transition: all .3s ease;
}
.villa-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
.villa-event-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}
.villa-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.villa-event-card:hover img {
    transform: scale(1.1);
}
.villa-event-date-badge {
    position: absolute;
    left: 16px;
    top: 16px;
    height: 56px;
    width: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: rgba(255,255,255,0.92);
    color: #000;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.villa-event-past {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
}
.villa-event-past span {
    background: rgba(0,0,0,0.75);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
}
.villa-event-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.villa-event-body h3 {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.villa-event-body,
.villa-event-footer {
    color: rgba(255,255,255,0.92);
}
.villa-event-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.villa-event-footer a{
    display:inline-block;
    background:white;
    color: #006f66;
    padding: 8px 16px;
    border-radius:999px;
    font-weight: 800;
    text-decoration: none;
}

.villa-events-swiper .swiper-button-prev,
.villa-events-swiper .swiper-button-next {
    background: #fff;
    border-radius: 999px;
    height: 40px;
    transition: all 200ms ease;
    width: 40px;
}

.villa-events-swiper .swiper-button-prev:hover,
.villa-events-swiper .swiper-button-next:hover {
    filter: brightness(0.9);
    transform: scale(0.94);
}

.villa-events-swiper .swiper-button-disabled {
    opacity: 0;
}

.villa-events-swiper .swiper-button-prev::after,
.villa-events-swiper .swiper-button-next::after {
    font-size: 18px !important;
}


/** LOADMORE **/
#villa-events-loadmore {
    display: block;
    margin: 40px auto;
    padding: 12px 28px;
    background: #222;
    color: white;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s ease;
    border: none;
}

#villa-events-loadmore:hover {
    background: #444;
}

#villa-events-loadmore:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.villa-event-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.villa-event-landing-button {
    align-items: center;
    appearance: none;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 999px;
    color: #09090b;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    justify-content: center;
    line-height: 1;
    min-height: 36px;
    padding: 0 14px;
    text-decoration: none;
}

.villa-event-landing-button:hover,
.villa-event-landing-button:focus {
    background: #fafafa;
    border-color: #fafafa;
    color: #09090b;
}

.tribe-events .villa-event-landing-button,
.tribe-common .villa-event-landing-button {
    background: #09090b;
    border-color: #09090b;
    color: #fff;
    margin-top: 10px;
}

.tribe-events .villa-event-landing-button:hover,
.tribe-common .villa-event-landing-button:hover,
.tribe-events .villa-event-landing-button:focus,
.tribe-common .villa-event-landing-button:focus {
    background: #27272a;
    border-color: #27272a;
    color: #fff;
}

.villa-landing-modal[hidden] {
    display: none;
}

.villa-landing-modal {
    inset: 0;
    position: fixed;
    z-index: 1000000;
}

.villa-landing-modal__overlay {
    background: rgba(9, 9, 11, 0.66);
    inset: 0;
    position: absolute;
}

.villa-landing-modal__dialog {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: min(92vh, 980px);
    inset: 4vh clamp(10px, 4vw, 56px);
    overflow: hidden;
    position: absolute;
}

.villa-landing-modal__bar {
    align-items: center;
    border-bottom: 1px solid #e4e4e7;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 54px;
    padding: 10px 12px 10px 16px;
}

.villa-landing-modal__title {
    color: #09090b;
    font-size: 14px;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.villa-landing-modal__open {
    color: #006f66;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.villa-landing-modal__close {
    align-items: center;
    appearance: none;
    background: #09090b;
    border: 1px solid #09090b;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 22px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 34px;
}

.villa-landing-modal__frame {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

body.villa-landing-modal-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .villa-landing-modal__dialog {
        border-radius: 0;
        height: 100%;
        inset: 0;
    }

    .villa-landing-modal__bar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .villa-landing-modal__open {
        display: none;
    }
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout #payment #place_order {
    background: black !important;
    padding: 0;
	color: white!important;	
}


/* Pulsante Procedi al pagamento - carrello */
.wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    background: black !important;
    color: white !important;
    padding: 15px 20px !important;
    text-align: center;
    font-size: 1em;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin-top: 10px;
    box-sizing: border-box;
}

.wc-proceed-to-checkout a.checkout-button:hover {
    background: #333 !important;
    color: white !important;
}