:root {
    --bg-llenc: #F9F8F6;
    --text-tinta: #1A1A1A;
    --text-secundari: #7A7A7A;
    --font-serif: 'Arial', sans-serif;
    --font-sans: 'Arial', sans-serif;
}

body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    background-color: var(--bg-llenc);
    color: var(--text-tinta);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

main {
    padding: 40px 8vw;
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
}

main.artista-main, main.contacte-main, main.legal-main, main.admin-main {
    padding: 80px 8vw;
    display: block;
}


/* =========================================
   PÀGINA: NOTA BIOGRÀFICA (Disseny Editorial)
   ========================================= */

.biografia-main {
    max-width: 1400px;
    margin: 30px auto; /* Marge superior generós */
    padding: 0 60px;
}

.biografia-layout {
    display: flex;
    gap: 0px; /* Separació visual entre l'esquerra buida i la dreta plena */
    width: 100%;
}

/* --- COLUMNA ESQUERRA (BUIDA) --- */
.empty-col {
    width: 0%;
    /* Al no tenir contingut ni estils, simplement ocuparà l'espai i crearà el buit visual */
}

/* --- COLUMNA DRETA (TEXT I IMATGE) --- */
.text-col {
    width: 47%; 
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: 12%;
}

/* Títol: JOAN FARRÉ PARADEDA | Malgrat de Mar, 1968 */
.bio-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px; /* Separació abans de començar el text */
}

.bio-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.bio-separator {
    color: var(--text-grey);
    font-weight: 300;
}

.bio-location {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-grey);
}

/* Estils dels paràgrafs */
.text-col p {
    font-size: 18px;
    line-height: 1.3; /* Interlineat ample per facilitar la lectura */
    color: var(--text-tinta);
    text-align: justify; /* Justificat perfecte */
    margin: 3px;
}

.highlight-name {
    color: var(--text-name);
    font-weight: 800;
}

/* Imatge al final del text */
.bio-image-wrapper {
    margin-top: 30px;
    width: 100%; /* Ocupa exactament el 100% de la columna de text */
}

.bio-img {
    width: 100%;
    height: auto; /* Manté la proporció original de la foto */
    display: block;
    object-fit: cover;
}

.titol{
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 40px;
    color: var(--text-tinta);
    text-align: center;
}

/* =========================================
   RESPONSIVE (Com es veu al mòbil)
   ========================================= */
@media (max-width: 960px) {
    .titol{
        font-size: 22px;
    }

    .biografia-main {
        padding: 40px 30px;
        margin: 20px auto;
    }

    .biografia-layout {
        flex-direction: column; /* Apilem les columnes */
        gap: 0;
    }

    .empty-col {
        display: none; /* Amaguem la columna buida perquè en mòbil aprofitarem tot l'espai */
    }

    .text-col {
        width: 100%; /* El text passa a ocupar tota l'amplada de la pantalla */
    }

    .bio-header {
        flex-wrap: wrap; /* Si el mòbil és molt estret, el títol baixa a la següent línia de forma ordenada */
        margin-bottom: 30px;
    }
}

/* =========================================
   PÀGINA: CONTACTE I HORARI
   ========================================= */

.contacte-section {
    margin-bottom: 10px;
}

.contacte-section h2 {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: #000;
    letter-spacing: 1px;
}

/* Modifiquem el text respecte a la biografia perquè no estigui justificat */
.text-col .contacte-section p {
    font-size: 17px;
    line-height: 1.3;
    color: var(--text-tinta);
    text-align: left; /* Alineat a l'esquerra, idèntic a la imatge */
    margin-bottom: 15px;
}

/* --- GRAELLA DE L'HORARI --- */
.schedule-grid {
    display: grid;
    grid-template-columns: 110px 290px; /* Ample exacte per la columna dels dies i la de les hores */
    grid-auto-rows: 23px; /* Alçada fixa de cada línia (Dilluns, Dimarts...) */
    align-items: center;
    margin-bottom: 30px;
    font-family: var(--font-sans);
    font-size: 16px;
    color: #000;
}

.cell-day {
    grid-column: 1;
}

.cell-time {
    grid-column: 2;
}

.day-bold {
    font-weight: 600;
}

/* La capsa que agrupa els 4 dies */
.cell-box {
    grid-column: 2;
    grid-row: 3 / span 4; /* Comença al dia 3 (Dimecres) i s'estira 4 files cap avall */
    border: 1.5px solid #000; /* Vora negra fina i elegant */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    box-sizing: border-box;
}

/* --- NÚMERO DE TELÈFON GRAN --- */
.phone-number {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-left: 5px;
    color: red;
    text-decoration: none;
}

/* --- RESPONSIVE (Mòbils) --- */
@media (max-width: 600px) {
    .schedule-grid {
        grid-template-columns: 100px 1fr; 
    }
    
    .cell-box {
        font-size: 13px;
        padding: 5px;
        text-align: center;
    }
    
    .phone-number {
        font-size: 20px;
    }
    
}


/* Contenedor del mapa */
.mapa-wrapper {
    flex: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10; /* Mantiene la proporción perfecta siempre. Puedes cambiarlo a 16/9 o 1/1 (cuadrado) */
    min-height: 300px; /* Tope mínimo para que no desaparezca en móviles muy pequeños */
    max-height: 600px; /* Tope máximo para monitores gigantes */
    background-color: #EAE8E3;
    overflow: hidden; /* Evita que el mapa sobresalga de la caja */
}

/* El mapa de Google (iframe) que se inyecta dentro */
.mapa-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}