/* ═══════════════════════════════════════════════════════════════
   SORTEIG TRIAS — estils base (portada de 2017 + popups)
   Port de templates/PUBLIC/css/estils.css i fonts.css del SB7, amb
   els estils que abans anaven inline a index.html i home.php.
   El disseny nou (home_nou.php) es pinta a sorteig_nou.css, que
   sobreescriu aquests estils dins #sorteig-landing.
   ═══════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'gotham-book';
    src: url('../fonts/sorteig/gotham-book.woff') format('woff'),
         url('../fonts/sorteig/gotham-book.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'gotham-bold';
    src: url('../fonts/sorteig/gotham-bold.woff') format('woff'),
         url('../fonts/sorteig/gotham-bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'souvenirstd-light';
    src: url('../fonts/sorteig/souvenirstd-light.woff') format('woff'),
         url('../fonts/sorteig/souvenirstd-light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'souvenirstd-medium';
    src: url('../fonts/sorteig/souvenirstd-medium.woff') format('woff'),
         url('../fonts/sorteig/souvenirstd-medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --srtg-vermell: #cb2b33;
    --srtg-daurat: #d4af28;
    --srtg-beix: #eae1c9;
    --srtg-gris: #373737;
    --srtg-text: #555555;
    --srtg-fosc: #222428;
}

* {
    margin: 0 auto;
    box-sizing: border-box;
}

body {
    background-color: #fff;
    color: var(--srtg-text);
    font-size: 16px;
    line-height: 24px;
    font-family: 'gotham-book', Arial, sans-serif;
    letter-spacing: 1px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}
a:focus, a:visited, input, textarea {
    color: inherit;
    outline: none !important;
}
i, em { font-style: italic; }
b, strong { font-weight: bold; }
img { max-width: 100%; }

.inf { overflow: hidden; }
.inf > div {
    max-width: 1170px;
    position: relative;
}
#content > div {
    max-width: 800px;
    position: relative;
}

/* ── Capçalera i peu ── */
div#top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: url('../img/sorteig/Top_Trias.png') no-repeat center / cover;
    height: 100%;
    width: 100%;
    z-index: 999;
    max-height: 300px;
}
#top .container {
    max-width: 1024px;
    margin: 0 auto;
}
.img_cap { text-align: center; }
header > div > div:last-child { margin-top: 195px !important; }
.srtg-bases header > div > div:last-child { margin-top: 0 !important; }

#idiomes {
    color: #fff;
    display: inline-block;
    vertical-align: top;
    list-style: none;
    position: relative;
    z-index: 999;
    float: right;
}
#idiomes > li {
    text-align: center;
    cursor: default;
}
#idiomes i { font-style: normal; font-size: 12px; }
#idiomes ul {
    position: absolute;
    background-color: #363636;
    padding: 5px 10px;
    left: 0;
    right: 0;
    display: none;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    list-style-type: none;
}
#idiomes > li:hover > ul,
#idiomes > li:focus-within > ul {
    display: block;
    z-index: 999;
}
#idiomes ul li a {
    display: block;
    padding: 2px 0;
    color: #fff !important;
}

main#content {
    background: url('../img/sorteig/fons.jpg') no-repeat center / cover;
    margin-top: -115px;
}

footer { margin-top: 70px; }
footer > div { position: relative; }
footer > div > div:first-child {
    background: url('../img/sorteig/img_foot.jpg') repeat-x center;
    height: 40px;
}
footer > div > div:last-child {
    height: 100px;
    background-color: var(--srtg-fosc);
    margin-top: 3px;
}
.logo_footer {
    position: absolute;
    top: -65px;
    right: 0;
    left: 0;
    vertical-align: top;
    max-width: 450px;
}
.container_footer {
    max-width: 1024px;
    margin: 0 auto;
    text-align: right;
}

/* ── Formulari (portada de 2017) ── */
#formulari {
    margin: 130px auto;
    background: #fff;
    padding: 20px;
    border-bottom: 8px solid var(--srtg-vermell);
}
#formulari .titol {
    padding: 20px 20px 40px;
    color: var(--srtg-vermell);
    font-size: 35px;
    line-height: 1.2;
    text-align: center;
}
#formulari .titol .titol-light {
    font-family: 'souvenirstd-light', serif;
    font-size: 25px;
}
#formulari .titol .titol-medium { font-family: 'souvenirstd-medium', serif; }

#formulari input[type="text"] {
    width: 100%;
    border: none;
    padding: 2px 15px;
    margin-bottom: 5px;
    font-size: 14px;
    background: var(--srtg-beix);
    height: 41px;
}
#formulari label {
    display: inline;
    color: #000;
    font-weight: bold;
    padding: 5px;
    margin-bottom: 5px;
}
#formulari div.row > div {
    display: inline-block;
    vertical-align: top;
    width: 48%;
}
#formulari div.row > div:first-child {
    margin-right: 3%;
    margin-bottom: 25px;
}
#formulari div.row > div > div {
    display: inline-block;
    vertical-align: top;
}
#formulari div.row > div > .camp-poblacio { width: 67%; margin-right: 1%; }
#formulari div.row > div > .camp-cp { width: 30%; }
#formulari .row-jugar { border-bottom: 1px solid #dbdbdb; }

