/* ==========================================================================
   ESTILS ESPECÍFICS PER A LA PÀGINA D'HISTÒRIA (MANTENINT NITIDESA DIGITAL)
   ========================================================================== */

.content-historia {
  
}

/* Hero Capçalera - Primera foto de dalt */
.historia-hero {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 400px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    margin-bottom: 25px;
}

.hero-main-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(17, 17, 17, 0.85) 100%);
    pointer-events: none;
}

/* Estructura de la Cronologia */
.seccio-cronologia {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 10px;
    box-sizing: border-box;
}

.bloc-historia-card {
    background: rgba(25, 25, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.bloc-historia-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.3);
}

.indicador-or {
    width: 5px;
    background: linear-gradient(to bottom, #d4af37, #8b6914);
    flex-shrink: 0;
}

.contingut-card {
    padding: 30px;
    text-align: left;
    width: 100%;
}

.any-destacat {
    display: inline-block;
    color: #d4af37;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.contingut-card h3 {
    font-family: 'Georgia', serif;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 400;
}

.contingut-card p {
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

/* Bloc de la Segona Imatge (image_c3b5fc.jpg) - Enfocat en la màxima definició */
.seccio-arxiu-show {
    width: 100%;
    margin: 25px 0;
    text-align: center;
}

.contenedor-imatge-historia {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 6px;
    overflow: hidden;
    background-color: #141414;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
}

.marc-intern-decoratiu {
    padding: 12px;
    background: #0d0d0d;
}

.img-historia-secundaria {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain; /* Evita qualsevol tipus de distorsió o pixelat artificial */
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.peu-foto-daurat {
    background: #161616;
    color: #b8860b;
    font-size: 0.85rem;
    padding: 12px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    font-style: italic;
    letter-spacing: 0.5px;
}

.separador-elegant-historia {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 35px 0 20px 0;
}

.titol-esdeveniment {
    font-family: 'Georgia', serif;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 400;
    margin: 0;
    white-space: nowrap;
}

.nav-menu a.active {
    color: #b8860b !important;
}

/* ADJUST RESPONSIVE SENSE PERDRE PROPORCIONS */
@media (max-width: 768px) {
    /* Amb la capsalera sticky ja no cal compensar la seva alcada */
    .content-historia {
       padding-top: 30px !important;
    }

.hero-image-wrapper {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }
    
    .titol-seccio-premium {
        font-size: 1.8rem !important;
    }

    .contingut-card {
        padding: 20px;
    }

    .titol-esdeveniment {
        font-size: 1.3rem;
    }

    .marc-intern-decoratiu {
        padding: 6px;
    }
}