/* Events archive layout, scoped to /eventi/. */
body.post-type-archive-eventi { --events-red: #a5080b; --events-ink: #211d1d; --events-cream: #f8f5f2; color: var(--events-ink); }
body.post-type-archive-eventi #wrapper-navbar,
body.post-type-archive-eventi #mainNav,
body.post-type-archive-eventi .menu-sotto { background: linear-gradient(110deg, #870306, #ae0b0e 55%, #870306) !important; }
body.post-type-archive-eventi #page-wrapper { padding: 0; }
body.post-type-archive-eventi .immagine-cover { position: relative; display: flex; align-items: center; height: auto !important; min-height: 300px; padding: 38px 0; background-position: center 52%; background-size: cover; }
body.post-type-archive-eventi .immagine-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / 73%), rgb(0 0 0 / 16%)); }
body.post-type-archive-eventi .immagine-cover > .container { position: relative; z-index: 1; width: 100%; max-width: 1440px; }
body.post-type-archive-eventi .immagine-cover .titolo,
body.post-type-archive-eventi .immagine-cover .titolo > .container { width: 100%; max-width: none; margin: 0; padding: 0; }
body.post-type-archive-eventi .immagine-cover .titolo .row { display: flex; flex-direction: column; margin: 0; }
body.post-type-archive-eventi .immagine-cover .titolo .row > .col-12 { padding: 0; text-align: left !important; }
body.post-type-archive-eventi .immagine-cover .titolo-breadcrumb { order: 2; }
body.post-type-archive-eventi .immagine-cover .titolo .row > .col-12:last-child { order: 1; margin-bottom: 24px; }
body.post-type-archive-eventi .immagine-cover .background-overlay { display: none; }
body.post-type-archive-eventi .immagine-cover .breadcrumbs,
body.post-type-archive-eventi .immagine-cover .breadcrumbs a,
body.post-type-archive-eventi .immagine-cover .breadcrumbs span,
body.post-type-archive-eventi .immagine-cover .breadcrumbs i { color: #fff !important; font-size: .86rem; }
body.post-type-archive-eventi .immagine-cover .breadcrumb_last { font-weight: 700; }
body.post-type-archive-eventi .immagine-cover h1 { margin: 0; color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.8rem, 4vw, 4.2rem); font-weight: 700; line-height: 1.07; }
body.post-type-archive-eventi .events-hero__subtitle { max-width: 540px; margin: 12px 0 0; color: #fff; font-size: 1.06rem; line-height: 1.45; }
body.post-type-archive-eventi #page-wrapper > .container { width: 100%; max-width: 1440px; }
body.post-type-archive-eventi #page-wrapper > .container > .row { align-items: start; }
body.post-type-archive-eventi .testo-iniziale-archivio { padding: 21px 16px 12px 0 !important; }
body.post-type-archive-eventi .events-eyebrow { margin: 0 0 6px; color: var(--events-red); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
body.post-type-archive-eventi .testo-iniziale-archivio h2 { margin: 0 0 9px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 2.7vw, 3rem); font-weight: 700; line-height: 1.08; }
body.post-type-archive-eventi .testo-iniziale-archivio p:not(.events-eyebrow) { max-width: 920px; margin: 0 0 12px; font-size: .99rem; line-height: 1.54; }
body.post-type-archive-eventi #bar-fixed { margin-top: 20px; padding: 24px; border-radius: 12px; background: var(--events-cream); box-shadow: none; }
body.post-type-archive-eventi #bar-fixed .sidebar-articoli { margin: 0; }
body.post-type-archive-eventi .sidebar-articoli > .widget-title { display: flex; align-items: center; gap: 12px; margin: 0 0 17px; padding: 0 0 14px; border-bottom: 1px solid #d5aaa4; font-family: Georgia, 'Times New Roman', serif; font-size: 1.4rem; font-weight: 700; }
body.post-type-archive-eventi .sidebar-articoli > .widget-title .ti { color: var(--events-red); font-size: 1.35rem; }
body.post-type-archive-eventi .eventi-filters-form .form-group { margin-bottom: 18px; padding: 0; background: transparent; box-shadow: none; }
body.post-type-archive-eventi .eventi-filters-form .title-filter { margin-bottom: 8px !important; color: var(--events-red); font-family: inherit !important; font-size: .95rem !important; font-weight: 700; text-transform: none; }
body.post-type-archive-eventi .events-filter__dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.post-type-archive-eventi .events-filter__date { min-width: 0; }
body.post-type-archive-eventi .events-filter__date label { display: block; margin-bottom: 4px; color: #6c6260; font-size: .78rem; }
body.post-type-archive-eventi .events-filter__date input { width: 100%; min-width: 0; min-height: 39px; padding: 6px; border: 1px solid #d9d2ce; border-radius: 5px; background: #fff; color: var(--events-ink); font-size: .82rem; }
body.post-type-archive-eventi .eventi-filters-form .js-open-end-date[hidden] { display: none !important; }
body.post-type-archive-eventi .eventi-filters-form input[type='checkbox'] { margin-right: 7px; accent-color: var(--events-red); }
body.post-type-archive-eventi .eventi-filters-form label { color: var(--events-ink); font-size: .88rem; line-height: 1.65; }
body.post-type-archive-eventi .eventi-filters-form button[type='submit'] { width: 100%; margin-top: 3px; padding: 11px 15px; border: 0; border-radius: 8px; background: var(--events-red); color: #fff; font-size: .86rem !important; font-weight: 700; text-transform: uppercase; }
body.post-type-archive-eventi .eventi-filters-form .reset-filters { color: var(--events-red); font-size: .83rem; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
body.post-type-archive-eventi .giorno-evento { margin: 0 0 13px; }
body.post-type-archive-eventi .giorno-evento .day-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 14px 0 0 !important; border: 0 !important; color: var(--events-ink); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.3rem, 1.8vw, 1.7rem) !important; font-weight: 700; line-height: 1.2; }
body.post-type-archive-eventi .giorno-evento .day-title::after { content: ''; flex: 1 1 auto; height: 1px; margin-left: 8px; background: var(--events-red); }
body.post-type-archive-eventi .giorno-evento .day-title .ti { color: var(--events-red); font-family: 'tabler-icons' !important; font-size: 1.42rem; font-weight: 400; }
body.post-type-archive-eventi .giorno-evento > .card { margin: 0 0 12px !important; background: transparent; }
body.post-type-archive-eventi .card-event { padding: 14px 16px; border: 0 !important; border-radius: 10px; background: #fff; box-shadow: 0 8px 25px rgb(26 13 7 / 9%); }
body.post-type-archive-eventi .card-event > .row { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 17px; margin: 0; }
body.post-type-archive-eventi .card-event > .row > [class*='col-'] { width: 100%; max-width: none; padding: 0 !important; }
body.post-type-archive-eventi .img-evento .img-zoom { display: block; width: 100%; height: 145px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px !important; }
body.post-type-archive-eventi .img-evento .img-zoom img { display: block; width: 100%; height: 100%; margin: 0 !important; object-fit: cover; border-radius: 10px !important; }
body.post-type-archive-eventi .card-event .card-body { position: relative; min-height: 145px; padding: 2px 145px 0 0 !important; }
body.post-type-archive-eventi .card-event .card-body > div:first-child { display: inline-block; margin-bottom: 10px; padding: 6px 10px; border-radius: 6px; background: var(--events-red); color: #fff; font-size: .75rem !important; font-weight: 700; line-height: 1.1; letter-spacing: .06em; }
body.post-type-archive-eventi .card-event .card-title { margin: 0 0 10px; font-family: Georgia, 'Times New Roman', serif !important; font-size: clamp(1rem, 1.3vw, 1.35rem); font-weight: 400; line-height: 1.2; letter-spacing: .025em; }
body.post-type-archive-eventi .card-event .card-title a { color: var(--events-ink) !important; font-family: inherit !important; font-size: inherit; letter-spacing: inherit; }
body.post-type-archive-eventi .card-event .card-body > .row { display: block; margin: 0; }
body.post-type-archive-eventi .card-event .card-body > .row > [class*='col-'],
body.post-type-archive-eventi .card-event .card-body .col-xxl-3 > .row > [class*='col-'] { width: 100%; max-width: none; padding: 0; text-align: left !important; }
body.post-type-archive-eventi .card-event .card-body .col-xxl-9 { margin: 0 !important; }
body.post-type-archive-eventi .card-event .card-body .col-xxl-3 > .row { display: block; margin: 0; }
body.post-type-archive-eventi .card-event .card-body .col-xxl-9 > div,
body.post-type-archive-eventi .card-event .card-body .col-xxl-3 > .row > div:first-child { margin-bottom: 5px !important; color: #514c4a; font-family: Arial, sans-serif !important; font-size: 1rem !important; line-height: 1.4; }
body.post-type-archive-eventi .card-event .card-body .ti { margin-right: 7px; color: var(--events-red); font-size: 1.28rem; vertical-align: -2px; }
body.post-type-archive-eventi .card-event .card-body .text-success { color: #269655 !important; font-weight: 600; }
body.post-type-archive-eventi .card-event .link-event { position: absolute; right: 0; bottom: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 142px; padding: 11px 21px; border: 1px solid var(--events-red); border-radius: 999px; color: var(--events-red); font-size: 1rem !important; font-weight: 700; line-height: 1.2; }
body.post-type-archive-eventi .card-event .link-event .ti:first-child { display: none; }
body.post-type-archive-eventi .card-event .link-event .ti { margin: 0; color: inherit; }
body.post-type-archive-eventi .card-event .link-event .ti:last-child { font-size: 1.35rem; }
body.post-type-archive-eventi .card-event .link-event:hover { background: var(--events-red); color: #fff; text-decoration: none !important; }
body.post-type-archive-eventi #load-more { padding: 11px 29px; border: 0; border-radius: 999px !important; background: var(--events-red); color: #fff; font-size: .88rem !important; font-weight: 700; text-transform: uppercase; }
body.post-type-archive-eventi #load-more:hover { background: #830507; }
body.post-type-archive-eventi #elenco-eventi + .text-center { margin: 12px 0 36px !important; }
body.post-type-archive-eventi #elenco-eventi + .text-center .progress { background: #eae6e3; }
body.post-type-archive-eventi #elenco-eventi + .text-center .progress-bar { background: var(--events-red) !important; }
body.post-type-archive-eventi .events-related { margin: 20px 0 30px; }
body.post-type-archive-eventi .localita-collegata-box { width: 100%; max-width: none; margin: 0 !important; padding: 15px 0; border-radius: 0; background: transparent; }
body.post-type-archive-eventi .localita-collegata-box .row { align-items: center; }
body.post-type-archive-eventi .localita-collegata-box h3 { margin: 0 0 7px !important; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 2.7vw, 3rem); font-weight: 700; }
body.post-type-archive-eventi .localita-collegata-box p { max-width: 560px; margin: 0 0 13px; line-height: 1.5; }
body.post-type-archive-eventi .localita-collegata-box a:not(:has(img)) { color: var(--events-red); font-size: .93rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
body.post-type-archive-eventi .localita-collegata-box .col-lg-6:last-child img { display: block; width: 100%; height: 275px; margin: 0 !important; border-radius: 10px; object-fit: cover; }
body.post-type-archive-eventi .pre-footer > .container { max-width: 1440px; }
body.post-type-archive-eventi .pre-footer .logo-sponsor.wp-block-columns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; gap: 24px; width: 100%; margin: 20px 0 28px; }
body.post-type-archive-eventi .pre-footer .logo-sponsor > .wp-block-column { display: flex; justify-content: center; min-width: 0; width: 100%; margin: 0; }
body.post-type-archive-eventi .pre-footer .logo-sponsor figure { width: 100%; margin: 0; text-align: center; }
body.post-type-archive-eventi .pre-footer .logo-sponsor img { display: block; width: 100%; height: 95px; margin: auto; object-fit: contain; }
@media (max-width: 991px) {
  body.post-type-archive-eventi #bar-fixed { display: none !important; }
  body.post-type-archive-eventi .pre-footer .logo-sponsor.wp-block-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.post-type-archive-eventi .immagine-cover { min-height: 285px; }
  body.post-type-archive-eventi .immagine-cover > .container { padding-inline: 24px; }
  body.post-type-archive-eventi .events-hero__subtitle br { display: none; }
  body.post-type-archive-eventi .card-event { padding: 12px; }
  body.post-type-archive-eventi .card-event > .row { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  body.post-type-archive-eventi .img-evento .img-zoom { height: 105px; }
  body.post-type-archive-eventi .card-event .card-body { min-height: 105px; padding: 0 !important; }
  body.post-type-archive-eventi .card-event .card-title { font-size: 1rem; }
  body.post-type-archive-eventi .card-event .link-event { position: static; margin-top: 9px; }
  body.post-type-archive-eventi .localita-collegata-box .col-lg-6:last-child img { height: auto; }
  body.post-type-archive-eventi .pre-footer .logo-sponsor.wp-block-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  body.post-type-archive-eventi .card-event > .row { grid-template-columns: 69px minmax(0, 1fr); }
  body.post-type-archive-eventi .img-evento .img-zoom { height: 86px; }
  body.post-type-archive-eventi .giorno-evento .day-title { font-size: 1.2rem !important; }
  body.post-type-archive-eventi .events-filter__dates { grid-template-columns: 1fr 1fr; }
}
