@font-face {
    font-family: 'Residenz Grotesk Medium';
    src: url('fonts/ResidenzGrotesk-Medium.woff2') format('woff2'),
        url('fonts/ResidenzGrotesk-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Residenz Grotesk';
    src: url('fonts/ResidenzGrotesk-Regular.woff2') format('woff2'),
        url('fonts/ResidenzGrotesk-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Residenz Grotesk SemiBold';
    src: url('fonts/ResidenzGrotesk-SemiBold.woff2') format('woff2'),
        url('fonts/ResidenzGrotesk-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Samzara Italic';
    src: url('fonts/Samzara-Italic.woff2') format('woff2'),
        url('fonts/Samzara-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Samzara';
    src: url('fonts/Samzara-Regular.woff2') format('woff2'),
        url('fonts/Samzara-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}





* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
	--vermell: #E73331;
	--destacat: 'Samzara';
	--cursiva: 'Samzara Italic';
	--palsec: 'Residenz Grotesk';
	--medium: 'Residenz Grotesk Medium';
	--semibold: 'Residenz Grotesk SemiBold';
}

html {
    /* scroll-behavior: smooth; */
    text-rendering: optimizeSpeed;
}

body {
    font-family: sans-serif;
    font-family: var(--palsec);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
}

h3 {
	font-family: sans-serif;
	font-family: var(--medium);
}

strong {
	font-family: sans-serif;
	font-family: var(--semibold);
}

em {
	font-family: serif;
	font-family: var(--cursiva);
}

a {
    color: var(--vermell);
    text-decoration: none;
}

.versaleta {
	font-variant: small-caps;
	font-size: 1.1em;
	line-height: 1;
}

img {
    height: auto;
    max-width: 100%;
    display: block;
}

.container {
	max-width: 480px;
	padding: 20px;
}

.cap {
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
}

.logo {
	width: 50%;
	max-width: 250px;
}

.segell {
	width: 20%;
	max-width: 75px;
	margin-top: -10px
}

.peu-portada {
	font-size: .8em;
	margin: 10px 0;
}

.titol-planol {
	margin: 50px 0 30px;
}

.titol-planol h1 {
	color: var(--vermell);
	text-transform: uppercase;
	line-height: 1.2;
	font-family: sans-serif;
	font-family: var(--semibold);
}

.titol-planol h1 .dialegs {
	font-family: serif;
	font-family: var(--destacat);
	line-height: 1.2;
}

.lema {
	font-size: 1.5em;
	display: block;
	margin-top: -7px;
	font-family: serif;
	font-family: var(--destacat);
}

.data {
	font-size: 0.8em;
}

.descripcio {
	margin: 20px 0;
}

.descripcio p {
    margin-bottom: 1em
}

.descripcio em {
	font-family: var(--cursiva);
}

#planols {
	margin: 50px 0;
}

#planols > div {
	padding-top: 30px
}

#planols h3 {
	color: #E73331;
	margin-top: 30px;
    margin-bottom: 1em;
    font-size: 1.5em;
}

.intro-planta {
	font-size: 0.9em;
}

.intro-planta + a {
	display: block;
	padding: 10px 0 30px;
}

.sales-planol {
	font-size: 0.9em;
	margin-top: 2em;
	margin-left: 20px;
}

.fitxa-dialeg {
	padding: 50px 0;
	position: relative;
}

.obres-dialeg > *{
	padding-left: 45px;
	padding-right: 50px;
	padding-right: 0;
}

.obres-dialeg > .seccio {
	padding-left: 0;
}

.sala {
	display: inline-block;
	width: 2.5em;
	height: 2.5em;
	padding: 3px;
	margin-bottom: 10px;
	border: 1px solid var(--vermell);
	text-align: center;
	border-radius: 15px;
	line-height: 2.1em;
	color: var(--vermell);
	font-weight: bold;
	position: absolute;
	left: 0;
	
}

.sala .sala-bis {
	display: block;
	line-height: 1;
}

.titols {
	color: var(--vermell);
}

.titols p {
    display: inline;
}

.obra {
	margin-top: 30px;
}

.titol-obra {
	font-size: .8em;
	margin-top: 1em;
}

.titol-obra em {
	font-family: var(--cursiva);
}

.separador {
    display: inline-block;
    margin: 0 3px;
    font-weight: 800;
    font-size: 1.2em;
    line-height: 1;
}

.titol-dialeg {
	margin: 5px 0;
}


.titol-dialeg h3 {
	font-weight: normal;
}

.cartela {
	margin: 30px 0;
}

.escolta-audio {
	display: block;
	margin-bottom: 1em;
	color: #E73331;
}

audio:focus {
    outline: none;
}

.auriculars {
	height: 1em;
	display: inline-block;
	margin-right: .5em;
}

.torna-planol {
	display: block;
	padding: 10px;
	margin-top: 1em;
}

.torna-planol::before {
	content: "↑ ";
}

.obres-dialeg .seccio {
	font-size: 1.2em;
	text-transform: uppercase;
	padding: 15px 0;
	margin-bottom: 80px;
	position: relative;
	font-weight: 600;
	
	font-size: .9em;
	padding: 3px 0 3px 15px;
	margin-bottom: 40px;
	line-height: 1;
	font-weight: 600;
	margin-left: 45px;
}

.obres-dialeg .seccio::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 100%;
	background-color: #E73331;
	position: absolute;
	top: 0;
	left: 0;
	margin-right: 10px;

}



/*
.seccio::before {
	content: "";
	width: 100%;
	height: 3px;
	background-color: #E73331;
	position: absolute;
	right: 0;
	bottom: 10px;
}

 .seccio::after {
	content: "";
	width: 3px;
	height: 200%;
	background-color: #E73331;
	position: absolute;
	right: 50px;
	top: -10px;
} */

.planol {
	position: relative;
}

.botons-planol {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

.boto-planol {
	width: 8%;
	height: 50px;
	position: absolute;
}

#boto-7 {
	top: 3%;
	left: 13%;
	width: 12%;
	height: 7%;
}

#boto-8 {
	top: 3%;
	left: 27%;
	width: 12%;
	height: 7%;
}