.bottons {
    display: block;
    height: 41px;
    width: 100% !important;
    margin: 10px 0;
    padding: 0;
    border: 0;
    border-bottom: 6px solid var(--srtg-vermell);
    background: transparent;
    text-align: right;
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
    cursor: pointer;
}
.boto_jugar:hover { color: var(--srtg-vermell); }

#formulari .condicions {
    margin: 25px 5px;
    text-align: left;
}
#formulari .condicions table { width: 100%; }
#formulari .condicions td {
    font-size: 12px !important;
    padding-bottom: 5px;
    vertical-align: top;
}
#formulari .condicions td:first-child { padding-top: 5px; width: 24px; }
#formulari .condicions label {
    display: inline;
    padding: 0;
    margin: 0;
    font-weight: normal;
    color: inherit;
}
#formulari .condicions a { text-decoration: underline; }

.generica {
    display: block;
    max-width: 1024px;
    padding-top: 290px;
    margin: 0 auto;
}

/* ── Popups ── */
.white-popup {
    background: #fff;
    padding: 20px 30px;
    text-align: left;
    max-width: 850px;
    margin: 40px auto;
    position: relative;
}
.white-popup.srtg-pop {
    text-align: center;
    font-size: 28px;
    color: var(--srtg-gris);
    border-bottom: 8px solid var(--srtg-vermell);
    padding: 50px;
}
.white-popup.srtg-pop--daurat {
    border: 8px solid var(--srtg-daurat);
    padding: 50px 0;
}
.srtg-pop-titol {
    color: var(--srtg-vermell) !important;
    font-size: 25px !important;
    font-family: 'souvenirstd-light', serif;
}
.srtg-pop-titol--alt { line-height: 40px; }
.srtg-pop-titol--28 { font-size: 28px !important; }
.srtg-pop-subtitol {
    color: var(--srtg-vermell) !important;
    font-size: 28px !important;
    font-family: 'souvenirstd-medium', serif;
}
.srtg-pop-gran {
    color: var(--srtg-vermell) !important;
    font-size: 50px !important;
    line-height: 55px;
    font-family: 'souvenirstd-medium', serif;
}
.srtg-pop-text {
    color: var(--srtg-vermell) !important;
    font-size: 28px !important;
    line-height: 32px;
    font-family: 'souvenirstd-light', serif;
}
.srtg-pop-final {
    color: var(--srtg-vermell) !important;
    font-size: 55px !important;
    line-height: 65px !important;
    font-family: 'souvenirstd-light', serif;
}

#codi2 {
    width: 100%;
    border: none;
    padding: 2px 15px;
    margin-bottom: 5px;
    background: var(--srtg-beix);
    height: 41px;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.error { border: 3px solid red !important; }
.codi_validacio {
    display: none;
    border: 3px solid red;
    padding: 10px;
    color: red;
    font-size: 20px;
}

.boto_codi {
    display: block;
    margin-top: 30px;
    text-align: right;
}
.boto_codi a span {
    display: inline-block;
    font-size: 40px;
    line-height: 1.2;
    color: #fff;
    background: var(--srtg-vermell);
    padding: 0 15px;
}
.boto_codi a i { font-style: normal; }

.contenidor_galetes > div {
    display: inline-block;
    width: 24%;
    vertical-align: middle;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'souvenirstd-light', serif;
    cursor: pointer;
}
.contenidor_galetes > div span {
    color: #fff;
    font-size: 15px;
}
.contenidor_galetes > div img { margin-bottom: 15px; }
.contenidor_galetes > div div.hov { display: none; }
.contenidor_galetes div:hover,
.contenidor_galetes div.checked { background: var(--srtg-vermell); }

#condicions-legals { max-width: 850px !important; }
#condicions-legals span {
    font-size: 14px !important;
    text-align: left !important;
    line-height: 16px !important;
    display: block;
    width: 100%;
    padding: 20px;
}
#condicions-legals span ol {
    margin: 0 !important;
    padding-left: 16px !important;
    padding-bottom: 10px !important;
}
/* Avís de cookies de Neorg (neorgsite.com/avis_cookies.js) */
#popupCookiesPrin { margin-top: 300px !important; }

#politica-privacitat span {
    text-align: left;
    padding: 5px 15px !important;
    display: block;
}

@media screen and (max-width: 1425px) {
    main#content { margin-top: 0; }
    header > div > div:last-child { margin-top: 250px !important; }
}
@media screen and (max-width: 1050px) {
    .inf > div {
        max-width: 100%;
        padding: 0 20px;
    }
}
@media screen and (max-width: 850px) {
    #formulari { margin: 25px; }
}
@media screen and (max-width: 700px) {
    #formulari div.row > div { width: 100%; }
    .white-popup.srtg-pop { padding: 30px 20px; }
    .contenidor_galetes > div { width: 32%; }
}
