/*
 * Offset d'àncores en mòbil.
 * Divi ignora scroll-margin quan anima el scroll; això cobreix el salt natiu amb #hash.
 * El JS de scripts.js actualitza --dms3-anchor-offset amb l'altura real del header.
 */

:root {
	--dms3-anchor-offset: 72px;
}

@media (max-width: 980px) {
	html {
		scroll-padding-top: var(--dms3-anchor-offset);
	}
}

/* FORMULARI CONTACTE — bloc legal i botó — IQ 280926 */
.contact-form-col #gform_wrapper_1 .gfield--type-consent,
.contact-form-col #gform_wrapper_1 .gfield--type-html {
	margin: 0;
}
.contact-form-col #gform_wrapper_1 .gfield_consent_label,
.contact-form-col #gform_wrapper_1 .gfield_consent_description,
.contact-form-col #gform_wrapper_1 .gfield_consent_description_text,
.contact-form-col #gform_wrapper_1 .gfield--type-html,
.contact-form-col #gform_wrapper_1 .gfield--type-html a,
.contact-form-col #gform_wrapper_1 .gfield--type-html strong,
.contact-form-col #gform_wrapper_1 .gfield_consent_description strong {
	font-size: 90% !important;
	font-weight: 400 !important;
	line-height: 1.45 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	opacity: 1 !important;
}
.contact-form-col #gform_wrapper_1 .gfield--type-html strong,
.contact-form-col #gform_wrapper_1 .gfield_consent_description strong {
	font-weight: 700!important;
}
.contact-form-col #gform_wrapper_1 .gfield_consent_description,
.contact-form-col #gform_wrapper_1 .gfield_consent_description strong,
.contact-form-col #gform_wrapper_1 .gfield--type-html,
.contact-form-col #gform_wrapper_1 .gfield--type-html strong,
.contact-form-col #gform_wrapper_1 .gfield--type-html a {
	color: #a0a0a0 !important;
	text-decoration: none !important;
}
.contact-form-col #gform_wrapper_1 .gfield_consent_description {
	border-radius: 0 !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	max-width: none !important;
	margin-top: 12px;
	padding: 16px 18px !important;
	background-color: rgba(255, 255, 255, 0.06) !important;
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
}
.contact-form-col #gform_wrapper_1 .gfield_consent_description a {
	color: #f43f5e !important;
	font-weight: 400 !important;
	font-size: inherit !important;
	text-decoration: none !important;
}
.contact-form-col #gform_wrapper_1 .gfield--type-html {
	margin-top: 10px;
}
.contact-form-col #gform_wrapper_1 .gform_footer {
	float: none !important;
	margin-top: 18px !important;
}
.contact-form-col #gform_wrapper_1 #gform_submit_button_1,
.contact-form-col #gform_wrapper_1 input[type="submit"] {
	width: 100%;
	background: rgba(255, 255, 255, 0.15) !important;
	background-color: rgba(255, 255, 255, 0.15) !important;
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	border-radius: 100px !important;
	padding: 12px 22px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	box-shadow: none !important;
}
.contact-form-col #gform_wrapper_1 #gform_submit_button_1:hover,
.contact-form-col #gform_wrapper_1 input[type="submit"]:hover {
	background: rgba(255, 255, 255, 0.28) !important;
	background-color: rgba(255, 255, 255, 0.28) !important;
	color: #ffffff !important;
}

.gfield_consent_description {
	width:100%!important;
	max-width:100%!important;
}

.et_header_style_left #et-top-navigation nav > ul > li > a, .et_header_style_split #et-top-navigation nav > ul > li > a {
	font-weight:400;
}
body {
	font-weight:400;
}
.et_header_style_left #et-top-navigation nav > ul > li.wpml-ls-item a:has(+ .sub-menu) {
	padding-bottom:15px!important;
}
#top-menu li.wpml-ls-item li, #top-menu li.wpml-ls-item li > a, #top-menu li.wpml-ls-item ul {
	padding:0px!important;
	width:fit-content!important;
	border:0px;
	font-weight:400;
}

