/* Pàgina /aporta */

section.mecenatge {
    padding: 0 !important;
    margin: 0 !important;
}

/* Hero a l'estil de foraespanya.cat (fa servir .hero-fe* de style.css) */
.mecenatge__cap {
    padding: 4.5rem 0 4rem;
}
@media (min-width: 992px) {
    .mecenatge__cap { padding: 6rem 0 5.5rem; }
}
.mecenatge__titol {
    font-family: 'Inter FE', sans-serif !important;
    font-weight: 900 !important;
    font-size: clamp(3.5rem, 11vw, 8.5rem);
    line-height: .82;
    letter-spacing: -.05em;
    text-transform: uppercase;
    color: #f4f4f5;
    margin: 0 0 2rem;
}
.mecenatge__titol span {
    display: block;
    color: #FF0043;
}
.mecenatge__entradeta {
    font-family: 'Inter FE', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 300;
    line-height: 1.3;
    color: #a1a1aa;
    max-width: 34ch;
    margin: 0;
}
.mecenatge__entradeta strong {
    color: #fff;
    font-weight: 600;
}

.mecenatge__progres {
    font-family: 'Inter FE', sans-serif;
    margin-top: 3.5rem;
}
.mecenatge__barra {
    height: 14px;
    background: #27272a;
    border-radius: 999px;
    overflow: hidden;
}
.mecenatge__omplert {
    height: 100%;
    width: 0;
    min-width: 14px;
    background: #FF0043;
    border-radius: 999px;
    transition: width 1.2s ease-out;
}
.mecenatge__xifres {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: .75rem 2rem;
    margin-top: 1.25rem;
}
.mecenatge__recaptat {
    font-weight: 900;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1;
    letter-spacing: -.04em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.mecenatge__objectiu {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    color: #a1a1aa;
    margin-left: .4rem;
}
.mecenatge__detall {
    display: flex;
    gap: 1.5rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #71717a;
}
.mecenatge__detall b {
    color: #fff;
    font-size: .9rem;
}

/* Seccions de contingut: crida, usos dels diners i independència */
.mecenatge__etiqueta {
    font-family: 'Inter FE', sans-serif;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #FF0043;
    margin: 0 0 .75rem;
}
.mecenatge__h2 {
    font-family: 'Inter FE', sans-serif !important;
    font-weight: 900 !important;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: .95;
    letter-spacing: -.04em;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
}
.mecenatge__h2--gran {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    line-height: .85;
    color: #f4f4f5;
    margin: 0;
}
.mecenatge__h2 span {
    display: block;
    color: #FF0043;
}
@media (min-width: 992px) {
    .mecenatge__crida { position: sticky; top: 120px; padding-top: 1rem; }
}
/* Al mòbil: primer el títol, després el formulari i després el text amb els checks */
@media (max-width: 991.98px) {
    #mecContingut > .col-lg-5,
    .mecenatge__crida { display: contents; }
    .mecenatge__crida > * {
        flex: 0 0 100%;
        max-width: 100%;
        padding-inline: calc(var(--bs-gutter-x) * .5);
    }
    .mecenatge__etiqueta,
    .mecenatge__crida .mecenatge__h2 { order: -1; }
    .mecenatge__etiqueta { margin-top: var(--bs-gutter-y); }
    .mecenatge__crida .mecenatge__h2 { margin-bottom: 0; }
    #mecContingut > .col-lg-7 { margin-top: 1.5rem; }
    .mecenatge__crida-text { order: 1; margin: var(--bs-gutter-y) 0 0; max-width: none; }
    .mecenatge__garanties { order: 2; }
    .mecenatge__crida .mecenatge__garanties { padding-inline: calc(var(--bs-gutter-x) * .5 + .25rem); }
}
.mecenatge__crida-text {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #3f3f46;
    max-width: 30ch;
}
.mecenatge__garanties {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    display: grid;
    gap: .6rem;
}
.mecenatge__garanties li {
    position: relative;
    padding-left: 1.75rem;
    color: #52525b;
}
.mecenatge__garanties li::before {
    content: "";
    position: absolute;
    left: .1rem;
    top: .3em;
    width: .9rem;
    height: .5rem;
    border-left: 3px solid #1f9d55;
    border-bottom: 3px solid #1f9d55;
    transform: rotate(-45deg);
}

/* Logos de les targetes i els moneders acceptats, sota el formulari */
.mecenatge__logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.25rem;
}
.mecenatge__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 40px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
}
.mecenatge__logo svg { display: block; width: auto; }
.mecenatge__logo--visa svg { fill: #1A1F71; height: 44px; }
.mecenatge__logo--mastercard svg { height: 26px; }
.mecenatge__logo--googlepay svg { fill: #3C4043; height: 44px; }
.mecenatge__logo--applepay svg { fill: #000; height: 50px; }

/* Aportació per transferència */
.mecenatge__transferencia {
    padding: 4.5rem 0;
    border-top: 1px solid #e4e4e7;
}
.mecenatge__iban {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
    background: #f4f4f5;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
}
.mecenatge__iban strong {
    display: block;
    font-size: 1.15rem;
    letter-spacing: .02em;
}
.mecenatge__iban-etiqueta {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #71717a;
}
.mecenatge__iban #mecIban {
    white-space: nowrap;
    font-size: clamp(1rem, 4.4vw, 1.15rem);
}
.mecenatge__iban-valor {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.mecenatge__copia {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: background .15s;
}
.mecenatge__copia:hover,
.mecenatge__copia:focus-visible {
    background: #e4e4e7;
}
.mecenatge__copia svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #3f3f46;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mecenatge__copia-fet { display: none; }
.mecenatge__copia.is-copiat .mecenatge__copia-icona { display: none; }
.mecenatge__copia.is-copiat .mecenatge__copia-fet { display: block; stroke: #1f9d55; }
.mecenatge__avis {
    background: #fff0f3;
    border-left: 4px solid #FF0043;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: #3f3f46;
}

.mecenatge__usos {
    background: #f4f4f5;
    padding: 5rem 0;
}
.mecenatge__card {
    height: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid #e4e4e7;
    transition: transform .2s, box-shadow .2s;
}
.mecenatge__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}
.mecenatge__card-icona {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 12px;
    background: #ffe5ec;
    fill: none;
    stroke: #FF0043;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 1.25rem;
}
.mecenatge__card h3 {
    font-family: 'Inter FE', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 .5rem;
}
.mecenatge__card p {
    color: #52525b;
    margin: 0;
}

.mecenatge__independents {
    padding: 5.5rem 0;
}
.mecenatge__independents-text {
    font-size: 1.1rem;
    line-height: 1.55;
    color: #a1a1aa;
}
.mecenatge__independents-text strong {
    color: #fff;
}

.mecenatge__targeta {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .1);
    padding: 1.5rem;
    scroll-margin-top: 100px;
}
@media (min-width: 768px) {
    .mecenatge__targeta { padding: 2.5rem; }
}

.mecenatge__imports {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
}
.mecenatge__import {
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 10px;
    padding: .85rem .5rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: #111;
    transition: border-color .15s, background .15s, color .15s;
}
.mecenatge__import:hover {
    border-color: #FF0043;
}
.mecenatge__import.is-actiu {
    border-color: #FF0043;
    background: #FF0043;
    color: #fff;
}
.mecenatge__altre {
    max-width: 220px;
}

.mecenatge .btn-primary {
    background: #FF0043;
    border-color: #FF0043;
    font-weight: 700;
}
.mecenatge .btn-primary:hover,
.mecenatge .btn-primary:focus {
    background: #d90039;
    border-color: #d90039;
}
/* Botons dels passos del formulari (Continua, Continua al pagament, Aporta): verds */
.mecenatge .mecenatge__targeta .btn-primary {
    background: #1f9d55;
    border-color: #1f9d55;
}
.mecenatge .mecenatge__targeta .btn-primary:hover,
.mecenatge .mecenatge__targeta .btn-primary:focus,
.mecenatge .mecenatge__targeta .btn-primary.is-carregant,
.mecenatge .mecenatge__targeta .btn-primary.is-carregant:disabled {
    background: #17834a;
    border-color: #17834a;
}
.mecenatge .btn-link {
    color: #666;
}

.mecenatge__error {
    margin-top: 1rem;
    padding: .75rem 1rem;
    border-radius: 8px;
    background: #fff0f3;
    color: #b0002e;
    font-size: .95rem;
}

.mecenatge__legal {
    margin: 3rem auto 0;
    max-width: 760px;
    font-size: .8rem;
    color: #777;
    text-align: center;
}

/* Indicador de pas */
.mecenatge__passos {
    margin-bottom: 1.5rem;
}
.mecenatge__pas-text {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: .5rem;
}
.mecenatge__pas-barra {
    height: 4px;
    background: #eee;
    border-radius: 999px;
    overflow: hidden;
}
.mecenatge__pas-barra div {
    height: 100%;
    background: #FF0043;
    transition: width .3s ease-out;
}

/* Província */
.mecenatge__provincies {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
}
.mecenatge__provincia:last-child {
    grid-column: 1 / -1;
}
@media (min-width: 576px) {
    .mecenatge__provincies { grid-template-columns: repeat(5, 1fr); }
    .mecenatge__provincia:last-child { grid-column: auto; }
}
.mecenatge__provincia {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: .65rem .5rem;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    margin: 0;
    transition: border-color .15s, background .15s, color .15s;
}
.mecenatge__provincia:hover {
    border-color: #FF0043;
}
.btn-check:checked + .mecenatge__provincia {
    border-color: #FF0043;
    background: #FF0043;
    color: #fff;
}
.btn-check:focus-visible + .mecenatge__provincia {
    box-shadow: 0 0 0 .2rem rgba(255, 0, 67, .25);
}
.was-validated .btn-check:invalid + .mecenatge__provincia {
    border-color: #dc3545;
}

/* Pas 3 */
.mecenatge__resum {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    background: #f6f6f6;
}
.mecenatge__resum strong {
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
}
.mecenatge__separador {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.5rem 0;
    color: #888;
    font-size: .9rem;
}
.mecenatge__separador::before,
.mecenatge__separador::after {
    content: "";
    flex: 1;
    border-top: 1px solid #ddd;
}
.mecenatge__camp {
    padding: .85rem 1rem;
    min-height: 50px;
}
.mecenatge__camp.StripeElement--focus {
    border-color: #FF0043;
    box-shadow: 0 0 0 .2rem rgba(255, 0, 67, .15);
}
.mecenatge__camp.StripeElement--invalid {
    border-color: #b0002e;
}

/* Botons de moneder amb el text en català */
.mecenatge__apple {
    display: block;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 8px;
    -webkit-appearance: -apple-pay-button;
    -apple-pay-button-type: donate;
    -apple-pay-button-style: black;
    cursor: pointer;
}
.mecenatge__gpay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 8px;
    background: #000;
    color: #fff;
    font-family: Roboto, Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
}
.mecenatge__gpay:hover {
    background: #3c4043;
}
.mecenatge__gpay svg {
    height: 22px;
    width: auto;
}
.mecenatge__apple[hidden],
.mecenatge__gpay[hidden] {
    display: none;
}

/* Estat de càrrega */
.mecenatge__spinner {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    margin-right: .6rem;
    vertical-align: -.2em;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mec-gira .7s linear infinite;
}
@keyframes mec-gira {
    to { transform: rotate(360deg); }
}
.mecenatge .btn-primary.is-carregant,
.mecenatge .btn-primary.is-carregant:disabled {
    opacity: 1;
    background: #d90039;
    border-color: #d90039;
}
[data-pas="3"].is-carregant .mecenatge__camp,
[data-pas="3"].is-carregant #mecWallet {
    opacity: .55;
    pointer-events: none;
    transition: opacity .2s;
}

