/* ==================================================
   PÀGINA DE SERVEIS
   MERCAT DE L'ABACERIA CENTRAL
   ================================================== */


/* ==================================================
   CONTENIDOR GENERAL
   ================================================== */

.serveis-page {
    width: 100%;
}


/* ==================================================
   INTRODUCCIÓ
   ================================================== */

.serveis-intro {
    max-width: 1280px;
    margin: 55px auto 50px;
    padding: 0 55px;

    text-align: center;
}

.serveis-intro h1 {
    margin: 0 0 18px;

    font-size: 38px;
    line-height: 1.15;
    font-weight: 600;
}

.serveis-intro p {
    max-width: 760px;
    margin: 0 auto;

    font-size: 17px;
    line-height: 1.65;
    color: #555555;
}


/* ==================================================
   SECCIONS
   ================================================== */

.serveis-seccio {
    max-width: 1280px;

    margin: 0 auto;
    padding: 55px;
}


/* SECCIÓ AMB FONS */

.serveis-altern {
    max-width: none;

    padding-left: max(55px, calc((100% - 1170px) / 2));
    padding-right: max(55px, calc((100% - 1170px) / 2));

    background: #f7f7f5;
}


/* ==================================================
   TÍTOLS DE SECCIÓ
   ================================================== */

.serveis-titol {
    margin-bottom: 38px;
    text-align: center;
}

.serveis-titol h2 {
    margin: 0 0 12px;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
}

.serveis-titol p {
    max-width: 700px;

    margin: 0 auto;

    font-size: 16px;
    line-height: 1.6;

    color: #666666;
}


/* ==================================================
   GRID GENERAL
   ================================================== */

.serveis-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 48px 42px;
}


/* DOS ELEMENTS */

.serveis-grid-2 {
    max-width: 820px;

    margin: 0 auto;

    grid-template-columns: repeat(2, 1fr);
}


/* ==================================================
   TARGETES DE SERVEI
   ================================================== */

.servei-card {
    text-align: left;
}


/* ICONA */

.servei-icona {
    width: 105px;
    height: 105px;

    margin-bottom: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #E87524;

    border-radius: 18px;
}

.servei-icona span {
    font-size: 46px;
    line-height: 1;
}

/* ==================================================
   IMATGES DELS SERVEIS
   ================================================== */

.servei-imatge {
    width: 100%;
    margin-bottom: 24px;

    overflow: hidden;

    border-radius: 12px;
}

.servei-imatge img {
    width: 100%;
    height: auto;

    display: block;
}

/* TÍTOL */

.servei-card h3 {
    margin: 0 0 13px;

    font-size: 22px;
    line-height: 1.25;
    font-weight: 600;
}


/* TEXT */

.servei-card p {
    margin: 0;

    font-size: 16px;
    line-height: 1.6;

    color: #555555;
}


/* ==================================================
   SEGURETAT
   ================================================== */

.serveis-seguretat {
    padding-top: 50px;
    padding-bottom: 50px;
}

.seguretat-grid {
    max-width: 900px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 30px;
}

.seguretat-item {
    display: flex;
    align-items: flex-start;

    gap: 20px;

    padding: 25px;

    background: #f7f7f5;

    border-radius: 10px;
}

.seguretat-icona {
    flex-shrink: 0;

    font-size: 40px;
    line-height: 1;
}

.seguretat-item h3 {
    margin: 0 0 7px;

    font-size: 20px;
    font-weight: 600;
}

.seguretat-item p {
    margin: 0;

    font-size: 15px;
    line-height: 1.55;

    color: #555555;
}


/* ==================================================
   ESPAIS DEL MERCAT
   ================================================== */

.espai-destacat {
    max-width: 1100px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.15fr 1fr;

    align-items: center;

    gap: 55px;
}


/* IMATGE */

.espai-imatge {
    overflow: hidden;

    border-radius: 14px;
}

.espai-imatge img {
    width: 100%;
    height: 390px;

    display: block;

    object-fit: cover;
}


/* PLACEHOLDER TEMPORAL */

.espai-placeholder {
    height: 390px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e9e9e6;

    border-radius: 14px;

    color: #777777;

    font-size: 20px;
}


/* TEXT */

.espai-etiqueta {
    display: inline-block;

    margin-bottom: 12px;

    padding: 7px 13px;

    background: #E87524;
    color: #ffffff;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.espai-contingut h3 {
    margin: 0 0 18px;

    font-size: 29px;
    line-height: 1.2;
    font-weight: 600;
}

