/* SalsaItalia home only. No CSS embedded in PHP. */
body.home { background: #fff; }
body.home .content-area { margin: 0 !important; padding: 0 !important; }
body.home #primary, body.home .content-container, body.home .site-main { max-width: none; width: 100%; margin: 0; padding: 0; }
body.home .content-container { display: block; }
body.home article.page, body.home .entry-content-wrap { margin: 0; padding: 0 !important; border: 0; background: #fff; box-shadow: none; }
body.home article.page > .entry-header, body.home .entry-hero, body.home article.page > .post-thumbnail, body.home .entry-content-wrap > .entry-header { display: none; }
body.home .entry-content { margin: 0; }
body.home .entry-content > .salsa-home { max-width: none !important; margin: 0 !important; }
body.home .site-branding img.custom-logo { max-height: 94px; width: auto; object-fit: contain; }
body.home .site-header-row-container-inner { background: #fff; }
body.home .site-header-row { min-height: 110px; }
body.home .header-navigation a { font-size: 15px; }
body.home .header-navigation a[href*="/add-listing/"] { background: #ff4654; color: #fff; border-radius: 9px; padding: 12px 20px; margin-left: 12px; }
body.home .site-footer { background: #fff; border-top: 1px solid #e6e9ef; }
body.home .site-footer-row { padding-top: 24px; padding-bottom: 24px; }
.salsa-home { --ink: #11182c; --muted: #536078; --coral: #ee3347; color: var(--ink); font-family: inherit; }
.salsa-home *, .salsa-home *::before, .salsa-home *::after { box-sizing: border-box; }
.salsa-home a { text-decoration: none !important; color: inherit; }
.salsa-home a:focus-visible, .salsa-home button:focus-visible, .salsa-home input:focus-visible, .salsa-home select:focus-visible { outline: 3px solid #11182c; outline-offset: 4px; }
.salsa-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.salsa-hero { position: relative; isolation: isolate; min-height: 560px; background: #14283a; }
.salsa-hero-image { position: absolute; inset: 0; height: 100% !important; width: 100%; max-width: none; object-fit: cover; object-position: 70% center; z-index: -2; }
.salsa-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,13,23,.72), rgba(4,13,23,.18) 65%, rgba(4,13,23,.04)); z-index: -1; }
.salsa-hero-inner { min-height: 560px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 70px 0 38px; }
.salsa-home .salsa-hero h1 { color: #fff; font-size: clamp(38px, 4.4vw, 64px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; margin: 0 0 22px; }
.salsa-home .salsa-hero-copy p { color: #fff; font-size: clamp(19px, 2vw, 25px); line-height: 1.4; font-weight: 600; margin: 0; }
.salsa-search { background: #fff; color: var(--ink); padding: 18px; border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.16); }
.salsa-search .geodir-search-form-wrapper { margin-bottom: 0 !important; }
.salsa-search .geodir-listing-search { box-sizing: border-box !important; }
.salsa-search .geodir-search.row { margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 12px !important; row-gap: 12px !important; }
.salsa-search .geodir-search > [data-rule-key] { min-width: 150px; flex: 1 1 190px !important; }
.salsa-search .geodir-search > .gd-search-field-search:not([data-rule-key]) { flex: 0 0 130px !important; }
.salsa-search .geodir-search > .gd-search-field-search-filters { flex: 0 0 52px !important; }
.salsa-search input.form-control, .salsa-search select.form-select { min-height: 52px; border: 1px solid #dfe4ed; border-radius: 8px; font-size: 15px; background-color: #fff; color: var(--ink); }
.salsa-search .input-group-inside > input { padding-left: 40px; }
.salsa-search button.geodir_submit_search, .salsa-search button.geodir-show-filters { min-height: 52px; border: none; border-radius: 8px; background: var(--coral); color: #fff; }
.salsa-search button.geodir_submit_search:hover { background: #ce2239; }
.salsa-search button.geodir_submit_search .visually-hidden { position: static !important; width: auto !important; height: auto !important; clip: auto !important; clip-path: none !important; display: inline; font-weight: 700; margin-left: 8px !important; }
.salsa-search .geodir-more-filters { color: var(--ink); }
.salsa-search .geodir-more-filters .customize_filter_inner { margin-bottom: 0 !important; }
.salsa-section { padding: 42px 0 0; }
.salsa-home .salsa-section h2 { margin: 0 0 26px; text-align: center; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -.025em; color: var(--ink); font-weight: 800; }
.salsa-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.salsa-schools { --card-color: #008b91; --card-light: #b8f3e6; }
.salsa-venues { --card-color: #de3048; --card-light: #ffb0a9; }
.salsa-dj { --card-color: #782bd4; --card-light: #dbbaff; }
.salsa-events { --card-color: #a64806; --card-light: #ffc77a; }
.salsa-category { border-radius: 12px; overflow: hidden; background: var(--card-color); display: block; box-shadow: 0 3px 12px rgba(18,24,44,.07); transition: transform .18s, box-shadow .18s; }
.salsa-category:hover, .salsa-story:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(18,24,44,.12); }
.salsa-category-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 17px 16px; color: #fff; font-size: 20px; font-weight: 700; }
.salsa-arrow { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; flex-shrink: 0; }
.salsa-category-photo { height: 180px; position: relative; display: grid; place-items: center; background: linear-gradient(135deg, var(--card-light), var(--card-color)); }
.salsa-card-image { height: 100% !important; width: 100%; object-fit: cover; display: block; }
.salsa-card-symbol { color: #fff; font-size: 75px; line-height: 1; text-shadow: 0 4px 20px rgba(0,0,0,.1); }
.salsa-inspiration { padding-bottom: 52px; }
.salsa-inspiration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.salsa-story { overflow: hidden; border: 1px solid #e5e8f0; border-radius: 12px; background: #fff; display: block; transition: transform .18s, box-shadow .18s; }
.salsa-story-photo { height: 190px; display: grid; place-items: center; background: linear-gradient(135deg, var(--card-light), var(--card-color)); }
.salsa-story-copy { padding: 18px 50px 20px 18px; position: relative; }
.salsa-home .salsa-story h3 { font-size: 21px; line-height: 1.25; margin: 0 0 8px; color: var(--ink); }
.salsa-home .salsa-story p { font-size: 15px; line-height: 1.5; margin: 0; color: var(--muted); }
.salsa-story-arrow { position: absolute; right: 16px; top: 50%; border: 1px solid #7c899f; border-radius: 50%; width: 25px; height: 25px; display: grid; place-items: center; }
@media (max-width: 1024px) {
  .salsa-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .salsa-hero, .salsa-hero-inner { min-height: 520px; }
  .salsa-category-photo { height: 200px; }
}
@media (max-width: 767px) {
  body.home .site-branding img.custom-logo { max-height: 72px; }
  body.home .site-header-row { min-height: 86px; }
  .salsa-shell { width: calc(100% - 32px); }
  .salsa-hero, .salsa-hero-inner { min-height: 620px; }
  .salsa-hero-inner { padding: 44px 0 24px; gap: 32px; }
  .salsa-hero-image { object-position: 72% center; }
  .salsa-hero-shade { background: linear-gradient(180deg, rgba(4,13,23,.3), rgba(4,13,23,.65) 48%, rgba(4,13,23,.8)); }
  .salsa-home .salsa-hero h1 { font-size: clamp(34px, 8vw, 48px); }
  .salsa-home .salsa-hero-copy p { font-size: 19px; }
  .salsa-desktop-break { display: none; }
  .salsa-search { padding: 14px; border-radius: 12px; }
  .salsa-search .geodir-search > [data-rule-key] { flex: 1 1 100% !important; min-width: 0; }
  .salsa-search .geodir-search > .gd-search-field-search:not([data-rule-key]) { flex: 1 1 0 !important; }
  .salsa-search .geodir-search > .gd-search-field-search-filters { flex: 0 0 52px !important; }
  .salsa-section { padding-top: 30px; }
  .salsa-home .salsa-section h2 { text-align: left; font-size: 27px; margin-bottom: 18px; }
  .salsa-category-grid { gap: 12px; }
  .salsa-category-label { padding: 13px 10px; font-size: 16px; }
  .salsa-arrow { width: 23px; height: 23px; }
  .salsa-category-photo { height: 130px; }
  .salsa-inspiration-grid { grid-template-columns: 1fr; gap: 14px; }
  .salsa-story { display: grid; grid-template-columns: 100px minmax(0, 1fr); }
  .salsa-story-photo { height: 100%; min-height: 120px; }
  .salsa-story-copy { padding: 16px 38px 16px 14px; }
  .salsa-home .salsa-story h3 { font-size: 19px; }
  .salsa-home .salsa-story p { font-size: 14px; }
  .salsa-story-arrow { right: 9px; width: 22px; height: 22px; }
  .salsa-inspiration { padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) { .salsa-category, .salsa-story { transition: none; } .salsa-category:hover, .salsa-story:hover { transform: none; } }

/* Logo home leggermente più grande */
body.home .site-branding img.custom-logo {
    max-height: 112px;
}
body.home .site-header-row {
    min-height: 126px;
}
@media (max-width: 767px) {
    body.home .site-branding img.custom-logo {
        max-height: 86px;
    }
    body.home .site-header-row {
        min-height: 100px;
    }
}

/* Il selettore balli deve rispettare la larghezza della propria colonna */
body.home form:has(.si-dance-picker) .si-dance-picker {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
}
body.home form:has(.si-dance-picker) .si-dance-picker > summary {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
body.home form:has(.si-dance-picker) .geodir-search-field,
body.home form:has(.si-dance-picker) .gd-search-field {
    min-width: 0 !important;
    box-sizing: border-box;
}

/* Ricerca e tendina balli sopra le schede della home */
body.home form:has(.si-dance-picker) {
    position: relative;
    z-index: 100;
    overflow: visible !important;
}
body.home .si-dance-picker {
    position: relative;
    z-index: 101;
    overflow: visible !important;
}
body.home .si-dance-picker[open] {
    z-index: 110;
}
body.home .si-dance-picker .si-dance-options {
    z-index: 111;
}

/* Solleva anche i contenitori che racchiudono la ricerca */
body.home main section:has(.si-dance-picker),
body.home #main section:has(.si-dance-picker) {
    position: relative;
    z-index: 100;
    overflow: visible !important;
}

/* Match the existing dance summary's 22.4px line + 20px padding + 2px border. */
body.home .salsa-search{--si-home-control-height:44.4px}
/* Restore Bootstrap's negative vertical gutter: equal white padding above/below. */
body.home .salsa-search .geodir-search.row{margin-top:calc(-1 * var(--bs-gutter-y,0px))!important;align-items:center}
body.home .salsa-search .geodir-search>[data-rule-key] :is(input.form-control,select.form-select:not([hidden]),.si-dance-picker>summary,.select2-selection--single),
body.home .salsa-search .geodir-search>.gd-search-field-search>div>button{
 box-sizing:border-box;height:var(--si-home-control-height);min-height:var(--si-home-control-height);max-height:var(--si-home-control-height);
}
body.home .salsa-search .geodir-search>[data-rule-key] :is(input.form-control,select.form-select:not([hidden])){padding-top:0;padding-bottom:0}
body.home .salsa-search .geodir-search>.gd-search-field-search>div>button{display:inline-flex;align-items:center;justify-content:center}
body.home .salsa-search .geodir-search>[data-rule-key] .select2-selection__rendered{line-height:calc(var(--si-home-control-height) - 2px);padding-top:0;padding-bottom:0}
body.home .salsa-search .geodir-search>[data-rule-key] .select2-selection__arrow{height:calc(var(--si-home-control-height) - 2px);top:1px}

/* Three-pixel corners for the home search surface and its interactive surfaces. */
body.home .salsa-search,
body.home .salsa-search :is(input:not([type=radio]):not([type=checkbox]),select,button,.si-dance-picker>summary,.si-dance-options,.si-dance-options label,.select2-selection,.select2-dropdown,.geodir-search,.geodir-more-filters,.customize_filter_inner){border-radius:3px!important}

/* Compact homepage section spacing; retain the existing card and control sizes. */
body.home :is(.si-tonight,.si-event-promo,.si-daily-schools,.si-business-cta,.si-newsletter),
body.home .salsa-home .si-poster-promo{padding-top:36px;padding-bottom:36px}
body.home .si-daily-heading{margin-bottom:20px}
body.home .si-event-promo-kicker{margin-bottom:10px}
body.home .si-event-promo h2{margin-bottom:14px}
body.home .si-event-promo-copy>p:not(.si-event-promo-kicker){margin-bottom:16px}
body.home .si-event-promo .si-event-promo-copy>.si-event-promo-note{margin-top:10px;margin-bottom:0}
body.home .salsa-home .si-poster-promo-description{margin-bottom:18px}
body.home .si-newsletter-content{padding-top:30px;padding-bottom:30px}
body.home .si-business-cta-benefits{margin-top:18px;margin-bottom:20px}
@media(max-width:767px){
 body.home :is(.si-tonight,.si-event-promo,.si-daily-schools,.si-business-cta,.si-newsletter),
 body.home .salsa-home .si-poster-promo{padding-top:24px;padding-bottom:24px}
 body.home :is(.si-event-promo-inner,.si-poster-promo-inner,.si-business-cta-inner){row-gap:20px}
 body.home .si-daily-heading{margin-bottom:16px}
 body.home .si-newsletter-content{padding-top:24px;padding-bottom:24px}
}

/* Symmetric outer-space reductions; leave all content margins and gaps untouched. */
body.home{--si-band-padding:36px}
body.home #dove-si-balla{padding-block:max(0px,calc(var(--si-band-padding) - 1mm))}
body.home .si-event-promo{padding-block:max(0px,calc(var(--si-band-padding) - 7.5mm))}
body.home #ultimi-eventi{padding-block:max(0px,calc(var(--si-band-padding) - 5mm))}
body.home .salsa-home .si-poster-promo{padding-block:max(0px,calc(var(--si-band-padding) - 4mm))}
body.home .si-business-cta-inner{align-items:center}
body.home .si-newsletter-content{align-self:center}
@media(max-width:767px){body.home{--si-band-padding:24px}}

body.home .si-daily-schools:not(.si-latest-events){padding-block:max(0px,calc(var(--si-band-padding) - 5mm))}

body.home .si-business-cta{padding-block:max(0px,calc(var(--si-band-padding) - 2.5mm))}

body.home .si-newsletter{padding-block:max(0px,calc(var(--si-band-padding) - 2.5mm))}

body.home .si-event-promo-kicker{position:relative;top:5mm}

/* Balance only the outside edges of the evening search content. */
body.home #dove-si-balla .si-tonight-inner{display:flow-root}
body.home #dove-si-balla .si-tonight-inner>:first-child{margin-top:0}
body.home #dove-si-balla .si-tonight-results>:last-child{margin-bottom:0}

body.home .si-latest-events .si-latest-date{color:var(--si-accent);font-weight:700;margin:0 0 12px}

/* The location helper is cleared by launch.js: do not retain an empty first row. */
body.home #dove-si-balla .si-l-origin:empty{display:none}

body.home .si-latest-events .si-daily-all{display:inline-flex;align-items:center;gap:6px;transition:color .18s ease}
body.home .si-latest-events .si-daily-all span{transition:transform .18s ease}
body.home .si-latest-events .si-daily-all:is(:hover,:focus-visible){color:#055d63;text-decoration:underline;text-underline-offset:4px}
body.home .si-latest-events .si-daily-all:is(:hover,:focus-visible) span{transform:translateX(4px)}
@media(prefers-reduced-motion:reduce){
 body.home .si-latest-events .si-daily-all,body.home .si-latest-events .si-daily-all span{transition:none}
 body.home .si-latest-events .si-daily-all:is(:hover,:focus-visible) span{transform:none}
}

/* Slightly shorter event cards; school cards retain their current spacing. */
body.home .si-latest-events .si-daily-image{height:180px}
body.home .si-latest-events .si-daily-body{padding:20px}
body.home .si-latest-events .si-daily-body h3{margin-bottom:10px}
body.home .si-latest-events .si-latest-date{margin-bottom:8px}
body.home .si-latest-events .si-daily-address{margin-bottom:16px}
body.home .si-latest-events .si-event-test{margin-bottom:12px}

/* Compact radius choices; wrap naturally on smaller screens. */
body.home .salsa-search .gd-field-distance .form-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-left: 0;
    margin: 0 16px 8px 0 !important;
    white-space: nowrap;
    vertical-align: middle;
}
body.home .salsa-search .gd-field-distance .form-check-input {
    float: none;
    flex: 0 0 auto;
    margin: 0;
}
body.home .salsa-search .gd-field-distance .form-check-label {
    margin: 0;
    cursor: pointer;
}

body.home .salsa-search .gd-field-distance > label,
body.home .salsa-search .gd-field-distance > legend {
    display: block;
    width: 100%;
    margin-bottom: 12px;
}

/* Ten radius options arranged as two rows of five. */
body.home .salsa-search .gd-field-distance {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 8px;
}
body.home .salsa-search .gd-field-distance > label,
body.home .salsa-search .gd-field-distance > legend {
    grid-column: 1 / -1;
}
body.home .salsa-search .gd-field-distance .form-check {
    min-width: 0;
    margin: 0 !important;
    white-space: normal;
}
body.home .salsa-search .gd-field-distance .form-check-label {
    min-width: 0;
}

/* Search outline matches the search buttons. */
body.home .salsa-search {
    border: 1px solid var(--coral);
}
