/* ===== COLORS I VARIABLES ===== */
:root {
    --red-main: #c8102e;
    --red-dark: #941026;
    --grey-bg: #f4f4f7;
    --grey-soft: #e1e2e8;
    --grey-text: #555a64;
    --dark-text: #191b22;
    --yellow-line: #ffd200;
    --white: #ffffff;
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.16);
}

/* RESET I GENERALS */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--dark-text);
    background: var(--grey-bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1120px, 100% - 2.5rem); margin: 0 auto; }

/* CAPÇALERA */
.site-header { position: sticky; top: 0; z-index: 1000; }
.top-strip { height: 6px; background: var(--yellow-line); }
.main-bar { background: var(--red-main); color: var(--white); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.nav-container {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem; height: 130px; padding-bottom: 15px
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.brand img { height: 120px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
    font-family: "Montserrat", system-ui; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; font-size: .9rem;
}
.brand-sub { font-size: .78rem; opacity: .9; }

/* Navegació */
.main-nav {
    display: flex; align-items: center; gap: 1.5rem;
    font-family: "Montserrat", system-ui; font-size: .9rem;
    text-transform: uppercase; letter-spacing: .11em;
}
.main-nav a { text-decoration: none; position: relative; padding-bottom: .15rem; }
.main-nav a::after {
    content: ""; position: absolute; left: 0; bottom: -.25rem; width: 0; height: 2px;
    background: var(--yellow-line); transition: width .22s ease;
}
.main-nav a:hover::after { width: 100%; }

/* Xarxes */
.nav-social a {
    display: inline-flex; align-items: center; justify-content: center;
    height: 32px; width: 32px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.7); text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.nav-social i { font-size: 1.1rem; }
.nav-social a:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }

/* Botó menú mòbil */
.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 4px;
    background: transparent; border: none; cursor: pointer; padding: .25rem;
}
.nav-toggle span {
    width: 22px; height: 2px; border-radius: 999px;
    background: var(--white); transition: transform .2s ease, opacity .2s ease, width .2s ease;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--red-main), var(--red-dark));
    color: var(--white); padding: 2.8rem 0 3.5rem;
}
.hero-grid {
    display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1.2fr);
    align-items: stretch; gap: 2rem;
}
.hero-text h1 {
    font-family: "Montserrat", system-ui;
    font-size: clamp(2.2rem,3vw+1rem,3rem);
    margin: 0 0 .75rem; text-transform: uppercase; letter-spacing: .08em;
}
.hero-text h1 span { color: var(--yellow-line); }
.hero-text p { font-size: .98rem; line-height: 1.7; max-width: 30rem; text-align: center;}
.hero-actions { margin-top: 1.5rem; display:flex; flex-wrap:wrap; gap:.8rem; }
.btn {
    display:inline-flex; align-items:center; justify-content:center;
    font-family:"Montserrat",system-ui; text-transform:uppercase;
    letter-spacing:.11em; font-size:.85rem; padding:.7rem 1.4rem;
    border-radius:999px; border:none; cursor:pointer; text-decoration:none;
    transition:background .2s ease,color .2s ease,transform .15s ease,box-shadow .15s ease;
}
.btn.primary { background:var(--yellow-line); color:var(--dark-text); box-shadow:var(--shadow-soft); }
.btn.primary:hover { transform:translateY(-1px); box-shadow:0 16px 36px rgba(0,0,0,.3); }
.btn.ghost { background:transparent; color:var(--white); border:1px solid rgba(255,255,255,.8); }
.btn.ghost:hover { background:rgba(255,255,255,.12); }