.espai-contingut p {
    margin: 0 0 15px;

    font-size: 16px;
    line-height: 1.65;

    color: #555555;
}


/* USOS */

.espai-usos {
    margin-top: 25px;

    display: flex;
    flex-wrap: wrap;

    gap: 9px;
}

.espai-usos span {
    padding: 7px 13px;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 20px;

    font-size: 14px;
}


/* ==================================================
   INICIATIVES
   ================================================== */

.iniciatives-mercat {
    padding-top: 60px;
    padding-bottom: 70px;
}

.iniciativa-destacada {
    max-width: 950px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 35px;

    padding: 35px 40px;

    background: #E87524;
    color: #ffffff;

    border-radius: 14px;
}

.iniciativa-icona {
    flex-shrink: 0;

    font-size: 65px;
    line-height: 1;
}

.iniciativa-contingut h3 {
    margin: 0 0 12px;

    font-size: 25px;
    line-height: 1.2;
    font-weight: 600;

    color: #ffffff;
}

.iniciativa-contingut p {
    margin: 0;

    font-size: 16px;
    line-height: 1.6;

    color: #ffffff;
}


/* ==================================================
   BOTÓ
   ================================================== */

.serveis-boto {
    display: inline-block;

    margin-top: 20px;
    padding: 11px 20px;

    background: #ffffff;
    color: #E87524;

    border-radius: 7px;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.serveis-boto:hover {
    background: #333333;
    color: #ffffff;
}

/* ==================================================
   SORTEIG DE TIQUETS
   ================================================== */

.sorteig-info {
    max-width: 950px;
    margin: 25px auto 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 30px 35px;

    background: #f7f7f5;

    border-left: 5px solid #E87524;
    border-radius: 10px;
}

.sorteig-patrocinador {
    flex: 1;
}

.sorteig-etiqueta {
    display: inline-block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 700;

    color: #E87524;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sorteig-patrocinador h3 {
    margin: 0 0 10px;

    font-size: 23px;
    line-height: 1.25;
    font-weight: 600;

    color: #222222;
}

.sorteig-patrocinador p {
    margin: 0 0 7px;

    font-size: 15px;
    line-height: 1.6;

    color: #555555;
}

.sorteig-text-secundari {
    font-weight: 500;
}

.sorteig-accio {
    flex-shrink: 0;
}

.sorteig-boto {
    display: inline-block;

    padding: 12px 20px;

    background: #E87524;
    color: #ffffff;

    border-radius: 7px;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.sorteig-boto:hover {
    background: #C95F16;
    color: #ffffff;

    transform: translateY(-1px);
}


/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 1024px) {

    .serveis-seccio,
    .serveis-intro {
        padding-left: 35px;
        padding-right: 35px;
    }

    .serveis-altern {
        padding-left: 35px;
        padding-right: 35px;
    }

    .serveis-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .espai-destacat {
        gap: 35px;
    }

}


/* ==================================================
   MÒBIL
   ================================================== */

@media (max-width: 700px) {
	
	.menu-serveis-grid {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}

    .serveis-intro {
        margin-top: 35px;
        margin-bottom: 25px;

        padding-left: 22px;
        padding-right: 22px;
    }

    .serveis-intro h1 {
        font-size: 31px;
    }

    .serveis-intro p {
        font-size: 16px;
    }


    .serveis-seccio {
        padding: 40px 22px;
    }

    .serveis-altern {
        padding-left: 22px;
        padding-right: 22px;
    }


    .serveis-titol {
        margin-bottom: 30px;
    }

    .serveis-titol h2 {
        font-size: 27px;
    }


    .serveis-grid,
	.serveis-grid-2 {
        grid-template-columns: repeat(2, 1fr);

        gap: 38px;
    }


    .servei-card {
        text-align: center;
    }

    .servei-icona {
        width: 90px;
        height: 90px;

        margin: 0 auto 18px;
    }

    .servei-icona span {
        font-size: 40px;
    }


    .seguretat-grid {
        grid-template-columns: 1fr;
    }


    .espai-destacat {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .espai-imatge img,
    .espai-placeholder {
        height: 280px;
    }


    .iniciativa-destacada {
        flex-direction: column;

        padding: 30px 25px;

        text-align: center;
    }
	
	.sorteig-info {
        flex-direction: column;
        align-items: flex-start;

        gap: 20px;

        padding: 25px;
    }

    .sorteig-accio,
    .sorteig-boto {
        width: 100%;
    }

    .sorteig-boto {
        text-align: center;
    }

}


   