/*
 * Torre dell'Orologio — layout "biglietteria" per YOOtheme (template Elenco tour e Scheda tour, elementi).
 * I colori si cambiano dal tema: basta ridefinire le variabili qui sotto in Personalizza → Avanzate → CSS.
 */
:root {
    --mdm-accent: #d1410c;          /* data e prezzo in evidenza */
    --mdm-ink: #1e0a3c;             /* titoli */
    --mdm-muted: #6f7287;           /* testi secondari */
    --mdm-line: #eeedf2;            /* bordi */
    --mdm-radius: 12px;
}

/* ---------- Elenco tour (card in stile evento) */
.mdm-eb .uk-card { border-radius: var(--mdm-radius); overflow: hidden; box-shadow: none; border: 1px solid var(--mdm-line); transition: box-shadow .2s, transform .2s; }
.mdm-eb .uk-card:hover { box-shadow: 0 8px 24px rgba(30, 10, 60, .12); transform: translateY(-2px); }
.mdm-eb .uk-card .uk-card-media-top img, .mdm-eb .uk-card > a > img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.mdm-eb .el-title { color: var(--mdm-ink); font-weight: 700; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.mdm-eb .el-title a { color: inherit; }
.mdm-eb .el-meta { color: var(--mdm-accent); font-weight: 600; font-size: .875rem; text-transform: none; letter-spacing: 0; }
.mdm-eb .uk-card .el-content:not(.uk-button) { color: var(--mdm-muted); font-size: .875rem; }
.mdm-eb .mdm-eb-kicker { color: var(--mdm-accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }

/* ---------- Scheda tour */
.mdm-eb-hero img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--mdm-radius); }
.mdm-eb-date-line { color: var(--mdm-accent); font-weight: 700; }
.mdm-eb-title { color: var(--mdm-ink); font-weight: 800; }
.mdm-eb-facts .uk-icon { color: var(--mdm-accent); }
.mdm-eb-organizer { background: #f8f7fa; border-radius: var(--mdm-radius); }
.mdm-eb-ticket > .uk-panel { box-sizing: border-box; padding: 24px; background: #fff; border: 1px solid var(--mdm-line); border-radius: var(--mdm-radius); box-shadow: 0 4px 16px rgba(30, 10, 60, .08); }
.mdm-eb-ticket .mdm-eb-price { color: var(--mdm-ink); font-weight: 800; }
.mdm-eb-ticket .uk-button-primary { border-radius: 8px; }
/* Locandina nella colonna laterale: immagine intera, in verticale, senza ritaglio. */
.mdm-eb-poster img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* ---------- Date e orari (elemento Calendario turni, vista "schede")
 * Scheda centrata come un foglio di calendario; tutta la scheda è cliccabile (il pulsante si estende sopra). */
.mdm-eb-date { position: relative; height: 100%; box-sizing: border-box; padding: 22px 18px 18px; border: 1px solid var(--mdm-line); border-radius: var(--mdm-radius);
    background: #fff; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.mdm-eb-date:hover, .mdm-eb-date:focus-within { border-color: var(--mdm-accent); box-shadow: 0 8px 22px rgba(209, 65, 12, .14); transform: translateY(-2px); }
.mdm-eb-cal { display: inline-flex; flex-direction: column; align-items: center; min-width: 74px; border-radius: 10px; overflow: hidden; border: 1px solid var(--mdm-line); background: #fff; line-height: 1; }
.mdm-eb-cal-wd { width: 100%; padding: 5px 10px 4px; background: var(--mdm-accent); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mdm-eb-cal-num { padding: 8px 10px 0; font-size: 2.25rem; font-weight: 800; color: var(--mdm-ink); }
.mdm-eb-cal-mo { padding: 2px 10px 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mdm-muted); }
.mdm-eb-date-time { font-size: 1.375rem; font-weight: 800; color: var(--mdm-ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.mdm-eb-date-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.mdm-eb-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #f3f1f6; color: #3d3a4a; font-size: .8125rem; line-height: 1.5; }
.mdm-eb-date-free { font-size: .875rem; color: #4b4f5c; }
.mdm-eb-date-free::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #2e9d5b; vertical-align: 1px; }
.mdm-eb-date-free.mdm-eb-few { color: var(--mdm-accent); font-weight: 700; }
.mdm-eb-date-free.mdm-eb-few::before { background: var(--mdm-accent); }
.mdm-eb-date .mdm-eb-date-cta { margin-top: auto; border-radius: 8px; padding-top: 4px; padding-bottom: 4px; }
.mdm-eb-date .mdm-eb-date-cta::after { content: ""; position: absolute; inset: 0; border-radius: var(--mdm-radius); } /* tutta la scheda cliccabile */
/* Link alla scheda del tour: sopra lo strato che rende cliccabile tutta la scheda (verso la prenotazione). */
.mdm-eb-date-more { position: relative; z-index: 2; display: inline-block; margin-top: 4px; padding: 8px 6px; /* area di tocco più alta sul telefono */ font-size: .875rem; font-weight: 600; color: var(--mdm-ink); text-decoration: underline; text-underline-offset: 3px; }
.mdm-eb-date-more:hover { color: var(--mdm-accent); }
.mdm-eb-date-off { background: #faf9fb; }
.mdm-eb-date-off .mdm-eb-cal, .mdm-eb-date-off .mdm-eb-date-time { opacity: .55; }
.mdm-eb-date-off .mdm-eb-cal-wd { background: var(--mdm-muted); }
.mdm-eb-date-off:hover { border-color: var(--mdm-line); box-shadow: none; transform: none; }
.mdm-eb-date-status { margin-top: auto; padding: 6px 12px; border-radius: 999px; background: #ece9f0; font-size: .8125rem; font-weight: 700; color: #4b4f5c; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 639px) { .mdm-eb-date { padding: 16px 12px 14px; } .mdm-eb-date-time { font-size: 1.125rem; } .mdm-eb-cal-num { font-size: 1.875rem; } }

/* ---------- Foto e video del tour */
.mdm-eb-gallery img { border-radius: 8px; aspect-ratio: 3 / 2; object-fit: cover; }
.mdm-eb-gallery .uk-inline-clip { border-radius: 8px; }
.mdm-eb-video { border-radius: var(--mdm-radius); overflow: hidden; }
.mdm-eb-video + .mdm-eb-video { margin-top: 20px; }
.mdm-eb-video a[uk-toggle] { position: relative; display: block; }
.mdm-eb-video a[uk-toggle]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
    background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23d1410c'/%3E%3C/svg%3E") 56% 50% / 44px no-repeat;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .2s; }
.mdm-eb-video a[uk-toggle]:hover::after, .mdm-eb-video a[uk-toggle]:focus-visible::after { transform: scale(1.08); }

/* ---------- Una sola data: fascia larga */
.mdm-eb-single { display: flex; align-items: center; gap: 24px; padding: 20px 24px; border: 1px solid var(--mdm-line); border-left: 4px solid var(--mdm-accent);
    border-radius: var(--mdm-radius); background: #fff; }
.mdm-eb-single-day { display: flex; flex-direction: column; align-items: center; min-width: 64px; line-height: 1.1; }
.mdm-eb-single-day .mdm-eb-date-num { font-size: 2.5rem; color: var(--mdm-ink); }
.mdm-eb-single-info { flex: 1; }
.mdm-eb-single-when { color: var(--mdm-ink); font-weight: 700; font-size: 1.125rem; }
.mdm-eb-single-action .uk-button { border-radius: 8px; white-space: nowrap; }
@media (max-width: 639px) { .mdm-eb-single { flex-wrap: wrap; } .mdm-eb-single-action { width: 100%; } .mdm-eb-single-action .uk-button { width: 100%; } }

/* Fascia "una sola data": giorno, numero e mese */
.mdm-eb-single .mdm-eb-date-wd, .mdm-eb-single .mdm-eb-date-mo { text-transform: uppercase; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--mdm-accent); }
.mdm-eb-single .mdm-eb-date-num { font-size: 2.5rem; font-weight: 800; line-height: 1; color: var(--mdm-ink); }
.mdm-eb-single .mdm-eb-date-time { font-size: 1.125rem; }
.mdm-eb-single .mdm-eb-date-free { font-size: .875rem; }

/* Riquadro prezzo: testi secondari più leggibili */
.mdm-eb-ticket > .uk-panel .uk-text-small { font-size: .9375rem; line-height: 1.5; color: #3d3a4a; }
.mdm-eb-ticket > .uk-panel .uk-text-muted { color: #5c5f6e !important; }