#boto-9 {
	top: 3%;
	left: 43%;
	width: 12%;
	height: 7%;
}

#boto-5 {
	top: 13%;
	left: 20%;
	width: 10%;
	height: 5%;
}

#boto-4 {
	top: 18%;
	left: 29%;
	width: 8%;
	height: 5%;
}

#boto-19 {
	top: 63%;
	left: 14%;
	width: 11%;
	height: 7%;
}

#boto-32 {
	top: 62%;
	left: 40%;
	width: 11%;
	height: 6%;
}

#boto-33 {
	top: 68%;
	left: 40%;
	width: 11%;
	height: 5%;
}

#boto-34 {
	top: 73%;
	left: 40%;
	width: 11%;
	height: 6%;
}

#boto-35 {
	top: 72%;
	left: 51%;
	width: 10%;
	height: 7%;
}

#boto-24 {
	top: 89%;
	left: 16%;
	width: 12%;
	height: 7%;
}

#boto-26 {
	top: 89%;
	left: 40%;
	width: 11%;
	height: 7%;
}

#boto-59b {
	top: 61%;
	left: 21%;
	width: 11%;
	height: 7%;
}

#boto-39 {
	top: 61%;
	left: 40%;
	width: 11%;
	height: 6%;
}

#boto-40 {
	top: 67%;
	left: 35%;
	width: 10%;
	height: 6%;
}

#boto-58 {
	top: 72%;
	left: 14%;
	width: 11%;
	height: 7%;
}

#boto-52 {
	top: 89%;
	left: 29%;
	width: 9%;
	height: 7%;
}

#peu-portada-1 {
	/* padding-right: 20px; */
	margin-bottom: 20px;
}

.creu-portada {
	display: none;
}

.creu-portada {
	position: relative;
	height: 30px;
}

.creu-portada::before {
	content: "";
	width: 150px;
	height: 9px;
	display: block;
	position: absolute;
	background-color: var(--vermell);
	right: -20px;
	bottom: 20px;

}

.creu-portada::after {
	content: "";
	width: 9px;
	height: 260px;
	display: block;
	position: absolute;
	background-color: var(--vermell);
	right: -13px;
	bottom: -100px;
}