/*ESTILS INICI*/
:root {
	--color-blanc-opac: hsl(from var(--gcid-heading-color) calc(h + 0) calc(s + 0) calc(l + 0) / 0.15);
	--vermell: #f43f5e;
	--h1-size:var(--gvid-fz1eopsi39, 50px);
}
/*ESTILS FINAL*/
:root {
	--content-width:90%!important;
}
.container {
	width:var(--content-width)!important;
}
/**/
body {
	background-color: #000000 !important;
}
h1 {
	font-size:var(--h1-size);
	font-weight:800;
}
/**/

/* MENU - PMV*/
/*#main-header.et-fixed-header ul#top-menu li a {
	font-size: 0.8rem !important;
}*/

.et-fixed-header #top-menu li.current-menu-ancestor>a, .et-fixed-header #top-menu li.current-menu-item>a, .et-fixed-header #top-menu li.current_page_item>a, #top-menu li a {
	color: #FFF !important;
}

.et-fixed-header #top-menu li a, #top-menu li a {
	transition: all 0.2s ease;
}

.et-fixed-header #top-menu li a:hover {
	color: #F43F5E !important; 
}

/**/

/*FOOTER - PMV*/

.dipi-social-icon.dipi-social-icon-box-style {
    background: transparent !important;
    background-color: transparent !important;
}

.dipi-social-icon .dipi-icon svg,
.dipi-social-icon svg {
    fill: #fff !important;
    color: #fff !important;
}

.dipi-social-icon {
    border-radius: 0 !important;
    padding: 5px !important;
}

.dipi-footer-menu-social-icons {
    margin-bottom: 0 !important;
}
#footer-info {
	height:fit-content!important;
	padding:0px;
}
#footer-bottom {
	border-top-width:1px;
	border-top-style:solid;
	border-top-color:rgba(255, 255, 255, 0.15);
	padding:15px 0px;
}
#main-header {
	border-bottom-width:1px;
	border-bottom-style:solid;
	border-bottom-color:rgba(255, 255, 255, 0.15);
}

/**/

/* IDIOMES GRABACIÓ INICI */ 
.idiomas-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;   
    gap: 12px;
    min-height: 100%; 
}

.idiomas-label {
    display: flex;
    align-items: center;
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
}

.idiomas-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;  
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0 !important;
}

.idiomas-list li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 2px 10px;
    border: 1px solid;
	border-color: var(--color-blanc-opac);
    border-radius: 8px;
	background-color: var(--color-blanc-opac);
	color: #fff;
    text-transform: uppercase;
}
/* IDIOMES GRABACIÓ FINAL */

/* H2 AMB BORDER VERMELL */
/* Títol amb barra vermella a l'esquerra
h2.red-border {
    position: relative;
    margin: 0;
    padding: 0 0 10px 15px;
    border: none;
    background: none;
}

h2.red-border::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 0.08em;             
    width: 6px;        
    height: 0.95em;  
    background-color: #f43f5e;
    border-radius: 999px;
}

.et_pb_text h2.red-border {
    border: none !important;
}
/* H2 AMB BORDER VERMELL FINAL */

/* CONTACTO INICI - PMV */
/* Cercle darrere la icona */
.contact-card .et_pb_main_blurb_image .et-pb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-blanc-opac);
    border: 1px solid var(--color-blanc-opac);
    border-radius: 50%;
}

/* Label i valor més junts */
.contact-card .et_pb_module_header {
    margin-bottom: 4px;
    padding-bottom: 0;
}

.contact-card .et_pb_blurb_description {
    margin-top: 0;
    font-weight: 700;
}

/* Hover */
.contact-card.et_pb_blurb:hover {
    background-color: var(--color-blanc-opac) !important;
}

.contact-card.et_pb_blurb_position_left .et_pb_blurb_content {
    position: relative;
    padding-right: 28px;
}

.contact-card.et_pb_blurb_position_left .et_pb_blurb_content::after {
    content: "↗";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
}

/* Gravity Form #1 — Joel Vox */
.gform_wrapper {
	accent-color:#f43f5e;
}
.gform_wrapper.gravity-theme .field_description_below .gfield_consent_description, .gform_wrapper.gravity-theme .gfield_consent_description {
	font-size:80%!important;
	height:60px;
	color:white;
	opacity:0.5;
	border-radius:10px;
}
.gform_wrapper.gravity-theme .field_description_below .gfield_consent_description a, .gform_wrapper.gravity-theme .gfield_consent_description a {
	color:white;
	font-weight:700;
	text-decoration:underline;
	
}
.contact-form-col #gform_wrapper_1 {
    margin: 0;
    max-width: 100%;
}

