/* ============================================================
   COUPON — PAGINA PREMIUM
============================================================ */

.page-coupon {
    background: #f5f7f9;
}

/* HERO */
.page-hero {
    padding: 35px 0 25px;
    background: #e6eef1;
    text-align: center;
    border-bottom: 3px solid #4d798b20;
    border-top: 2px solid #d3dde2;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #355866;
}

.page-subtitle {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* CONTAINER */
.page-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* CARD COUPON */
.coupon-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 35px;
    max-width: 600px;
    margin: 40px auto;
    text-align: center;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.08),
        0 10px 25px rgba(0, 0, 0, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.10);

    position: relative;
    overflow: hidden;
}

/* Bordo animato premium */
.coupon-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, #4d798b, #355866, #4d798b);
    opacity: 0;
    transition: opacity 0.35s ease;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

.coupon-card:hover::before {
    opacity: 1;
    filter: drop-shadow(0 0 12px #4d798b60);
}

/* IMMAGINE */
.coupon-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.18);
    margin-bottom: 25px;
}

/* BUTTON */
.coupon-btn {
    display: inline-block;
    background: #4d798b;
    color: #fff;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
}

.coupon-btn:hover {
    background: #355866;
    transform: translateY(-2px);
}

.print-btn {
    background: #7fa1ad;
    margin-left: 10px;
}

.print-btn:hover {
    background: #53717d;
}

.coupon-qr {
    margin-top: 25px;
    text-align: center;
}

.coupon-qr img {
    width: 160px;
    margin-bottom: 10px;
}

.qr-text {
    font-size: 0.95rem;
    color: #355866;
}

.email-btn {
    background: #355866;
    margin-top: 10px;
}

.email-btn:hover {
    background: #23333a;
}

.open-btn {
    background: #4d798b;
    margin-top: 10px;
}

.open-btn:hover {
    background: #355866;
}

.coupon-mail {
    margin-top: 30px;
    text-align: center;
}

.coupon-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.coupon-form input[type="email"] {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 260px;
    font-size: 1rem;
}

.coupon-form button {
    background: #4d798b;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}

.coupon-form button:hover {
    background: #355866;
}

.alert-box {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
}

.alert-box.success {
    background: #e6f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-box.error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f5b5b5;
}

/* MOBILE */
@media (max-width: 768px) {
    .coupon-card {
        padding: 25px;
    }

    .coupon-btn {
        padding: 10px 18px;
        font-size: 0.95rem;
    }
}