/* ==========================================================
   VC Events — Public CSS
   Delta Solutions Agency · Villa Cavalletti
   ========================================================== */

:root {
    --vce-green:     #6a8f3c;
    --vce-dark:      #2c3e1f;
    --vce-cream:     #f5f5f0;
    --vce-border:    #e0e0d5;
    --vce-text:      #3a3a35;
    --vce-radius:    4px;
    --vce-radius-lg: 8px;
    --vce-shadow:    0 4px 20px rgba(44,62,31,.10);
    --vce-font:      Georgia, 'Times New Roman', serif;
    --vce-sans:      'Helvetica Neue', Arial, sans-serif;
    --vce-transition: .2s ease;
}

/* ── No events ───────────────────────────────────────────────── */
.vce-no-events {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 32px;
}

/* ==========================================================
   CAROUSEL
   ========================================================== */

.vce-carousel-wrapper {
    position: relative;
    padding: 0 0 40px;
}

.vce-swiper {
    padding-bottom: 48px !important;
}

/* Slide */
.vce-slide-inner {
    display: block;
    text-decoration: none;
    border-radius: var(--vce-radius-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--vce-border);
    box-shadow: var(--vce-shadow);
    transition: transform var(--vce-transition), box-shadow var(--vce-transition);
    height: 100%;
}
.vce-slide-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(44,62,31,.15);
}

.vce-slide-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--vce-cream);
    position: relative;
    overflow: hidden;
}
.vce-slide-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(44,62,31,.35) 100%);
}
.vce-slide-image--placeholder { background-color: var(--vce-cream); }

.vce-slide-content {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.vce-slide-date {
    font-family: var(--vce-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--vce-green);
}
.vce-slide-title {
    margin: 0;
    font-family: var(--vce-font);
    font-size: 18px;
    font-weight: normal;
    color: var(--vce-dark);
    line-height: 1.4;
}
.vce-slide-cta {
    margin-top: 4px;
    font-family: var(--vce-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--vce-green);
    letter-spacing: .04em;
}

/* Swiper custom nav */
.vce-btn-prev,
.vce-btn-next {
    color: var(--vce-green) !important;
}
.vce-btn-prev::after,
.vce-btn-next::after { font-size: 20px !important; font-weight: 700; }

.vce-pagination .swiper-pagination-bullet-active { background: var(--vce-green) !important; }

/* ==========================================================
   CALENDAR
   ========================================================== */

.vce-calendar {
    background: #fff;
    border: 1px solid var(--vce-border);
    border-radius: var(--vce-radius-lg);
    overflow: hidden;
    box-shadow: var(--vce-shadow);
    font-family: var(--vce-sans);
    max-width: 720px;
    margin: 0 auto;
    user-select: none;
}

/* Header: month + nav */
.vce-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--vce-dark);
    color: #fff;
}
.vce-cal-title {
    margin: 0;
    font-family: var(--vce-font);
    font-size: 18px;
    font-weight: normal;
    letter-spacing: .03em;
}
.vce-cal-nav {
    background: none;
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--vce-transition);
    line-height: 1;
}
.vce-cal-nav:hover { background: var(--vce-green); border-color: var(--vce-green); }

/* Grid */
.vce-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

/* Day name headers */
.vce-cal-dayname {
    text-align: center;
    padding: 10px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #999;
    background: var(--vce-cream);
    border-bottom: 1px solid var(--vce-border);
}

/* Day cells */
.vce-cal-day {
    min-height: 80px;
    padding: 6px 6px 4px;
    border-right: 1px solid var(--vce-border);
    border-bottom: 1px solid var(--vce-border);
    position: relative;
    background: #fff;
    transition: background var(--vce-transition);
}
.vce-cal-day:nth-child(7n) { border-right: none; }
.vce-cal-day--empty { background: var(--vce-cream); }
.vce-cal-day--today { background: #f0f6e8; }
.vce-cal-day--today .vce-cal-day-num {
    background: var(--vce-green);
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vce-cal-day-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--vce-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

/* Event dot inside calendar cell */
.vce-cal-event-dot {
    background: var(--vce-green);
    border-radius: 3px;
    padding: 2px 5px;
    margin-top: 2px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: background var(--vce-transition);
}
.vce-cal-event-dot:hover { background: var(--vce-dark); }
.vce-cal-event-name {
    display: block;
    font-size: 10px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
    line-height: 1.5;
}

/* Event hover modal */
.vce-cal-modal {
    display: none;
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 1px solid var(--vce-border);
    border-radius: var(--vce-radius-lg);
    box-shadow: 0 8px 32px rgba(44,62,31,.18);
    max-width: 260px;
    min-width: 200px;
    overflow: hidden;
    pointer-events: none;
}
.vce-modal-image img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}
.vce-modal-body {
    padding: 12px 14px 14px;
}
.vce-modal-body h4 {
    margin: 0 0 4px;
    font-family: var(--vce-font);
    font-size: 14px;
    font-weight: normal;
    color: var(--vce-dark);
    line-height: 1.4;
}
.vce-modal-time {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--vce-green);
    font-weight: 600;
    font-family: var(--vce-sans);
}
.vce-modal-link {
    font-size: 12px;
    color: var(--vce-green);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--vce-sans);
}
.vce-modal-link:hover { text-decoration: underline; }