/* Amaga títol/descripció del formulari */
.contact-form-col #gform_wrapper_1 .gform_heading {
    display: none;
}

/* Espai entre camps */
.contact-form-col #gform_wrapper_1 .gform_fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form-col #gform_wrapper_1 .gfield {
    margin: 0;
    padding: 0;
}

/* Labels: majúscules, gris, petit */
.contact-form-col #gform_wrapper_1 .gfield_label,
.contact-form-col #gform_wrapper_1 legend.gfield_label {
    display: block;
    color: #808080;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 8px 4px;
    line-height: 1;
}

.contact-form-col #gform_wrapper_1 .gfield_required {
    color: #f43f5e;
}

/* Inputs i textarea — pastilla */
.contact-form-col #gform_wrapper_1 input[type="text"],
.contact-form-col #gform_wrapper_1 input[type="email"],
.contact-form-col #gform_wrapper_1 input[type="tel"],
.contact-form-col #gform_wrapper_1 input[type="url"],
.contact-form-col #gform_wrapper_1 input[type="number"],
.contact-form-col #gform_wrapper_1 textarea,
.contact-form-col #gform_wrapper_1 select {
    width: 100%;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 999px;
    color: #fff;
    padding: 11px 18px;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

/* Textarea: pastilla però més alta */
.contact-form-col #gform_wrapper_1 textarea {
    border-radius: 20px;
    min-height: 110px;
    resize: vertical;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Placeholders */
.contact-form-col #gform_wrapper_1 input::placeholder,
.contact-form-col #gform_wrapper_1 textarea::placeholder {
    color: #a0a0a0;
    opacity: 1;
}

/* Focus */
.contact-form-col #gform_wrapper_1 input:focus,
.contact-form-col #gform_wrapper_1 textarea:focus,
.contact-form-col #gform_wrapper_1 select:focus {
    outline: none;
    border-color: #444;
}

/* Botó enviar — blanc, pastilla, ample complet */
.contact-form-col #gform_wrapper_1 .gform_footer {
    margin: 24px 0 0;
    padding: 0;
}

.contact-form-col #gform_wrapper_1 #gform_submit_button_1,
.contact-form-col #gform_wrapper_1 input[type="submit"] {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 999px;
    padding: 16px 28px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.contact-form-col #gform_wrapper_1 #gform_submit_button_1:hover {
    background: #e8e8e8;
}

/* Errors */
.contact-form-col #gform_wrapper_1 .gfield_error input,
.contact-form-col #gform_wrapper_1 .gfield_error textarea {
    border-color: #f43f5e;
}

.contact-form-col #gform_wrapper_1 .validation_message {
    color: #f43f5e;
    font-size: 0.8rem;
    margin: 6px 0 0 4px;
    font-weight: 400;
    text-transform: none;
}

.contact-form-col #gform_wrapper_1 .gform_validation_errors {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid #f43f5e;
    border-radius: 16px;
    color: #fff;
    padding: 12px 16px;
    margin-bottom: 20px;
}

/* Missatge d'èxit */
.contact-form-col #gform_wrapper_1 .gform_confirmation_message {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 16px 20px;
}

/* Checkbox / privacitat */
.contact-form-col #gform_wrapper_1 .gfield_checkbox label,
.contact-form-col #gform_wrapper_1 .gfield_radio label,
.contact-form-col #gform_wrapper_1 .gfield_consent_label {
    color: #a0a0a0;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
/*CONTACTO FINAL - PMV*/

/* Color de l'enllaç actiu del menú del footer */
#et-footer-nav .bottom-nav li.current-menu-item > a,
#et-footer-nav .bottom-nav li.current_page_item > a,
#et-footer-nav .bottom-nav li.current-menu-ancestor > a {
    color: #f43f5e !important;
}

ul#menu-menu-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem 1rem;
}

@media (max-width: 480px) {
	ul#menu-menu-legal {
		flex-direction: column;
	}
}

/* Breadcrumbs a tota l'amplada */
.dms3breadcrumbs.et_pb_row {
	background-color: transparent !important;
	box-sizing: border-box;
	border-bottom-width:1px;
	border-bottom-style:solid;
	border-bottom-color:rgba(255, 255, 255, 0.15);
	padding:5px 0px!important;
	width:100%!important;
	max-width:none!important;
}
.dms3breadcrumbs.et_pb_row .rank-math-breadcrumb {
	max-width:1280px!important;
	width:90%!important;
	margin:auto!important;
}

