/* =========================================================
   Prezzomania V2 - Footer
   Mobile first
   ========================================================= */

.pm-footer {
    margin-top: var(--pm-space-12);
    background: #fff;
    color: var(--pm-text);
    border-top: 1px solid var(--pm-border);
}

.pm-footer__eyebrow {
    display: block;
    margin: 0 0 0.75rem;
    color: var(--pm-text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Payments ---------- */

.pm-footer-payments {
    padding: 1.5rem 0;
    background: #fff;
    border-bottom: 1px solid var(--pm-border);
}

.pm-footer-payment-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 1rem;
}

.pm-footer-payment-grid img {
    display: block;
    width: 100%;
    max-width: 78px;
    max-height: 34px;
    margin: auto;
    object-fit: contain;
    filter: saturate(0.9);
}

/* ---------- Newsletter ---------- */

.pm-footer-newsletter {
    padding: 2.25rem 0;
    background: var(--pm-gray-100);
    border-bottom: 1px solid var(--pm-border);
}

.pm-footer-newsletter__grid {
    display: grid;
    gap: 1.5rem;
}

.pm-footer-newsletter__title {
    max-width: 620px;
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.25;
}

.pm-footer-newsletter__text {
    margin: 0.6rem 0 0;
    color: var(--pm-text-secondary);
}

.pm-footer-newsletter__form {
    width: 100%;
}

.pm-footer-newsletter__field {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.pm-footer-newsletter__input {
    width: 100%;
    min-height: 48px;
    padding: 0 1rem;

    border: 1px solid var(--pm-border-strong);
    border-radius: var(--pm-radius);
    background: #fff;
    color: var(--pm-text);

    outline: none;
}

.pm-footer-newsletter__input:focus {
    border-color: var(--pm-primary);
    box-shadow: var(--pm-focus-ring);
}

.pm-footer-newsletter__button {
    min-height: 48px;
    padding: 0 1.25rem;

    border: 1px solid var(--pm-black);
    border-radius: var(--pm-radius);
    background: var(--pm-black);
    color: #fff;

    font-weight: 700;
    cursor: pointer;
}

.pm-footer-newsletter__button:hover:not(:disabled) {
    background: var(--pm-primary);
    border-color: var(--pm-primary);
}

.pm-footer-newsletter__button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pm-footer-newsletter__privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;

    margin-top: 0.85rem;

    color: var(--pm-text-secondary);
    font-size: 0.76rem;
    line-height: 1.45;
}

.pm-footer-newsletter__privacy input {
    margin-top: 0.15rem;
}

.pm-footer-newsletter__privacy a {
    color: var(--pm-text);
}

.pm-footer-newsletter__status {
    min-height: 1.2rem;
    margin: 0.5rem 0 0;
    color: var(--pm-text-secondary);
    font-size: 0.78rem;
}

/* ---------- Link grid ---------- */

.pm-footer-links {
    padding: 2.5rem 0 0;
    background: #fff;
}

.pm-footer-links__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
}

.pm-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
}