/* ==========================================================
   SINGLE EVENT PAGE
   ========================================================== */

.vce-single-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Header */
.vce-event-header { margin-bottom: 24px; }

.vce-event-badge {
    display: inline-block;
    font-family: var(--vce-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 16px;
}
.vce-event-badge--past { background: #f0f0ec; color: #888; }

.vce-event-when {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 10px;
    font-family: var(--vce-sans);
}
.vce-event-date,
.vce-event-time {
    font-size: 15px;
    font-weight: 600;
    color: var(--vce-green);
    letter-spacing: .02em;
}
.vce-event-location {
    margin: 0 0 14px;
    font-family: var(--vce-sans);
    font-size: 14px;
    color: #666;
}

.vce-event-title {
    font-family: var(--vce-font);
    font-size: clamp(26px, 4vw, 40px);
    font-weight: normal;
    color: var(--vce-dark);
    line-height: 1.25;
    margin: 0;
}

/* Hero image */
.vce-event-hero {
    margin-bottom: 32px;
    border-radius: var(--vce-radius-lg);
    overflow: hidden;
    box-shadow: var(--vce-shadow);
}
.vce-event-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Content */
.vce-event-content {
    font-family: var(--vce-font);
    font-size: 17px;
    line-height: 1.75;
    color: var(--vce-text);
    margin-bottom: 40px;
}
.vce-event-content p { margin-bottom: 1.2em; }
.vce-event-content h2 { font-size: 22px; color: var(--vce-dark); margin: 1.5em 0 .5em; }
.vce-event-content h3 { font-size: 18px; color: var(--vce-dark); }

/* ==========================================================
   SAVE TO CALENDAR
   ========================================================== */

.vce-save-cal {
    background: var(--vce-cream);
    border: 1px solid var(--vce-border);
    border-radius: var(--vce-radius-lg);
    padding: 20px 24px;
    margin-bottom: 40px;
}
.vce-save-cal__label {
    font-family: var(--vce-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #888;
    margin: 0 0 12px;
}
.vce-save-cal__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vce-cal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--vce-sans);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform var(--vce-transition), box-shadow var(--vce-transition);
}
.vce-cal-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.vce-cal-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.vce-cal-btn--google { background: #fff; border-color: var(--vce-border); color: #3c4043; }
.vce-cal-btn--apple  { background: #1c1c1e; color: #fff; }
.vce-cal-btn--apple svg { fill: #fff; }
.vce-cal-btn--outlook { background: #0078D4; color: #fff; }

/* ==========================================================
   FORMS
   ========================================================== */

.vce-form-wrapper {
    background: #fff;
    border: 1px solid var(--vce-border);
    border-top: 3px solid var(--vce-green);
    border-radius: var(--vce-radius-lg);
    padding: 28px 32px;
    margin-top: 40px;
}
.vce-form-heading {
    font-family: var(--vce-font);
    font-size: 22px;
    font-weight: normal;
    color: var(--vce-dark);
    margin: 0 0 24px;
}

.vce-field {
    margin-bottom: 18px;
}
.vce-field label {
    display: block;
    font-family: var(--vce-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--vce-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.vce-field input,
.vce-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: var(--vce-radius);
    padding: 10px 12px;
    font-family: var(--vce-sans);
    font-size: 15px;
    color: var(--vce-text);
    transition: border-color var(--vce-transition), box-shadow var(--vce-transition);
    background: #fafafa;
}
.vce-field input:focus,
.vce-field textarea:focus {
    outline: none;
    border-color: var(--vce-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(106,143,60,.12);
}
.vce-field textarea { resize: vertical; min-height: 110px; }
.vce-field--half input { max-width: 120px; }

.vce-privacy {
    font-family: var(--vce-sans);
    font-size: 12px;
    color: #aaa;
    margin-bottom: 16px;
}

.vce-submit-btn {
    display: inline-block;
    background: var(--vce-green);
    color: #fff;
    border: none;
    border-radius: var(--vce-radius);
    padding: 12px 28px;
    font-family: var(--vce-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--vce-transition), transform var(--vce-transition);
}
.vce-submit-btn:hover { background: var(--vce-dark); transform: translateY(-1px); }
.vce-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.vce-form-response {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: var(--vce-radius);
    font-family: var(--vce-sans);
    font-size: 14px;
    display: none;
}
.vce-form-response:not(:empty) { display: block; }
.vce-form-success { background: #e8f5e0; color: #2a5f10; border: 1px solid #b0d890; }
.vce-form-error   { background: #fce8e6; color: #8b1a10; border: 1px solid #f0a0a0; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media ( max-width: 640px ) {
    .vce-cal-event-name { max-width: 60px; }
    .vce-save-cal__btns { flex-direction: column; }
    .vce-cal-btn { width: 100%; justify-content: center; }
    .vce-form-wrapper { padding: 20px 16px; }
    .vce-single-wrap { padding: 0 12px 40px; }
}