/* Agraïment */
.mecenatge__gracies {
    max-width: 880px;
    margin: 0 auto;
    padding: 2rem 0 1rem;
    text-align: center;
    scroll-margin-top: 120px;
}
.mecenatge__check {
    width: 112px;
    height: 112px;
    margin: 0 auto 2rem;
    display: block;
    border-radius: 50%;
    background: #16a34a;
    transform: scale(.6);
    opacity: 0;
}
.mecenatge__check-cercle {
    stroke: #fff;
    stroke-width: 2;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    opacity: .35;
}
.mecenatge__check-marca {
    stroke: #fff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
}
.mecenatge__gracies.is-visible .mecenatge__check {
    animation: mec-check-entra .5s cubic-bezier(.34, 1.56, .64, 1) forwards, mec-check-ona 1.4s ease-out .5s;
}
.mecenatge__gracies.is-visible .mecenatge__check-cercle {
    animation: mec-traca .6s ease-out .2s forwards;
}
.mecenatge__gracies.is-visible .mecenatge__check-marca {
    animation: mec-traca .4s ease-out .55s forwards;
}
@keyframes mec-check-entra {
    to { transform: scale(1); opacity: 1; }
}
@keyframes mec-check-ona {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); }
    100% { box-shadow: 0 0 0 28px rgba(22, 163, 74, 0); }
}
@keyframes mec-traca {
    to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .mecenatge__gracies.is-visible .mecenatge__check,
    .mecenatge__gracies.is-visible .mecenatge__check-cercle,
    .mecenatge__gracies.is-visible .mecenatge__check-marca {
        animation: none;
        transform: none;
        opacity: 1;
        stroke-dashoffset: 0;
    }
}
.mecenatge__gracies > *:not(.mecenatge__check) {
    opacity: 0;
    transform: translateY(12px);
}
.mecenatge__gracies.is-visible > *:not(.mecenatge__check) {
    animation: mec-puja .6s ease-out .8s forwards;
}
@keyframes mec-puja {
    to { opacity: 1; transform: none; }
}
.mecenatge__gracies-titol {
    font-family: 'Inter FE', sans-serif !important;
    font-weight: 900 !important;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: .95;
    letter-spacing: -.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.mecenatge__gracies-text {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #555;
    margin-bottom: 3.5rem;
}
.mecenatge__gracies-text strong {
    color: #111;
}
.mecenatge__gracies-blocs {
    display: grid;
    gap: 2.5rem;
    text-align: left;
    border-top: 1px solid #e6e6e6;
    padding-top: 2.5rem;
}
@media (min-width: 768px) {
    .mecenatge__gracies-blocs { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.mecenatge__gracies-bloc h3 {
    font-family: 'Inter FE', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -.02em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}
.mecenatge__gracies-bloc p {
    color: #555;
    margin-bottom: 1.25rem;
}
.mecenatge__xarxes {
    display: flex;
    gap: 1.5rem;
}
.mecenatge__xarxes a {
    color: #111;
    transition: color .2s;
}
.mecenatge__xarxes a:hover,
.mecenatge__xarxes a:focus-visible {
    color: #FF0043;
}
.mecenatge__xarxes svg {
    display: block;
    width: 28px;
    height: 28px;
    fill: currentColor;
}
