body {
  font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #e6e6e6;
}



.text-carta {
  margin-top: 0.6em;
  line-height: 1.7;
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
    line-height: 1.75;
  }
}
/* ===================================================== */
/* HEADER (UNIVERSAL)                                     */
/* ===================================================== */

#header {
    width: 100%;
    height: 112px;
    position: relative;
    margin: 0 auto;
}

/* fons negre */
.header-bg {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 420px;
    transform: translateX(-50%);
    z-index: 1;
}

/* logotip */
.header-logo {
    position: absolute;
    width: 265px;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* ===================================================== */
/* MENÚ PRINCIPAL                                        */
/* ===================================================== */

nav {
    position: absolute;
    top: 10px;
    width: 100%;
    text-align: center;
    z-index: 4;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu > li {
    display: inline-block;
    margin: 0 8px;
    position: relative; /* clau submenu */
}

.menu li a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-block; /* IMPORTANT per poder fer scale */
    transition: transform 0.15s ease, opacity 0.15s ease;
}

/* Quan passes el ratolí per sobre */
.menu li a:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

/* Quan cliques (mentre mantens el click) */
.menu li a:active {
  transform: scale(1.15);
}
/* ===================================================== */
/* SUBTÍTOL HEADER                                       */
/* ===================================================== */

.header-subtitle {
    position: absolute;
    top: 141px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1.9px;
    white-space: nowrap;
    z-index: 5;
    opacity: 0.6;
}

/* ===================================================== */
/* MAIN                                                  */
/* ===================================================== */

#main {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    z-index: 0;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* ===================================================== */
/* FOOTER                                                */
/* ===================================================== */

#footer {
    width: 100%;
    height: 200px;
    position: relative;
    margin: 0 auto;
}

.footer-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: 420px;
    transform: translateX(-50%);
    z-index: 1;
}


.footer-text {
  line-height: 1.7 !important;
  margin-bottom: 0.2em !important;
  opacity: 0.6; !important;
    position: absolute;
    z-index: 2;
    bottom: 12px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #ccc;
}

/* ===================================================== */
/* VIDEO                                                 */
/* ===================================================== */

#video {
    height: 194px;
    width: 100%;
    margin: 0 auto 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0,0,0,0.35);
}

.video-container iframe {
    width: 100%;
    height: 225px;
    display: block;
}

/* ===================================================== */
/* RESPONSIVE                                            */
/* ===================================================== */

@media (max-width: 360px) {

    #header { height: 110px; }

    .header-subtitle { top: 146px; font-size: 0.7em; }

    #footer { margin-top: 60px; }
    .footer-text { bottom: 18px; }
}

/* ===================================================== */
/* FONS FIXE                                             */
/* ===================================================== */

#fons-fixe {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url("../img/FonsTirada.jpg") center/cover no-repeat;
}