/* Panells partits */
.hero-panels { display:grid; gap:1rem; }
.match-card {
    background:rgba(255,255,255,.05); border-radius:.9rem;
    padding:1rem 1.15rem; border:1px solid rgba(255,255,255,.18);
    box-shadow:0 14px 28px rgba(0,0,0,.4);
}
.match-card.next{ background:rgba(0,0,0,.15); }
.match-card h2 {
    margin:0 0 .25rem; font-size:1.1rem;
    text-transform:uppercase; letter-spacing:.12em;
}
.match-label{ margin:0; font-size:.8rem; opacity:.9; text-transform:uppercase; letter-spacing:.14em; }
.match-date{ margin:.4rem 0 .6rem; font-size:.84rem; }
.match-teams{
    display:grid; grid-template-columns:1fr auto 1fr;
    align-items:center; gap:.4rem; margin-bottom:.5rem;
}
.team-name{ font-weight:600; font-size:.9rem; }
.match-score span,.match-vs span{
    display:inline-block; padding:.1rem .45rem; border-radius:.3rem;
    background:rgba(0,0,0,.55); font-weight:600;
}
.match-score{ display:flex; gap:.25rem; }
.match-extra{ font-size:.78rem; opacity:.9; }
.match-link{
    display:inline-block; margin-top:.45rem; font-size:.8rem;
    text-transform:uppercase; letter-spacing:.12em;
}

/* SECCIONS GENERALS */
.section{ padding:3rem 0; }
.section.light{ background:var(--grey-bg); }
.section.dark{ background:#1e2028; color:var(--white); }
.section-header{ text-align:center; margin-bottom:2.1rem; }
.section-header h2{
    margin:0 0 .4rem; font-family:"Montserrat",system-ui;
    text-transform:uppercase; font-size:1.6rem; letter-spacing:.14em;
}
.section-header p{
    margin:0; font-size:.96rem; color:rgba(255,255,255,.8);
}
.section.light .section-header p{ color:var(--grey-text); }

/* CLUB */
.two-col{
    display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1.1fr);
    gap:2rem; align-items:center;
}
.two-col h2{
    font-family:"Montserrat",system-ui; font-size:1.6rem;
    text-transform:uppercase; letter-spacing:.14em; margin-top:0;
}
.two-col p{ font-size:.98rem; line-height:1.8; color:var(--grey-text); }
.club-data{
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
    gap:1rem;
}
.data-item{
    background:var(--white); border-radius:.8rem; padding:.9rem 1rem;
    box-shadow:0 10px 26px rgba(0,0,0,.08); border:1px solid var(--grey-soft);
    text-align:center;
}
.data-number{
    display:block; font-family:"Montserrat",system-ui;
    font-weight:700; font-size:1.4rem; color:var(--red-main);
}
.data-label{ display:block; font-size:.82rem; color:var(--grey-text); }

/* TARGETES EQUIPS / BASE */
.cards-grid{
    display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:1.5rem;
}
.team-card,.base-card{
    background:#272a35; border-radius:.9rem; padding:1.25rem 1.3rem;
    border:1px solid rgba(255,255,255,.1);
}
.section.light .base-card{ background:var(--white); border-color:var(--grey-soft); }
.team-card h3,.base-card h3{
    margin:0 0 .5rem; font-family:"Montserrat",system-ui; font-size:1.1rem;
}
.team-card p,.base-card p{
    margin:0; font-size:.92rem; line-height:1.7; color:rgba(255,255,255,.85);
}
.section.light .base-card p{ color:var(--grey-text); }

/* Enllaços targetes i accions */
.card-actions{ margin-top:.8rem; display:flex; flex-wrap:wrap; gap:.7rem; }
.card-link{
    display:inline-block; font-size:.8rem;
    text-transform:uppercase; letter-spacing:.11em;
}
.section.light .card-link{ color:var(--red-main); }

/* PATROCINADORS */
.section.sponsors{ background:#ffffff; }

/* CONTENIDOR DE PATROCINADORS */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnes en escriptori */
    gap: 1.5rem;
}

