153 lines
11 KiB
CSS
153 lines
11 KiB
CSS
/* YogaSoul Eventi — stili widget.
|
|
Tutti i selettori sono prefissati con .yse-widget per alzare la specificità
|
|
sopra le regole del tema WordPress (evita che tema "vinca" su colori/font). */
|
|
|
|
.yse-widget {
|
|
--yse-ink: #2b2622;
|
|
--yse-muted: #8c837c;
|
|
--yse-line: #ece7e2;
|
|
--yse-card: #ffffff;
|
|
max-width: 1140px; /* largo come Amelia; su schermi piccoli riempie il contenitore */
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
font-family: inherit;
|
|
color: var(--yse-ink);
|
|
line-height: 1.55;
|
|
text-align: left;
|
|
}
|
|
.yse-widget, .yse-widget * { box-sizing: border-box; }
|
|
|
|
/* --- Reset mirati contro il tema --- */
|
|
.yse-widget button {
|
|
font-family: inherit;
|
|
background: none !important;
|
|
border: none !important;
|
|
box-shadow: none !important;
|
|
text-transform: none !important;
|
|
letter-spacing: normal !important;
|
|
min-height: 0 !important;
|
|
width: auto;
|
|
margin: 0;
|
|
line-height: 1.2;
|
|
}
|
|
.yse-widget button:hover { filter: none; }
|
|
.yse-widget input {
|
|
font-family: inherit;
|
|
margin: 0;
|
|
width: 100%;
|
|
min-height: 0;
|
|
box-shadow: none;
|
|
}
|
|
.yse-widget h3, .yse-widget h4, .yse-widget p { margin: 0; padding: 0; }
|
|
.yse-widget img { max-width: 100%; height: auto; }
|
|
.yse-widget a { text-decoration: none; }
|
|
.yse-widget svg { vertical-align: middle; }
|
|
|
|
.yse-empty { text-align: center; color: var(--yse-muted); padding: 26px; }
|
|
|
|
.yse-widget .yse-card {
|
|
--yse-accent: #4CAF50;
|
|
--yse-accent-soft: color-mix(in srgb, var(--yse-accent) 10%, white);
|
|
--yse-accent-ink: color-mix(in srgb, var(--yse-accent) 62%, black);
|
|
background: var(--yse-card);
|
|
border-radius: 18px;
|
|
box-shadow: 0 14px 40px rgba(43, 38, 34, 0.10);
|
|
overflow: hidden;
|
|
}
|
|
.yse-widget .yse-card + .yse-card { margin-top: 24px; }
|
|
|
|
/* Header compatto */
|
|
.yse-widget .yse-chead { display: flex; gap: 18px; padding: 20px 26px; align-items: flex-start; }
|
|
.yse-widget .yse-datechip { flex-shrink: 0; border: 1px solid var(--yse-line); border-radius: 12px; padding: 7px 12px 5px; text-align: center; min-width: 58px; }
|
|
.yse-widget .yse-datechip .yse-m { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--yse-accent-ink); }
|
|
.yse-widget .yse-datechip .yse-d { font-family: inherit; font-size: 24px; font-weight: 600; color: var(--yse-ink); line-height: 1; }
|
|
.yse-widget .yse-main { flex: 1; min-width: 0; }
|
|
.yse-widget .yse-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
.yse-widget .yse-title-row h3 { font-family: inherit; font-weight: 500; font-size: 23px; margin: 0; color: var(--yse-ink); }
|
|
.yse-widget .yse-toggle { background: none !important; border: none !important; color: var(--yse-accent-ink) !important; font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 2px; border-radius: 0; }
|
|
.yse-widget .yse-toggle svg { width: 15px; height: 15px; transition: transform .2s; }
|
|
.yse-widget .yse-toggle.yse-on svg { transform: rotate(180deg); }
|
|
.yse-widget .yse-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; }
|
|
.yse-widget .yse-item { display: flex; align-items: center; gap: 7px; color: var(--yse-muted); font-size: 14px; }
|
|
.yse-widget .yse-item svg { width: 17px; height: 17px; color: var(--yse-accent-ink); flex-shrink: 0; }
|
|
.yse-widget .yse-item strong { color: var(--yse-ink); font-weight: 600; }
|
|
.yse-widget .yse-price { flex-shrink: 0; align-self: flex-start; background: var(--yse-accent) !important; color: #fff; font-weight: 600; font-size: 15px; padding: 8px 15px; border-radius: 999px; }
|
|
|
|
/* Dettagli espandibili */
|
|
.yse-widget .yse-details { display: none; border-top: 1px solid var(--yse-line); }
|
|
.yse-widget .yse-details.yse-open { display: block; }
|
|
.yse-widget .yse-hero { position: relative; height: 300px; background: linear-gradient(135deg, var(--yse-accent-ink), var(--yse-accent)); }
|
|
.yse-widget .yse-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
.yse-widget .yse-emblem { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); }
|
|
.yse-widget .yse-emblem svg { width: 78px; height: 78px; }
|
|
.yse-widget .yse-body { padding: 24px 26px; }
|
|
.yse-widget .yse-section { margin-top: 26px; }
|
|
.yse-widget .yse-body h4 { font-family: inherit; font-weight: 600; font-size: 19px; color: var(--yse-ink); margin: 0 0 10px; display: flex; align-items: center; gap: 9px; }
|
|
.yse-widget .yse-body h4 svg { width: 20px; height: 20px; color: var(--yse-accent-ink); }
|
|
.yse-widget .yse-desc { font-size: 15.5px; color: #4a433d; }
|
|
.yse-widget .yse-desc p { margin: 0 0 10px; }
|
|
.yse-widget .yse-desc img { max-width: 100%; border-radius: 10px; }
|
|
.yse-widget .yse-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 24px; }
|
|
.yse-widget .yse-detail { background: var(--yse-accent-soft); border: 1px solid color-mix(in srgb, var(--yse-accent) 18%, white); border-radius: 14px; padding: 15px 16px; }
|
|
.yse-widget .yse-dh { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--yse-accent-ink); margin-bottom: 6px; font-size: 14px; }
|
|
.yse-widget .yse-dh svg { width: 17px; height: 17px; }
|
|
.yse-widget .yse-dt { font-size: 14px; color: #4a433d; }
|
|
.yse-widget .yse-gallery { display: flex; gap: 10px; flex-wrap: wrap; }
|
|
.yse-widget .yse-gallery img { width: 108px; height: 108px; object-fit: cover; border-radius: 12px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
|
|
.yse-widget .yse-gallery img:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.15); }
|
|
.yse-widget .yse-map { border: 0; width: 100%; height: 220px; border-radius: 14px; display: block; }
|
|
|
|
/* Booking */
|
|
.yse-widget .yse-booking { padding: 22px 26px; border-top: 1px solid var(--yse-line); }
|
|
.yse-widget .yse-soldout { text-align: center; font-weight: 600; color: #c0392b; }
|
|
.yse-widget .yse-wl-banner { background: color-mix(in srgb, var(--yse-accent) 12%, white); color: var(--yse-accent-ink); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 16px; }
|
|
.yse-widget .yse-bcompact { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
|
|
.yse-widget .yse-btitle { font-family: inherit; font-weight: 600; font-size: 19px; color: var(--yse-ink); margin-right: auto; align-self: center; }
|
|
.yse-widget .yse-lbl { font-size: 12px; color: var(--yse-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
|
|
.yse-widget .yse-stepper { display: flex; align-items: center; border: 1px solid var(--yse-line); border-radius: 11px; overflow: hidden; background: #fff; }
|
|
.yse-widget .yse-stepper button { background: #fff !important; width: 44px; height: 46px; font-size: 22px; color: var(--yse-accent-ink) !important; cursor: pointer; }
|
|
.yse-widget .yse-stepper button:disabled { color: #cfc8c2 !important; cursor: not-allowed; }
|
|
.yse-widget .yse-num { width: 54px; text-align: center; font-size: 17px; font-weight: 600; }
|
|
.yse-widget .yse-total .yse-val { font-family: inherit; font-size: 26px; font-weight: 600; color: var(--yse-accent-ink); }
|
|
.yse-widget .yse-cta { background: var(--yse-accent) !important; color: #fff !important; font-size: 15px; font-weight: 600; border-radius: 11px; cursor: pointer; transition: filter .15s; }
|
|
.yse-widget .yse-cta:hover { filter: brightness(.94) !important; }
|
|
.yse-widget .yse-cta:disabled { background: #cfc8c2 !important; cursor: not-allowed; }
|
|
.yse-widget .yse-open { padding: 14px 26px; }
|
|
.yse-widget .yse-full { width: 100%; padding: 15px; margin-top: 6px; }
|
|
.yse-widget .yse-bform { display: none; margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--yse-line); }
|
|
.yse-widget .yse-bform.yse-open { display: block; }
|
|
.yse-widget .yse-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
|
.yse-widget .yse-field { margin-bottom: 12px; }
|
|
.yse-widget .yse-field label { display: block; font-size: 13px; font-weight: 600; color: var(--yse-ink); margin-bottom: 5px; }
|
|
.yse-widget .yse-field input { border: 1px solid var(--yse-line) !important; border-radius: 10px; padding: 12px 13px; font-size: 15px; background: #fff !important; color: var(--yse-ink) !important; }
|
|
.yse-widget .yse-field input:focus { outline: none; border-color: var(--yse-accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--yse-accent) 22%, white) !important; }
|
|
.yse-widget .yse-consent { font-size: 13px; color: #4a433d; display: flex; gap: 9px; align-items: flex-start; margin-bottom: 9px; }
|
|
.yse-widget .yse-consent input { width: auto; margin-top: 3px; }
|
|
.yse-widget .yse-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
|
|
.yse-widget .yse-error { color: #c0392b; font-size: 13px; margin-top: 8px; min-height: 18px; }
|
|
.yse-widget .yse-done { text-align: center; padding: 10px 4px; }
|
|
.yse-widget .yse-done .yse-ok { width: 54px; height: 54px; border-radius: 50%; background: var(--yse-accent); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
|
|
.yse-widget .yse-done h3 { margin: 0 0 6px; font-family: inherit; font-size: 21px; }
|
|
.yse-widget .yse-done p { color: #4a433d; font-size: 14px; margin: 2px 0; }
|
|
|
|
/* Lightbox (montato su <body>, fuori da .yse-widget) */
|
|
.yse-lightbox { position: fixed; inset: 0; background: rgba(24,19,16,.9); display: none; align-items: center; justify-content: center; z-index: 99999; padding: 24px; }
|
|
.yse-lightbox.yse-open { display: flex; }
|
|
.yse-lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; }
|
|
.yse-lightbox .yse-lbclose { position: absolute; top: 18px; right: 22px; color: #fff !important; font-size: 34px; cursor: pointer; background: none !important; border: none !important; line-height: 1; padding: 0; }
|
|
|
|
@media (max-width: 600px) {
|
|
.yse-widget .yse-hero { height: 210px; }
|
|
.yse-widget .yse-title-row h3 { font-size: 20px; }
|
|
.yse-widget .yse-frow { grid-template-columns: 1fr; }
|
|
.yse-widget .yse-btitle { width: 100%; margin-bottom: 4px; }
|
|
.yse-widget .yse-chead, .yse-widget .yse-booking, .yse-widget .yse-body { padding-left: 18px; padding-right: 18px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) { .yse-widget * { transition: none !important; } }
|
|
|
|
/* Miniatura copertina nella testata compatta */
|
|
.yse-widget .yse-thumb { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
|
|
@media (max-width: 600px) { .yse-widget .yse-thumb { width: 60px; height: 60px; } }
|
|
|
|
/* Evento programmato (prenotazioni non ancora aperte) */
|
|
.yse-widget .yse-scheduled { text-align: center; font-weight: 600; color: var(--yse-accent-ink); background: color-mix(in srgb, var(--yse-accent) 12%, white); border-radius: 12px; padding: 12px 14px; } |