/**
 * Componente: Luoghi dell'Impatto
 * Design: Asimmetrico / Display Editorial / Zero Mobile Overflow
 */

/* Reset & Safeguard per evitare qualsiasi tipo di sbordo orizzontale */
.fvx-luoghi-container,
.fvx-luoghi-container * {
    box-sizing: border-box;
    max-width: 100%;
}

.fvx-luoghi-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem 5rem 1.25rem;
    overflow-x: hidden;
}

.fvx-luoghi-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    width: 100%;
}

.fvx-card-luogo {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 4rem;
    border-bottom: 2px solid #1a1a1a;
    width: 100%;
}

.fvx-card-luogo:last-child {
    border-bottom: none;
}

/* 1. Header & Meta */
.fvx-card-luogo__header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.fvx-card-luogo__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap; /* Fondamentale per far andare a capo l'indirizzo nei display stretti */
    width: 100%;
}

.fvx-card-luogo__badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border: 1px solid #1a1a1a;
    border-radius: 100px;
    line-height: 1;
    flex-shrink: 0;
}

.fvx-card-luogo__address {
    font-size: 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    opacity: 0.85;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.fvx-card-luogo__address .dashicons {
    font-size: 1.1rem;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.fvx-card-luogo__title {
    margin: 0.25rem 0 0 0;
    font-size: clamp(1.85rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #1a1a1a;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* 2. Middle Block (Media + Story) */
.fvx-card-luogo__middle {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

@media (min-width: 850px) {
    .fvx-card-luogo__middle {
        grid-template-columns: 420px 1fr;
        align-items: start;
        gap: 2.5rem;
    }
}

.fvx-card-luogo__media {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e5e5e5;
}

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

.fvx-card-luogo__story {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    width: 100%;
}

.fvx-story-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.fvx-story-block__label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a1a1a;
    position: relative;
    padding-left: 0.75rem;
}

.fvx-story-block__label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 100%;
    background-color: #1a1a1a;
}

.fvx-story-block__content p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #222222;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* 3. Footer (Metriche + Servizi) */
.fvx-card-luogo__footer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.2);
    width: 100%;
}

.fvx-card-luogo__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.fvx-metric-item {
    display: flex;
    flex-direction: column;
}

.fvx-metric-item__number {
    font-size: clamp(2.25rem, 7vw, 3.75rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #1a1a1a;
}

.fvx-metric-item__label {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0.4rem;
    color: #444444;
    word-break: break-word;
}

.fvx-card-luogo__services {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.fvx-card-luogo__services-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a1a1a;
}

.fvx-card-luogo__services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.fvx-card-luogo__service-pill {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a1a1a;
    border: 1.5px solid #1a1a1a;
    padding: 0.45rem 1rem;
    border-radius: 100px;
    background-color: transparent;
    cursor: default;
    user-select: none;
    word-break: break-word;
    text-decoration: none;
}