/* Targeta del patrocinador (ja la tens, però per claredat) */
.sponsor-card {
    background: #f6f6f9;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.sponsor-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 110px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 12px;
    overflow: hidden;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsor-name {
    margin-top: 14px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}
/* Tablet (fins a 900px) – 2 targetes per fila */
@media (max-width: 900px) {
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mòbil (fins a 600px) – 1 targeta per fila */
@media (max-width: 600px) {
    .sponsors-grid {
        grid-template-columns: 1fr;
    }
}

/* NOTÍCIES */

.news-grid{
    display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:1.5rem;
}
.news-card{
    background:#272a35; border-radius:.9rem;
    padding:1.2rem 1.35rem; border:1px solid rgba(255,255,255,.1);
}
.news-tag{
    display:inline-block; font-size:.7rem; text-transform:uppercase;
    letter-spacing:.14em; padding:.2rem .6rem; border-radius:999px;
    background:rgba(255,255,255,.12); margin-bottom:.5rem;
}
.news-card h3{
    margin:0 0 .5rem; font-size:1.05rem; font-family:"Montserrat",system-ui;
}
.news-card p{ margin:0; font-size:.9rem; line-height:1.7; }

/* CONTACTE */
.contact-grid{
    display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1.3fr);
    gap:2rem; align-items:flex-start;
}
.contact-grid h2{
    font-family:"Montserrat",system-ui; font-size:1.6rem;
    text-transform:uppercase; letter-spacing:.14em; margin-top:0;
}
.contact-grid p{ font-size:.96rem; color:var(--grey-text); }
.contact-list{ list-style:none; padding:0; margin:1rem 0 0; }
.contact-list li{
    display:flex; align-items:center; gap:.6rem;
    font-size:.9rem; color:var(--grey-text); margin-bottom:.4rem;
}
.contact-list i{ color:var(--red-main); }

/* Formulari */
.contact-form{
    background:var(--white); border-radius:.9rem;
    padding:1.2rem 1.3rem; box-shadow:var(--shadow-soft);
    border:1px solid var(--grey-soft);
}
.form-row{
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem;
}
.form-group{ display:flex; flex-direction:column; gap:.25rem; margin-bottom:.8rem; }
label{
    font-size:.8rem; text-transform:uppercase; letter-spacing:.12em;
    font-family:"Montserrat",system-ui; color:var(--grey-text);
}
input,textarea{
    border-radius:.4rem; border:1px solid var(--grey-soft);
    padding:.5rem .6rem; font-size:.9rem; font-family:inherit; resize:vertical;
}
input:focus,textarea:focus{
    outline:2px solid var(--red-main); border-color:var(--red-main);
}
.btn.full{ width:100%; }
.form-note{ font-size:.75rem; color:var(--grey-text); margin-top:.4rem; }

/* PEU */
.site-footer{
    background:#111218; color:rgba(255,255,255,.8);
    padding:1.2rem 0; font-size:.8rem;
}
.footer-inner{
    display:flex; flex-wrap:wrap; justify-content:space-between; gap:.8rem;
}
.footer-madeby{ opacity:.7; }

/* RESPONSIVE */
@media (max-width:900px){
    .hero-grid,.two-col,.contact-grid{ grid-template-columns:1fr; }
    .hero{ padding-top:2.3rem; }
    .hero-panels{ grid-template-columns:1fr; }
}
@media (max-width:1024px){
    .main-nav{
        position:absolute; inset-inline:0; top:80px; background:var(--red-main);
        flex-direction:column; padding:.8rem 1.5rem 1.2rem; display:none;
    }
    .main-nav.open{ display:flex; }
    .nav-toggle{ display:flex; }
    .nav-social{ display:none; }
    .nav-container{ height:80px; }
    .brand img { height: 60px; }
}
@media (max-width:600px){
    .cards-grid,.news-grid{ grid-template-columns:1fr; }
    .club-data{ grid-template-columns:1fr 1fr; }
}
.main-nav {
    margin-bottom: 10px; /* Baixa els enllaços del menú */
}


/* ===== HERO DE PÀGINA INTERNA ===== */
.page-hero {
    padding: 2.2rem 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.page-hero .container h1,
.team-page .page-title{
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.6rem;
}

.page-hero .container p {
    margin: 0.4rem 0 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Contingut general de les pàgines internes */
.page-content {
    padding: 2rem 0 3rem;
}
/* ===== FOTO PLANTILLA AL HERO ===== */
.hero-image {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(0,0,0,0.35);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Compensa l'alçada de la capçalera perquè els enllaços (Inici, Club, etc.) quadren bé */
.classificacio-mask {
  width: 100%;
  height: 1000px;
  overflow: hidden;
  position: relative;
}

.classificacio-frame {
  width: 100%;
  height: 1150px;
  border: 0;
  position: absolute;
  top: -373px;
  left: 0;
  pointer-events: none;
}

.resultats-mask {
  width: 100%;
  height: 600px;        /* REDUEIX AIXÒ fins que quedi just el que vols */
  overflow: hidden;
  position: relative;
  margin: 0;            /* treu la separació addicional */
}

.resultats-frame {
  width: 100%;
  height: 1000px;       /* més alt per poder-lo moure cap amunt */
  border: 0;
  position: absolute;
  top: -210px;          /* ajusta per eliminar header i filtres */
  left: 0;
}
/* --- TOP STRIP (TIRA SUPERIOR) --- */
.top-strip {
  background: #e30613; /* vermell club o el color que tinguis */
  padding: 6px 0;
}

.top-strip-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-social a {
  color: white;
  font-size: 1.2rem;
  transition: 0.2s ease;
}
.top-social a:hover {
  opacity: 0.75;
}
.top-social a i {
  padding-top: 15px;   /* baixa la icona */
  display: inline-block;
}
.top-strip {
  background: #FFD500; /* el groc del club */
  padding: 5px 0;      /* abans eren 6px → ara hi ha més espai */
}
.brand-name {
  white-space: nowrap;
}
.main-nav a {
  white-space: nowrap;
}
.top-strip-container {
  display: flex;
  justify-content: flex-end;   /* tot cap a la dreta */
  align-items: center;
}
/* contenidor CAT | ES + Instagram en fila */
.top-right {
  display: flex;
  align-items: center;
  gap: 12px;                   /* espai entre idiomes i insta */
}
.lang-switch a {
  color: #ffffff;        /* blanc */
  font-weight: 700;      /* negreta */
  text-decoration: none;
  font-size: 0.9rem;
}
.lang-switch span {
  color: #ffffff;
  opacity: 0.8;          /* petit toc de suavitat per al separador */
}
.top-right {
  display: flex;
  align-items: center;   /* centra verticalment */
  gap: 14px;             /* separació entre idiomes i instagram */
}
.top-social a i {
  padding-top: 15px;      /* ajust fi perquè quedin alineats */
  display: inline-block;
}
.sponsor-logo {
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff10;  /* lleuger fons transparent */
    border-radius: 8px;
    overflow: hidden;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
/* Targeta del patrocinador */
.sponsor-card {
    background: #f6f6f9;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* LOGO */
.sponsor-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 110px;               /* alçada uniforme */
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 12px;
    overflow: hidden;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Nom del patrocinador */
.sponsor-name {
    margin-top: 14px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}
.map-container {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 380px;
}
.map-container {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.map-container iframe {
  width: 100%;
  height: 380px; /* Pots pujar-ho a 420 si ho vols més gran */
  border: 0;
  display: block;
}
/* ===== IDIOMES (CAT | ES) ===== */

/* Estat normal (NO actiu) → gris clar */
.lang-switch a {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

/* Idioma ACTIU → blanc */
.lang-switch a.active {
    color: #ffffff;
    pointer-events: none;   /* opcional */
    cursor: default;
}

/* Separador | */
.lang-switch span {
    color: #ffffff;
    opacity: 0.6;
}

/* Hover només per a l’idioma NO actiu */
.lang-switch a:not(.active):hover {
    color: var(--yellow-line);
}
:root{
  --footer-h: 72px;
}

.site-footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  height: var(--footer-h);
  background: #0f1115;
  z-index: 999;
  font-size: 0.8rem;

  display: flex;
  align-items: center;
}

main{
  padding-bottom: calc(
    var(--footer-h) + env(safe-area-inset-bottom, 0px)
  );
}

/* Per alinear text + logo */
.footer-inner{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.75rem; /* 20px */
}


/* Bloc Ajuntament */
.footer-ajuntament{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .85rem;
  white-space: nowrap;
}

.footer-ajuntament img{
  height: 44px;
  width: auto;
  display: block;
}

.footer-ajuntament:hover{
  opacity: .85;
}

.footer-spacer {
  height: 80px; /* mateix valor aproximat que el footer */
}
/* Transicions suaus */
.site-header,
.brand img,
.top-right {
  transition: all .25s ease;
}

/* Estat compacte quan hi ha scroll */
.site-header.compact .nav-container {
  height: 80px;
}

.site-header.compact .brand img {
  height: 60px;
}

/* Amaga idiomes i instagram en scroll */
.site-header.compact .header-tools {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}
/* ===== HEADER COMPACTE ===== */
.site-header,
.site-header * {
  transition: all .25s ease;
}

/* Header més baix i logo més petit */
.site-header.compact .nav-container { height: 80px; }
.site-header.compact .brand img { height: 60px; }

/* AMAGAR IDIOMES + INSTAGRAM (totes les variants possibles) */
.site-header.compact .lang-switch,
.site-header.compact .nav-social,
.site-header.compact .top-social,
.site-header.compact .top-right {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
:root { --header-offset: 140px; } /* valor per defecte */

section[id] {
  scroll-margin-top: var(--header-offset);
}
/* ===== LOGO SEMPRE PETIT EN MÒBIL ===== */
@media (max-width:1024px){
  .main-nav{
    position:absolute;
    inset-inline:0;
    top:80px;
    background:var(--red-main);
    flex-direction:column;
    padding:.8rem 1.5rem 1.2rem;
    display:none;
  }
  .main-nav.open{ display:flex; }
  .nav-toggle{ display:flex; }
  .nav-social{ display:none; }
  .nav-container{ height:80px; }
  .brand img { height: 60px; } /* opcional, però ajuda molt a tablets/mòbil */
  .lang-switch, .nav-social { display: none !important; }  /* si vols amagar només una cosa */
  .lang-switch, .top-social { display: flex !important; }
}

.sponsors-final {
  background-color: rgb(244, 244, 247);
  padding: 5px 20px;
  text-align: center;
}

.sponsors-final img {
  max-width: 1120px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.footer-spacer { height: 72px; } /* aprox. 50px logo + paddings */

/* HERO centrat en mòbil/tablet */
@media (max-width: 1024px){
  .hero-grid{
    grid-template-columns: 1fr !important;  /* assegura que guanya */
    justify-items: center;
  }

  .hero-text{
    width: 100%;
    max-width: 900px;
    margin: 0 auto;              /* centra el bloc */
    padding: 0 1rem;             /* aire lateral */
    text-align: center;
  }

  .hero-text p{
    margin-left: auto;           /* centra paràgraf dins l'ample */
    margin-right: auto;
    max-width: 60ch;             /* fa que el text no quedi massa ample */
  }

  .hero-image{
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-image img{
    max-width: 100%;
    height: auto;
    display: block;
  }
}
/* =========================
   PLANTILLA EQUIP (SENIOR A)
   ========================= */

.team-page .page-title{
  margin-bottom: 2rem;
  text-align: center;
}

/* Foto d'equip */
.team-photo{
  margin-top: 1.5rem;
}

.team-photo img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

/* Blocs */
.roster-block{
  margin-bottom: 1.5rem;
}

/* Graelles */
.roster-grid{
  display: grid;
  gap: 1.1rem;
  justify-items: center;
}

/* Staff (3 persones) */
.staff-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 700px;
  margin: 0 auto;
}

/* Jugadors (15 persones) */
.players-grid{
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Targeta persona */
.person-card{
  width: 100%;
  max-width: 210px;
  text-align: center;
}

.person-card img{
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  background: #fff;
}

/* Text */
.person-name{
  margin-top: .45rem;
  font-weight: 600;
  font-size: .95rem;
}

.person-role{
  margin-top: .15rem;
  font-size: .85rem;
  opacity: .7;
}

/* Responsive */
@media (max-width: 1024px){
  .players-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px){
  .players-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.team-page{
  background: #f4f4f7;   /* posa aquí EXACTAMENT el color que tenies abans */
  padding: 1.5rem 0 2.5rem;
}
@media (max-width:700px){
  .team-page .page-title{
    font-size: 1.35rem;
    letter-spacing: 0.14em;
  }
}
@media (max-width: 768px){
  .resultats-frame,
  .classificacio-frame{
    pointer-events: auto;
  }
}
/* ===== EFECTO NIEVE NAVIDAD ===== */
#snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* no bloquea clics */
  z-index: 9999;
}
