/**
* Theme Name: Eventchamp Child
* Description: This is a child theme of Eventchamp.
* Author: <a href="https://gloriathemes.com">Gloria Themes</a>
* Template: eventchamp
* Version: 2.2.4
*/
html {
  scroll-behavior: smooth;
}

/* Patrocini e Media Partner - layout griglia */
.gt-event-patrocini,
.gt-event-media-partner {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 20px;
}

.gt-event-patrocini .gt-sidebar-box-title,
.gt-event-media-partner .gt-sidebar-box-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
}

.gt-event-patrocini .gt-sponsors-list,
.gt-event-media-partner .gt-sponsors-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gt-event-patrocini .gt-sponsor-item,
.gt-event-media-partner .gt-sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.gt-event-patrocini .gt-sponsor-item img,
.gt-event-media-partner .gt-sponsor-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.gt-event-patrocini .gt-sponsor-name,
.gt-event-media-partner .gt-sponsor-name {
    display: none; /* nascondi il testo se vuoi solo i loghi */
}

@media (max-width: 768px) {
    .gt-event-sponsors .gt-columns.gt-column-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.gt-page-title-bar {
    margin-bottom: 20px !important;
}

/* TEMA VISUALIZZAZIONE PAGINE FACETWP*/

/* Griglia 2 colonne */
.facetwp-template {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px !important;
    padding: 16px !important;
}

/* Card singola */
.custom-post-card {
    display: flex !important;
    flex-direction: column !important;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Immagine in cima */
.card-image-wrap {
    position: relative;
    width: 100% !important;
    min-width: unset !important;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badge categoria sovrapposto in basso all'immagine */
.card-category {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #4494ce;
    color: #fff;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 1.3;
    min-height: 50px; /* altezza minima fissa */
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Colonna testo */
.card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.card-date::before {
    content: "\f073"; /* icona calendario Font Awesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 6px;
    color: #999999;
}

.card-date {
    color: #999;
    font-size: 12px;
    margin-bottom: 8px;
    display: block;
}

.card-content h3 {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.4;
}

.card-content h3 a {
    color: #4494ce;
    text-decoration: none;
}

.card-content h3 a:hover {
    color: #142141 !important;
}

.card-content p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
    margin: 0 0 12px;
}

/* Bottone allineato a destra */
.card-btn {
    display: inline-block;
    padding: 9px 20px;
    background: #4494ce;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    border-radius: 4px;
    align-self: flex-end;
    margin-top: auto;
}

.card-btn {
    color: #fff !important;
}

.card-btn:hover {
    background: #142141 !important;
    color: #fff !important;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .facetwp-template {
        grid-template-columns: 1fr !important;
    }
    .custom-post-card {
        flex-direction: column !important;
    }
    .card-image-wrap {
        width: 100% !important;
        height: 200px;
        min-width: unset !important;
    }
}

/* Contenitore esterno del facet */
.facetwp-facet {
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Titolo categoria madre — fascia azzurra */
.facetwp-facet .facetwp-facet-label,
.searchandfilter > ul > li > h4 {
    background: #4494ce;
    color: #fff !important;
    font-weight: bold;
    font-size: 14px;
    padding: 12px 16px;
    margin: 0;
    display: block;
}

/* Lista voci */
.facetwp-facet ul {
    list-style: none;
    padding: 12px 16px;
    margin: 0;
}

.facetwp-facet ul li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.facetwp-facet ul li:last-child {
    border-bottom: none;
}

/* Checkbox moderna — nascondi quella nativa */
.facetwp-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    position: relative;
    padding-left: 28px;
}

/* Quadratino custom */
.facetwp-checkbox::before {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 16px;
    border: 2px solid #4494ce;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

/* Checkmark quando selezionato */
.facetwp-checkbox.checked::before {
    background: #4494ce;
    border-color: #4494ce;
}

.facetwp-checkbox.checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* Ghost (categorie vuote) — più leggere */
.facetwp-checkbox.facetwp-ghost {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Contatore post */
.facetwp-counter {
    margin-left: auto;
    color: #999;
    font-size: 12px;
}

/* Wrapper con bordo arrotondato */
.facet-wrapper {
    border: none !important;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f0f9ff;
}

/* Fascia titolo azzurra */
.facet-title {
    background: #4494ce;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    padding: 12px 16px;
    margin: 0;
}

/* Lista voci con padding */
.facetwp-facet ul {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Singola voce con filetto separatore */
.facetwp-radio {
    display: flex !important;
    align-items: flex-start !important; /* allineamento in alto */
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    position: relative;
    padding: 10px 16px !important;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
}

.facetwp-radio:last-child {
    border-bottom: none !important;
}

/* Cerchio radio custom — allineato in alto con margin-top */
.facetwp-radio::before {
    content: "";
    width: 16px;
    height: 16px;
    min-width: 16px; /* evita che si schiacci */
    border: 2px solid #4494ce;
    border-radius: 50%;
    background: #fff;
    margin-top: 2px; /* allinea visivamente al testo */
    transition: background 0.2s;
}

/* Radio selezionato */
.facetwp-radio.checked::before {
    background: #4494ce;
    border-color: #4494ce;
    box-shadow: inset 0 0 0 3px #fff;
}

/* Ghost — categorie vuote */
.facetwp-radio.facetwp-ghost {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Contatore */
.facetwp-counter {
    margin-left: auto;
    color: #999;
    font-size: 12px;
    white-space: nowrap;
    padding-left: 6px;
}

/* Reset completo del radio nativo FacetWP */
.facetwp-radio {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    position: relative;
    padding: 10px 16px !important;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
    /* Azzera qualsiasi stile radio nativo */
    background-image: none !important;
    list-style: none !important;
}

/* Cerchio custom con ::before */
.facetwp-radio::before {
    content: "";
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 2px solid #4494ce;
    border-radius: 50%;
    background: #fff;
    margin-top: 2px;
    flex-shrink: 0;
    transition: background 0.2s;
}

/* Selezionato */
.facetwp-radio.checked::before {
    background: #4494ce;
    border-color: #4494ce;
    box-shadow: inset 0 0 0 3px #fff;
}

.facetwp-facet-categories {
    background: #f0f9ff !important;
}

.gt-menu {
	text-transform: uppercase;
}

/* Hover tutti i menu gt-menu */
.gt-menu .nav-link:hover {
  color: #00a6f6 !important;
}

/* Voce attiva */
.gt-menu .active .nav-link,
.gt-menu .current-menu-item .nav-link {
  color: #00a6f6 !important;
}

.gt-event-style-2 .gt-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gt-event-style-2 .gt-image {
  width: 70px !important;
  height: 70px !important;
  min-width: 70px !important;
  min-height: 70px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.gt-event-style-2 .gt-image a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.gt-event-style-2 .gt-image img {
  width: 70px !important;
  height: 70px !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 70px !important;
  min-height: 70px !important;
  object-fit: cover !important;
}

.gt-event-style-2 {
  gap: 12px !important;
}

.gt-event-style-2 .gt-content {
  padding-left: 8px !important;
}

@media (max-width: 768px) {
  .gt-event-style-2 .gt-content {
    padding-left: 10px !important;
  }
}
