/**
 * Custom CSS — Portale della Cultura
 * Child theme: design-comuni-child
 *
 * Compatibile con Bootstrap Italia / Design Comuni Italia
 * NON sovrascrivere variabili core Bootstrap Italia
 */

/* ============================================================
   VARIABILI LOCALI CULTURA
   ============================================================ */
:root {
    --cultura-hero-height: 520px;
    --cultura-hero-overlay: rgba(0, 0, 0, 0.52);
    --cultura-eyebrow-color: rgba(255, 255, 255, 0.75);
    --cultura-card-evidenza-bg: #1a3a5c; /* blu istituzionale scuro */
}

/* ============================================================
   HERO CULTURA
   ============================================================ */
.hero-cultura-section {
    position: relative;
    min-height: var(--cultura-hero-height);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-cultura-overlay {
    position: absolute;
    inset: 0;
    background: var(--cultura-hero-overlay);
    z-index: 0;
}

.hero-cultura-content {
    position: relative;
    z-index: 1;
    padding-top: 4rem;
    padding-bottom: 4rem;
    color: #ffffff;
}

.hero-cultura-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cultura-eyebrow-color);
    margin-bottom: 0.5rem;
}

.hero-cultura-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 1rem;
}

.hero-cultura-desc {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
    margin-bottom: 0;
}

/* Bottone outline bianco nel hero */
.btn-outline-white {
    color: #ffffff;
    border-color: #ffffff;
    background: transparent;
}
.btn-outline-white:hover,
.btn-outline-white:focus {
    color: #1a3a5c;
    background-color: #ffffff;
    border-color: #ffffff;
}

/* ============================================================
   CARD LUOGHI
   ============================================================ */
.card-img-wrapper {
    overflow: hidden;
    height: 180px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.04);
}

/* ============================================================
   CARD SERVIZI IN EVIDENZA
   ============================================================ */
.card-evidenza {
    background-color: var(--cultura-card-evidenza-bg) !important;
    color: #ffffff;
}

.card-evidenza .card-title,
.card-evidenza .card-text {
    color: #ffffff;
}

/* ============================================================
   SEZIONI HOMEPAGE
   ============================================================ */
#notizie-cultura .section-title,
#eventi-cultura .section-title,
#luoghi-cultura .section-title,
#servizi-cultura .section-title {
    border-left: 4px solid var(--bs-primary, #0066cc);
    padding-left: 0.75rem;
}

/* Gap responsive tra CTA hero */
.hero-cultura-cta {
    gap: 1rem;
}

@media (max-width: 576px) {
    .hero-cultura-cta .btn {
        width: 100%;
        text-align: center;
    }

    .hero-cultura-section {
        min-height: 420px;
    }
}

/* ============================================================
   ACCESSIBILITÀ — focus visibile (AGID WCAG 2.1 AA)
   ============================================================ */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #ff9800;
    outline-offset: 2px;
    border-radius: 2px;
}
/* ============================================================
   BOOKLY — Override variabili colore e selettori reali
   ============================================================ */

/* Sovrascrive variabili inline con !important */
.bookly-css-root {
    --bookly-main-color: #006633 !important;
    --bookly-color: #006633 !important;
}

/* Pulsanti */
.bookly-css-root .bookly-btn {
    background-color: #006633 !important;
    border-color: #006633 !important;
    color: #ffffff !important;
}

/* Barra progresso step attivo */
.bookly-css-root .bookly-progress-tracker .active {
    color: #006633 !important;
}

/* Nasconde Categoria */
.bookly-css-root .bookly-form-group[data-type="category"] {
    display: none !important;
}

/* Nasconde Incaricato */
.bookly-css-root .bookly-form-group[data-type="staff"] {
    display: none !important;
}