.pm-footer-column__title {
    margin: 0 0 0.25rem;
    color: var(--pm-primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pm-footer-column a {
    color: var(--pm-text-secondary);
    font-size: 0.86rem;
    line-height: 1.35;
    text-decoration: none;
}

.pm-footer-column a:hover {
    color: var(--pm-primary);
}

/* ---------- Trust / brand ---------- */

.pm-footer-trust {
    display: grid;
    gap: 1.75rem;

    margin-top: 2.5rem;
    padding: 2rem 0;

    border-top: 1px solid var(--pm-border);
}

.pm-footer-brand__logo {
    width: 100%;
    max-width: 250px;
    height: auto;
}

.pm-footer-brand p {
    max-width: 360px;
    margin: 0.75rem 0 0;
    color: var(--pm-text-secondary);
    font-size: 0.85rem;
}

.pm-footer-trust__block {
    min-width: 0;
}

.pm-footer-trust__logo {
    display: block;
    width: auto;
    max-width: 185px;
    max-height: 68px;
    object-fit: contain;
}

.pm-footer-security {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.1rem;
}

.pm-footer-security img {
    width: auto;
    max-width: 95px;
    max-height: 52px;
    object-fit: contain;
}

/* ---------- Social ---------- */

.pm-footer-social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: 1.25rem 0 2rem;

    border-top: 1px solid var(--pm-border);

    color: var(--pm-text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
}

.pm-footer-social__links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.pm-footer-social__links a {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--pm-border);
    border-radius: 50%;

    color: var(--pm-text);

    transition:
        color var(--pm-transition-fast),
        border-color var(--pm-transition-fast),
        background-color var(--pm-transition-fast);
}

.pm-footer-social__links a:hover {
    border-color: var(--pm-primary);
    background: var(--pm-primary);
    color: #fff;
}

.pm-footer-social__links svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pm-footer-social__links a:first-child svg,
.pm-footer-social__links a:last-child svg {
    fill: currentColor;
    stroke: none;
}

/* ---------- Legal ---------- */

.pm-footer-legal {
    padding: 1.5rem 0;
    background: var(--pm-black);
    color: #fff;
}

.pm-footer-legal__inner {
    display: grid;
    gap: 1.5rem;
}

.pm-footer-legal__inner > div {
    display: grid;
    gap: 0.25rem;

    font-size: 0.72rem;
    line-height: 1.45;
}

.pm-footer-legal a {
    color: #fff;
}

.pm-footer-powered {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;

    justify-self: start;

    color: #fff;
    font-size: 0.68rem;
    text-decoration: none;
}

.pm-footer-powered img {
    display: block;
    width: 120px;
    max-height: 42px;
    object-fit: contain;
    background: #fff;
    border-radius: 0.25rem;
    padding: 0.2rem 0.4rem;
}

/* ---------- Responsive ---------- */

@media (min-width: 576px) {
    .pm-footer-payment-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .pm-footer-newsletter__field {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .pm-footer-newsletter__button {
        min-width: 130px;
    }
}

@media (min-width: 768px) {
    .pm-footer-payment-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .pm-footer-payment-grid img {
        max-width: 72px;
    }

    .pm-footer-links__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pm-footer-trust {
        grid-template-columns: 1.2fr 0.8fr 1fr;
        align-items: start;
    }

    .pm-footer-legal__inner {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .pm-footer-powered {
        justify-self: end;
    }
}

@media (min-width: 992px) {
    .pm-footer {
        margin-top: var(--pm-space-16);
    }

    .pm-footer-newsletter__grid {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
        align-items: start;
        gap: 3rem;
    }

    .pm-footer-links__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 2rem;
    }
}


/* =========================================================
   reCAPTCHA Enterprise score-based
   Il badge puo' essere nascosto pur mantenendo visibile
   l'informazione che il sito usa reCAPTCHA.
   ========================================================= */

.grecaptcha-badge {
    visibility: hidden !important;
}

.pm-recaptcha-disclosure {
    margin: 0.7rem 0 0;
    color: var(--pm-text-muted);
    font-size: 0.64rem;
    line-height: 1.45;
}

.pm-footer-newsletter__status.is-error {
    color: var(--pm-danger);
}

.pm-footer-newsletter__status.is-success {
    color: var(--pm-success);
}


/* ---------- Newsletter inline feedback ---------- */

.pm-footer-newsletter__feedback[hidden] {
    display: none !important;
}

.pm-footer-newsletter__feedback {
    grid-column: 1 / -1;
    min-height: 48px;
    width: 100%;

    display: flex;
    align-items: center;
    gap: 0.65rem;

    padding: 0.75rem 1rem;

    border: 1px solid var(--pm-border-strong);
    border-radius: var(--pm-radius);
    background: #fff;
    color: var(--pm-text);

    font-size: 0.9rem;
    line-height: 1.35;
}

.pm-footer-newsletter__feedback::before {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1.5px solid currentColor;
    border-radius: 50%;

    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
}

.pm-footer-newsletter__feedback.is-success {
    border-color: var(--pm-primary);
}

.pm-footer-newsletter__feedback.is-success::before {
    content: "✓";
    color: var(--pm-primary);
}

.pm-footer-newsletter__feedback.is-error {
    border-color: var(--pm-danger);
}

.pm-footer-newsletter__feedback.is-error::before {
    content: "!";
    color: var(--pm-danger);
}

.pm-footer-newsletter__field.is-complete .pm-footer-newsletter__input,
.pm-footer-newsletter__field.is-complete .pm-footer-newsletter__button {
    display: none;
}
