/* mod_awin_ticketone - stili con prefisso .awt per non interferire con il template */
.awt { --awt-accent: #b3122e; --awt-text: #222; --awt-muted: #666; --awt-border: #e3e3e3; --awt-bg: #fff; margin: 0 0 1.5em; }
.awt-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .awt-cols-2, .awt-cols-3, .awt-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .awt-cols-3 { grid-template-columns: repeat(3, 1fr); } .awt-cols-4 { grid-template-columns: repeat(4, 1fr); } }

.awt-card { display: flex; flex-direction: column; background: var(--awt-bg); border: 1px solid var(--awt-border); border-radius: 6px; overflow: hidden; transition: box-shadow .2s; }
.awt-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.awt-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f2f2f2; }
.awt-media img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.awt-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.awt-date { font-size: .82em; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--awt-accent); margin-bottom: 4px; }
.awt-title { font-size: 1.08em; line-height: 1.3; margin: 0 0 6px; }
.awt-title a { color: var(--awt-text); text-decoration: none; }
.awt-title a:hover { color: var(--awt-accent); }
.awt-venue { font-size: .9em; color: var(--awt-muted); margin: 0 0 8px; }
.awt-desc { font-size: .9em; color: var(--awt-muted); margin: 0 0 10px; }
.awt-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.awt-price { font-weight: 600; color: var(--awt-text); }
.awt-btn, .awt-btn:visited { display: inline-block; padding: 8px 14px; border-radius: 4px; background: var(--awt-accent); color: #fff !important; font-weight: 600; font-size: .9em; text-decoration: none; }
.awt-btn:hover, .awt-btn:focus { filter: brightness(.9); text-decoration: none; }
.awt-note { font-size: .78em; color: var(--awt-muted); margin: 12px 0 0; }
.awt-empty { color: var(--awt-muted); }

/* Layout "Biglietti": eredita lo stile delle schede K2 del template, qui solo i complementi */
/* Griglia: 4 schede per riga sopra 1100px, 3 sui notebook, 2 sui tablet, 1 sui telefoni.
   Sostituisce la regola del template che sotto i 1300px porta le schede al 46% (2 per riga). */
.awt-biglietti .awt-list { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; }
.awt-biglietti .awt-list .itemContainer { width: calc(25% - 20px) !important; margin: 10px !important; }
@media (max-width: 1100px) { .awt-biglietti .awt-list .itemContainer { width: calc(33.333% - 20px) !important; } }
@media (max-width: 767px)  { .awt-biglietti .awt-list .itemContainer { width: calc(50% - 16px) !important; margin: 8px !important; } }
@media (max-width: 520px)  { .awt-biglietti .awt-list .itemContainer { width: 100% !important; margin: 10px 0 !important; } }

.awt-biglietti .catItemView { position: relative; }
.awt-biglietti .catItemExtraFields ul { list-style: none; margin: 0; padding: 0; }
.awt-biglietti .catItemImage { display: block; position: relative; overflow: hidden; height: auto !important; }
.awt-biglietti .catItemImage figure, .awt-biglietti .catItemImage figure a { display: block; }
.awt-biglietti .catItemImage img { display: block; width: 100%; height: auto; }
.awt-biglietti .awt-noimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: #8a3f7a; color: #fff; font: 600 1.4em "fira sans", sans-serif; text-transform: uppercase; }

/* Riquadro data: agganciato al fondo della foto, in basso a destra, a qualsiasi larghezza
   (il template lo posiziona a distanza fissa dall'alto, che su mobile non corrisponde più). */
.awt-biglietti .odd.typeTextarea.group4.awt-datebox { position: absolute; top: auto !important; bottom: 12px; right: 0; left: auto; z-index: 2; background: #8a3f7a; }
.awt-biglietti .awt-datebox .catItemExtraFieldsValue b { display: block; width: auto; background: none; color: #fff; padding: 8px 10px; }

/* Filtri sempre su una riga: si dividono lo spazio (max 240px l'uno) e su mobile si restringono. */
.awt-filters { display: flex; flex-wrap: nowrap; justify-content: center; gap: 0 20px; margin: 10px auto 20px; padding: 0 10px; }
.awt-filters .awt-filter { flex: 1 1 0; min-width: 0; max-width: 240px; }
/* Etichette nascoste come nel vecchio filtro K2: il primo valore del menu ("Tutte le città"…) fa da etichetta,
   gli screen reader usano aria-label. */
.awt-filters .awt-filter h3 { display: none; }
.awt-filters .awt-filter select { width: 100%; min-width: 0 !important; max-width: 100%; height: 36px; }
@media (max-width: 520px) {
	.awt-filters { gap: 0 8px; padding: 0 8px; }
	.awt-filters .awt-filter select { font-size: 13px !important; padding: 0 2px; height: 34px; }
}
.awt-biglietti .awt-note, .awt-biglietti .awt-empty { text-align: center; }

/* Layout "Carosello": il resto dello stile arriva da News Show Pro GK5 e dal template */
/* Copia delle regole del carosello biglietti della home (#nsp-nsp-333) */
.awt-carousel-intro, .awt-bigli { text-align: center; }
/* Frecce ai lati delle schede (invece che in alto accanto ai pallini) */
.awt-carousel.nspMain { position: relative; }
.awt-carousel .nspArts { padding: 0 46px !important; }
.awt-carousel .nspTopInterface { float: none !important; display: table; margin: 0 auto 8px !important; }
.awt-carousel .nspPrev,
.awt-carousel .nspNext { position: absolute; top: calc(50% + 14px); transform: translateY(-50%); float: none; width: 38px; height: 38px; margin: 0; z-index: 5; background: #fff; }
.awt-carousel .nspPrev { left: 2px; }
.awt-carousel .nspNext { right: 2px; }
.awt-carousel .nspPrev:before { margin: 10px 0 0 11px; }
.awt-carousel .nspNext:before { margin: 10px 0 0 14px; }
.awt-carousel .nspPrev:hover,
.awt-carousel .nspNext:hover { background: #f3e9f1; }
@media (max-width: 520px) {
	.awt-carousel .nspArts { padding: 0 36px !important; }
	.awt-carousel .nspPrev, .awt-carousel .nspNext { width: 30px; height: 30px; }
	.awt-carousel .nspPrev:before { margin: 6px 0 0 7px; }
	.awt-carousel .nspNext:before { margin: 6px 0 0 10px; }
}

.awt-carousel .nspImageWrapper { display: block; }
.awt-carousel img.nspImage { aspect-ratio: 380 / 300; object-fit: cover; }
.awt-carousel .awt-noimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 380 / 300; background: #8a3f7a; color: #fff; font: 600 1.2em "fira sans", sans-serif; text-transform: uppercase; }
.awt-carousel .gkArtContentWrap { background: #ececec; height: 150px; }
.awt-carousel .gkArtContentWrap h4 a { height: 75px; text-decoration: none; }
.awt-carousel .gkArtContentWrap p.awt-cdate { text-align: center !important; color: #8a3f7a; font: 600 13px "fira sans", sans-serif; margin: 0 !important; }
.awt-carousel .gkArtContentWrap p.nspInfo2 a { background: #ae0505; display: table; margin: 8px auto 0; text-align: center; color: #fff; text-transform: uppercase; font: 600 0.8em "fira sans", sans-serif; letter-spacing: 0; padding: 5px 25px !important; text-decoration: none; }
.awt-carousel .gkArtContentWrap p.nspInfo2 a:hover { filter: brightness(.9); }

.awt-debug { font-size: 13px; background: #fffbe6; border: 1px solid #f0d36b; border-radius: 4px; padding: 10px 12px; margin-bottom: 16px; overflow-wrap: anywhere; }
.awt-debug p { margin: 6px 0; }
.awt-debug-err { color: #a00; font-weight: 600; }
.awt-debug table { font-size: 12px; border-collapse: collapse; margin-top: 6px; }
.awt-debug th, .awt-debug td { border: 1px solid #eadfa8; padding: 2px 6px; text-align: left; vertical-align: top; }