html {
	font-family: "Mulish", serif;
}
body {
    max-width: 1200px;
    margin: 10px auto;
}
a { color: #000000; text-decoration: none; }
a.hover { color: #000000; }
a.visited { color: #000000; }
nav.menu {
    text-align: center;
}
.sublogo {
    font-size: 14px;
    font-weight: 100;
    padding: 5px 0 30px 0;
}
.menu a {
    font-size: 24px;
    padding: 0 10px 2px 10px;
    border-bottom: solid 8px #dddddd;
	line-height: 180%;
}
.menu a:hover {
    border-bottom: solid 8px #0026ff;
}
.bloc {
    background: linear-gradient(to bottom, #ebebeb 0px, #ebebeb 50px, white 100px);
    border-radius: 14px 14px 0 0;
}
.capcalera { text-align: center; }
h2.pestanya {
	font-size: 30px;
    font-weight: 400;
    padding: 10px 20px;
    margin: 50px 0px 10px 0px;
}
.estacions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}
.bloc-estacions {
    display:flex;
    gap:15px;
    align-items:flex-start;
}
.llegenda {
    min-width: 130px;
    background: #f5f5f5;
    border-radius: 15px;
    padding: 94px 10px 10px 10px;
}
.llegenda div {
    padding:10px 5px;
    border-bottom:1px solid #ddd;
    font-size:14px;
}

.llegenda-titol {
    font-weight:bold;
}

.estacions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    flex: 1;
}


.targeta {
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 2px 10px #0002;
}

.targeta-cap {
    background:#0026ff;
    color:white;
    font-size:18px;
    font-weight:bold;
    padding:15px;
}
.targeta.grisblavenca .targeta-cap {
    background: #64748b;
}
.targeta-data {
    font-size:12px;
    padding:8px 15px;
    color:#777;
}
.valor {
    text-align:center;
    font-size:24px;
    font-weight:bold;
    padding:15px;
}
.valor small {
    display:block;
    font-size:14px;
    font-weight:normal;
}

.linia {
    padding:10px 15px;
    text-align:center;
    border-top:1px solid #eee;
}
#pluja {
    padding-left: 100px;
}



.bloc-enllacos {
    margin:20px 0;
}

.titol-enllacos {
    text-align:center;
    margin:0 0 10px 0;
    font-size:20px;
    font-weight:600;
    color:#333;
}

.botonera-enllacos {
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
}

.boto-enllac {
    padding:8px 18px;
    border-radius:20px;
    background:linear-gradient(to bottom,#ffffff,#eeeeee);
    color:#333;
    text-decoration:none;
    font-size:16px;
    box-shadow:0 2px 6px #0002;
    transition:.2s;
}

.boto-enllac:hover {
    transform:translateY(-2px);
    box-shadow:0 4px 10px #0003;
}


.peu {
    margin-top:60px;
    padding:35px 20px 25px;
    text-align:center;
    background:linear-gradient(
        to bottom,
        #f3f3f3,
        #ffffff
    );
    border-top:1px solid #ddd;
    box-shadow:0 -8px 20px rgba(0,0,0,.05);
    color:#555;
    font-size:14px;
}

.peu-allotjat {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:15px;
}

.peu-allotjat span {
    font-size:15px;
    color:#666;
}

.peu-allotjat img {
    width:134px;
    height:76px;
    object-fit:contain;
    transition:.2s;
}

.peu-allotjat img:hover {
    transform:scale(1.05);
}

.peu-llicencia {
    margin-top:25px;
}

.peu-llicencia img {
    width:88px;
    height:31px;
}

.peu-versio {
    margin-top:20px;
    font-size:13px;
    color:#888;
}
img.logo {
    width: 40em;
	max-width: 80%;
}

.facebook-bloc {
    width:100%;
    margin:40px auto;
    display:flex;
    justify-content:center;
}

.facebook-contingut {
    width:500px;
    padding:20px;
    background:white;
    border-radius:20px;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    overflow:hidden;
}

/* Facebook */
.facebook-contingut .fb-page {
    width:100%;
}

.facebook-contingut .fb-page > span {
    width:100% !important;
}

.facebook-contingut iframe {
    width:100% !important;
}

.meteontinyent-estacions {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #333;
}

.meteontinyent-estacions h2,
.meteontinyent-estacions h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.titol1 {
  font-size: 1.4rem;
  font-weight: 700;
}

.titol2 {
  font-size: 1.2rem;
  font-weight: 600;
}

.destacat-blau {
  color: #3333ff;
}

.coordenades {
  font-size: 0.9rem;
  color: #555;
  margin-top: -0.25em;
  margin-bottom: 1em;
}

/* Imatges responsives */
.meteontinyent-estacions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Galeries simples */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.galeria-petit {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* Figures centrades amb peu de foto */
.imatge-centrada,
.imatge-lateral {
  margin: 1.25rem 0;
}

.imatge-centrada {
  text-align: center;
}

.imatge-lateral figcaption,
.imatge-centrada figcaption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.4rem;
}

/* Iframe de mapa */
.meteontinyent-estacions iframe {
  width: 100%;
  border: 0;
  border-radius: 6px;
  margin: 1rem 0;
}








.instrumentals {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.instrument {
    text-align: center;
    min-width: 0;
}

.instrument h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}


/* =========================
   RELLOTGE
   ========================= */

.rellotge {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.rellotge img,
.rellotge svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.rellotge img {
    z-index: 1;
}

.rellotge svg {
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}


/* =========================
   AGULLA
   ========================= */

.rellotge line {
    stroke: #222;
    stroke-width: 3;
    stroke-linecap: round;
}

.rellotge .centre {
    fill: #222;
}


/* =========================
   VALOR PRINCIPAL
   ========================= */

.valor {
    margin-top: 8px;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
}


/* =========================
   SUBVALOR
   ========================= */

.subvalor {
    margin-top: 8px;
    line-height: 1.15;
}

.subvalor .titol {
    font-size: 13px;
    font-weight: 500;
    color: #777;
}

.subvalor .valor-secundari {
    margin-top: 3px;
    font-size: 16px;
    font-weight: 500;
}


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

@media (max-width: 700px) {

    .instrumentals {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 15px;
    }

}

@media (max-width: 400px) {

    .instrumentals {
        gap: 20px 10px;
    }

    .instrument h3 {
        font-size: 16px;
    }

    .valor {
        font-size: 23px;
    }

    .subvalor .titol {
        font-size: 12px;
    }

    .subvalor .valor-secundari {
        font-size: 15px;
    }

}




.xarxes-socials{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    margin:20px 0;
}

.xarxes-socials a{
    width:42px;
    height:42px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f1f1f1;
    color:#333;
    font-size:22px;
    text-decoration:none;
    transition:all .2s ease;
}

.xarxes-socials a:hover{
    transform:translateY(-3px);
    background:#333;
    color:white;
}