.card-title {
    font-family: 'Stentiga', serif;
    text-align: center;
}

h2 {
    font-family: 'Stentiga', serif;
    font-size: 28px;
}
.titols h2 {
    font-family: 'Stentiga', serif;
    font-size: 40px;
    padding-top: 0 !important;   
    margin-top: 0 !important;   
    margin-bottom: 1rem;
}
.card-img-top {
    padding: 20px;
}

.card-img-top:hover {
    transform: scale(1.3);
    transition: transform 0.3s;
}
p{
    text-align: justify;
}
.card {
    border: none !important;
    background-image: url('fotos web/altres/textura.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.navbar .container > img {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}
.temporada {
    font-family: 'Stentiga', serif;
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    background-color: rgba(214, 206, 184);
    padding: 10px;
    border-radius: 10px; 
    
    
}

.animacioescuts {
    max-width: 150%;
    width: auto;
    height: auto;
    position: relative;
    overflow: hidden;
}

body {
    overflow-x: hidden;
    padding-top: 80px;
    
}
@font-face {
    font-family: 'Stentiga';
    src: url('ttf/Stentiga.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
.titols {
    text-align: left;
}

.image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 aspect ratio for square shape */
    overflow: hidden;
}
#historia section {
    padding-top: 0 !important;
    padding-bottom: 2rem;
}
.historia-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop image to fit square container */
}

.image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.nav-link:focus-visible {
    outline: 2px solid #ff5733 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 87, 51, 0.25) !important;
}

@media (max-width: 768px) {
    .animacioescuts {
        max-width: 300%; 
    }
        .logo-container {
        width: 300px; /* Redueix a mida per mòbils*/
        height: auto;
    }
    .logo-img {
        max-width: 100%; /* Asegura que l'imatge s'ajusti al contenidor */
    }
}
.logo-img {
    max-width: 50%; /* Asegura quel'imatge no surti del contenedor i evitem molts problemes a la versió mòbil */
    height: auto; 
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}
/* Estil per al botó hamburger en mòbils */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 30px;
    height: 30px;
}
/* --- Evita que l'animació GSAP provoqui scroll horitzontal --- */
.demo {
  position: relative;
  overflow-x: hidden; /* talla el desbordament */
  width: 100%;
}

/* Assegura que el contingut animat no desplaci la resta */
#boxFromTo {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
}
/* --- Jugadors Històrics: Card creix, però imatge NO --- */
.jugador-card {
    border: none !important;
    background-image: url('fotos web/altres/textura.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.jugador-card:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    z-index: 10;
}

/* La imatge NO es mou ni escala amb la card */
.jugador-card img {
    padding: 15px;
    object-fit: contain;
    height: 280px;
    display: block;
    position: relative;
    z-index: 2;
    transform: none !important;
    transition: none !important;
}
/* --- Botons i Collapse Jugadors --- */
.jugador-card .btn {
    font-family: 'Stentiga', serif;
    font-size: 0.9rem;
    border-radius: 6px;
    padding: 4px 12px;
}

.jugador-card .collapse {
    transition: height 0.3s ease;
}

.jugador-card .collapse.show {
    margin-top: 12px;
}

.jugador-card .collapse div {
    line-height: 1.5;
    color: #333;
}

/* --- Fletxesfora del marge per millorar llegibilitat--- */
#estadi {
    overflow: visible !important;
}

.custom-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.169);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.custom-arrow:hover {
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Fletxa esquerra: fora a l'esquerra */
.carousel-control-prev.custom-arrow {
    left: -50px;
}

/* Fletxa dreta: fora a la dreta */
.carousel-control-next.custom-arrow {
    right: -50px;
}

/* Icones més grans*/
.custom-arrow .carousel-control-prev-icon,
.custom-arrow .carousel-control-next-icon {
    width: 28px;
    height: 28px;
    background-size: 100%;
    filter: brightness(0) invert(1);
}

/* En mòbil: més a prop però encara fora */
@media (max-width: 768px) {
    .carousel-control-prev.custom-arrow,
    .carousel-control-next.custom-arrow {
        display: none !important;
    }
}


/* --- SUBSCRIPCIÓ A TOT L'AMPLE --- */
.subscribe-section {
    background-image: url('fotos web/altres/textura.png');
    position: relative;
    z-index: 1;
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 30px !important;
    padding-right: 30px !important;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Fons amb textura */
.subscribe-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('fotos web/altres/textura.png');
    background-size: cover;
    opacity: 0.3;
    z-index: -1;
}

/* Container intern centrat */
.subscribe-section .container {
    max-width: 1400px;
    padding: 2rem 1rem;
}

/* Inputs grans i arrodonits */
.subscribe-section .form-control-lg.rounded-pill {
    padding: 0.85rem 1.8rem;
    font-size: 1.1rem;
    border: 2px solid #dee2e6;
    background-color: #fff;
    transition: all 0.3s ease;
}


/* Botó gran i animat */
.subscribe-section .btn-primary {
    padding: 0.9rem 3rem;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.subscribe-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}

/* Responsive: en mòbil, tot apilat i centrat */
@media (max-width: 992px) {
    .subscribe-section {
        margin-left: -10px;
        margin-right: -10px;
        padding-left: 20px !important;
        padding-right: 20px !important;
        border-radius: 20px;
    }
    .subscribe-section .display-5 {
        font-size: 2rem;
    }
    .subscribe-section .btn-primary {
        width: 100%;
        font-size: 1.2rem;
    }
    footer p {
        font-size: 0.8rem;
    }
}
/* --- FOOTER A TOT L'AMPLE --- */
footer {
    background-color: #000000 !important;
    color: white !important;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 1.5rem 1rem !important;
    box-sizing: border-box;
}

footer a {
    color: white !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
}
footer p {
    margin: 0.4rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center ;
}


/*ORRECCIÓ ANCORATGES AMB NAVBAR FIXA Basicament fa que cada cop que pressionem un element del nav baixa unamica més per fer-ho quadrar amb el text*/
html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 150px; }   /* 80px del body + 10px de marge extra */

/*  Estils moguts des d'inline*/

.body-bg {
    background-color: #e7e2d5;
}

.navbar-bg {
    background-color: #e7e2d5;
}

.card-fixed-width {
    width: 18rem;
}

.info-title {
    font-family: 'Stentiga', serif;
    color: #000000;
}

.btn-submit {
    background: #a00b06; 
    border: none; 
    font-family: 'Stentiga', serif;
}

.footer-styling {
    background-color: #000000; 
    color: white; 
    font-family: 'Stentiga', serif;
}

.footer-logo {
    height: 30px; 
    vertical-align: middle; 
    margin-right: 8px;
}

.collapse-text {
    background: rgba(255,255,255,0.9); 
    border-radius: 8px; 
    font-size: 0.9rem;
}