/* ═══════════════════════════════════════════════════
   Inmobiliare Speakers Grid — CSS v2.4.0
   Single info-area approach:
   - Name + company + separator ALWAYS visible
   - Social icons fade in on hover
   - Gradient grows darker/taller on hover
   ═══════════════════════════════════════════════════ */

/* ── Grid ── */
.inm-spk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 15px;
    row-gap: 15px;
    width: 100%;
}

.inm-spk-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* ── Card ── */
.inm-spk-card {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 7px 7px;
}

.inm-spk-card > img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.inm-spk-card:hover > img {
    transform: scale(1.05);
}

/* ── Gradient overlay — ALWAYS visible ──
   Permanent dark gradient at the bottom so
   name/company are always readable.
   On hover it covers more area and gets darker.
   ──────────────────────────────────────── */
.inm-spk-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(24, 24, 24, 0.75) 40%,
        rgba(24, 24, 24, 0.95) 100%
    );
    z-index: 1;
    pointer-events: none;
    transition: height 0.4s ease, background 0.4s ease;
}

.inm-spk-card:hover .inm-spk-gradient {
    height: 70%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(67, 63, 114, 0.6) 30%,
        rgba(24, 24, 24, 0.95) 100%
    );
}

/* ── Info area — ALWAYS visible at bottom ──
   Contains name, company, separator bar,
   optional description, and social icons.
   ──────────────────────────────────────── */
.inm-spk-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

/* ── Name ──
   Foto 1: Anek Malayalam, ~1.3125rem, 600, line-height 1.15, letter-spacing -0.5px
   ──────── */
.inm-spk-name {
    color: #ffffff;
    font-size: clamp(1.3125rem, 1.1658rem + 0.6522vw, 1.6875rem);
    font-weight: 600;
    line-height: 1.15em;
    letter-spacing: -0.5px;
    margin: 0;
}

.inm-spk-name a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.inm-spk-name a:hover {
    opacity: 0.85;
}

/* ── Company (designation field) ──
   Foto 2: Anek Malayalam, ~0.8125rem, 500, uppercase, line-height 1, letter-spacing 1px
   ──────── */
.inm-spk-desg {
    color: #ffffff;
    font-size: clamp(0.8125rem, 0.7636rem + 0.2174vw, 0.9375rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1em;
    margin: 4px 0 0;
}

/* ── Separator bar ── */
.inm-spk-bar {
    display: inline-block;
    width: 50px;
    height: 3px;
    background-color: #cddc39;
    border-radius: 2px;
    margin-top: 10px;
}

/* ── Description ──
   Foto 3: Anek Malayalam, ~0.8125rem, 500, uppercase, line-height 1, letter-spacing 1px
   ──────── */
.inm-spk-desc {
    color: rgba(255, 255, 255, 0.67);
    font-size: clamp(0.7rem, 0.7636rem + 0.05vw, 0.8125rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1em;
    margin: 8px 0 0;
}

/* ── Social icons — hidden by default, fade in on hover ── */
.inm-spk-social {
    display: block;
    padding: 0;
    margin: 0;
    text-align: center;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
}

.inm-spk-card:hover .inm-spk-social {
    max-height: 80px;
    opacity: 1;
    margin-top: 12px;
}

.inm-spk-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    line-height: 32px;
    border-radius: 50%;
    background-color: rgba(24, 24, 24, 0.48);
    color: #fd2270;
    text-decoration: none;
    font-size: 16px;
    margin: 3px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.inm-spk-social a:hover {
    background-color: #fd2270;
    color: #ffffff;
    transform: scale(1.1);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
    .inm-spk-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .inm-spk-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .inm-spk-name {
        font-size: 1.1rem;
    }
}