/* Text, enllaços i separadors */
.dms3breadcrumbs .rank-math-breadcrumb,
.dms3breadcrumbs .rank-math-breadcrumb p,
.dms3breadcrumbs .rank-math-breadcrumb a,
.dms3breadcrumbs .rank-math-breadcrumb span {
	color: #fff !important;
	text-align:right;
	opacity:0.90;
	font-size:95%;
}

/* Enllaç en passar-hi per sobre */
.dms3breadcrumbs .rank-math-breadcrumb a:hover {
	color: #fff !important;
	opacity: 0.75;
}
/*Hover targetes de serveis*/ 
.targeta-servei {
	cursor: pointer;
	transition: transform 0.3s ease, filter 0.3s ease;
}

.targeta-servei:hover {
	transform: scale(1.03);
	filter: brightness(1.15);
} 
/* Menú i separadors d'idiomes WPML */
@media (min-width: 981px) {

    #et-top-navigation #top-menu > li:not(.wpml-ls-item) {
        padding-right: 12px !important;
    }

    #et-top-navigation #top-menu > li.wpml-ls-item {
        position: relative;
        /* 1px de la barra + el mateix buit (5px) fins al text */
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* L'espai en blanc entre <li> empeny el text cap a la barra esquerra */
    #et-top-navigation #top-menu > li.wpml-ls-item + li.wpml-ls-item {
        margin-left: -3.53px !important;
    }

    /* 90% de la mida del text del menú */
    #top-menu > li.wpml-ls-item > a .wpml-ls-native {
        font-size: 90%;
        line-height: 1;
    }

    /* Barra 2px per sobre i 2px per sota del text visible de l'idioma.
       La caché de Divi encara porta l'alçada antiga i es carrega després. */
    #et-top-navigation #top-menu > li.wpml-ls-item::before,
    #et-top-navigation #top-menu > li:not(.wpml-ls-item) + li.wpml-ls-item::before {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        top: 0.87px !important;
        width: 1px !important;
        height: 12.75px !important;
        background: rgba(255, 255, 255, 0.55) !important;
    }

}
/* Idiomes de gravació - treure aspecte de botó */
.idiomas-grabacion li {
    background: transparent !important;
   
}
/*Descripció legal sense scroll*/
.gform_wrapper .gfield_description,
.gform_wrapper .gfield_consent_description {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}
/*Enllaç url consent formulari*/
.gform_wrapper .gfield_consent_description a {
    color: #f43f5e !important;
    text-decoration: underline;
}
@media (max-width: 980px) {

    .et_mobile_menu {
        text-align: center !important;
    }

    .et_mobile_menu > li.wpml-ls-item {
        display: inline-block !important;
        width: auto !important;
        float: none !important;
        margin: 0 4px !important;
    }

    .et_mobile_menu > li:not(.wpml-ls-item) + li.wpml-ls-item {
        margin-top: 30px !important;
    }

    .et_mobile_menu > li.wpml-ls-item > a {
        display: inline-block !important;
        width: auto !important;
        padding: 6px 10px !important;
    }

}
.contact-form-col #gform_wrapper_1 .gfield_consent_description {
	border-radius:8px!important;
}

.gform_wrapper.gravity-theme .gfield_consent_description_text {
	border: 0px !important;
	padding:0px!important;
}

/* DMS3 YouTube Playlist — Joel */
.dms3-ytp-thumb {
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pastilla com els botons Divi (p. ex. Ver más sobre La Sexta) */
.dms3-ytp .dms3-ytp-loadmore {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 100px;
	color: #fff;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.7;
	letter-spacing: normal;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.dms3-ytp .dms3-ytp-loadmore:hover,
.dms3-ytp .dms3-ytp-loadmore:focus-visible {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.25);
	color: #fff;
	text-decoration: none;
	outline: none;
}


a:not(.et_pb_button), a:not(.et-pb-icon) {
	text-decoration:underline;
	text-underline-offset:2px;
}
a.et_pb_button, a.et-pb-icon,  a:has(.et-pb-icon) {
	text-decoration:none!important;
}