﻿/* HERO */
.mh-hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('/images/wallpaper/abbonamenti-cestriecon.jpg') center no-repeat;
    background-size: cover;
    background-attachment: fixed; /* PARALLAX */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    margin-top: -116px;
}

.mh-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}

.mh-hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 0 1rem;
}

.mh-hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.mh-hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


/* Compare table */
.membership-compare {
    margin: 100px 0;
}

.mc-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #07020d;
}

.mc-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

    .mc-table th,
    .mc-table td {
        padding: 16px;
        border-bottom: 1px solid #eaeaea;
        text-align: center;
    }

    .mc-table th {
        background: var(--brand-middleblue);
        font-weight: 700;
    }

/* ---------------------------------------------
   MEMBERSHIP PLANS – CARD UNIFORM HEIGHT
--------------------------------------------- */
.membership-plans {
    padding: 70px 0;
    margin: 100px 0 0;
    background: var(--brand-lightblue);
}

.membership-plans .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.mp-title {
    font-weight: 700;
}

/* --------------------------------------------------
   CARDS PIANI – STILE IDENTICO ALLA HOME
-------------------------------------------------- */

.mp-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 0;
    border: 1px solid var(--brand-lightblue);
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
    color: #3b3542;
    /* Altezza uniforme */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

    .mp-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }

/* --------------------------------------------------
   TITOLO SOPRA ICONA
-------------------------------------------------- */

.mp-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    order: -2; /* sopra tutto */
}

/* --------------------------------------------------
   ICONA (identica alla Home)
-------------------------------------------------- */

.icon-wrap {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    order: -1; /* subito sotto il titolo */
}

    .icon-wrap i {
        font-size: 5rem;
        color: var(--brand-darkblue);
    }

/* --------------------------------------------------
   PREZZO
-------------------------------------------------- */

.mp-price {
    font-size: 3rem;
    font-weight: lighter;
    color: var(--brand-darkblue);
    margin-bottom: 20px;
}

    .mp-price span {
        font-size: 0.8rem;
        color: #3b3542;
    }

/* --------------------------------------------------
   FEATURES – identiche alla Home
-------------------------------------------------- */

.mp-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    flex-grow: 1; /* spinge il bottone in basso */
}

    .mp-features li {
        font-size: 1rem;
        color: inherit;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mp-features i {
        color: #cdac92;
        font-size: 1.2rem;
        margin-right: 8px;
    }

/* --------------------------------------------------
   PULSANTE SEMPRE IN BASSO
-------------------------------------------------- */

.mp-btn {
    margin-top: auto;
    align-self: center;
    width: auto; /* larghezza in base al testo */
    padding: 12px 26px;
    border-radius: 8px;
    font-size: 1rem;
}

/* --------------------------------------------------
   FEATURED (identico alla Home)
-------------------------------------------------- */

.mp-featured {
    background: var(--brand-darkblue);
    color: white;
    border: 1px solid var(--brand-darkblue);
    position: relative;
    overflow: hidden;
}

    .mp-featured .mp-price, .mp-featured .mp-price span {
        color: inherit;
    }

    .mp-featured .icon-wrap {
        background: rgba(255,255,255,0.15);
    }

        .mp-featured .icon-wrap i {
            color: white;
        }

    /* Maschera diagonale */
    .mp-featured::before {
        content: "";
        position: absolute;
        top: -20px;
        right: -50px;
        width: 150px;
        height: 80px;
        background: var(--brand-markedblue);
        transform: rotate(45deg);
        z-index: 1;
    }

/* Badge diagonale */
.mp-badge-diagonal {
    position: absolute;
    top: 7px;
    right: -25px;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
    padding: 6px 12px;
    width: 110px;
    transform: rotate(45deg);
    z-index: 5;
}

/* --------------------------------------------------
   TOOLTIP
-------------------------------------------------- */
.tooltip-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background: #e5e5e5;
    color: #333;
    font-size: 12px;
    cursor: pointer;
    margin-left: 6px;
    font-weight: 600;
    position: relative;
}

.tooltip-box {
    position: absolute;
    top: 26px;
    right: 0;
    background: #fff;
    color: #333;
    padding: 12px 14px;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    width: 260px;
    font-size: 13px;
    line-height: 1.4;
    z-index: 9999;
    display: none;
}

    .tooltip-box::after {
        content: "";
        position: absolute;
        top: -6px;
        right: 5px;
        border-width: 0 6px 6px 6px;
        border-style: solid;
        border-color: transparent transparent #fff transparent;
    }


/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */

@media (max-width: 991px) {
    .mp-card {
        max-width: 380px;
        margin: 0 auto;
    }
}
