/* ================================================================
   PACCHETTI — manutenzione & assistenza (pacchetti.php)
   CSS mancante ricreato sul design system ScerboCode.
================================================================ */
.section-pack {
    background: var(--black);
    color: var(--off-white);
    padding: clamp(8.5rem, 12vw, 10rem) var(--gutter) clamp(4rem, 8vw, 6rem);
    text-align: center;
    min-height: 100vh;
}

.title-pack {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--off-white);
    margin-bottom: 1.25rem;
}

.p-pack {
    color: var(--mid-grey);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

/* ── Toggle Mensile / Annuale ── */
.switch-container {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    font-size: .95rem;
    color: rgba(244,246,248,.7);
    margin-bottom: 3.5rem;
}
.switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; inset: 0; cursor: pointer;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 30px;
    transition: background .3s;
}
.slider::before {
    content: ''; position: absolute;
    height: 20px; width: 20px; left: 3px; bottom: 2px;
    background: #fff; border-radius: 50%;
    transition: transform .3s;
}
.switch input:checked + .slider { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(22px); }

.switch-container .badge {
    background: var(--accent-soft);
    color: #4ddb7a;
    border: 1px solid rgba(39,141,70,.3);
    font-size: .72rem;
    font-weight: 700;
    padding: .15rem .55rem;
    border-radius: 20px;
    letter-spacing: .04em;
}

/* ── Griglia card ── */
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.pricing-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 2.25rem 1.75rem;
    text-align: left;
    position: relative;
    transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(39,141,70,.45);
    box-shadow: 0 18px 44px rgba(0,0,0,.4);
}
/* Card "Pro" in evidenza (la seconda) */
.pricing-card:nth-child(2) {
    border-color: rgba(39,141,70,.5);
    background: linear-gradient(160deg, rgba(39,141,70,.10) 0%, rgba(255,255,255,.03) 60%);
    box-shadow: 0 0 0 1px rgba(39,141,70,.25), 0 20px 50px rgba(0,0,0,.45);
}

.badge-plan {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .3rem .8rem;
    border-radius: 30px;
    margin-bottom: 1.1rem;
}
.badge-plan.standard { background: rgba(255,255,255,.08); color: rgba(244,246,248,.75); }
.badge-plan.pro      { background: var(--accent); color: #fff; }
.badge-plan.premium  { background: rgba(0,51,102,.35); color: #7fb0e6; border: 1px solid rgba(127,176,230,.3); }

.pricing-card h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--off-white);
    margin-bottom: .5rem;
}

.price {
    font-size: 1.7rem;
    font-weight: 700;
    color: #4ddb7a;
    margin-bottom: 1.25rem;
}

.pricing-card details {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}
.pricing-card summary {
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: .04em;
    list-style: none;
    user-select: none;
}
.pricing-card summary::-webkit-details-marker { display: none; }
.pricing-card summary::after { content: ' ▾'; }
.pricing-card details[open] summary::after { content: ' ▴'; }
.pricing-card details ul {
    list-style: none;
    margin-top: .9rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.pricing-card details li {
    font-size: .88rem;
    color: rgba(244,246,248,.7);
    display: flex;
    align-items: center;
}
.pricing-card details li i { color: var(--accent); }

.btn-choose {
    width: 100%;
    padding: .8rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.btn-choose:hover:not([disabled]) { background: var(--accent-dark); transform: translateY(-2px); }

/* ── Sezione finale personalizzata ── */
.custom-section {
    max-width: 680px;
    margin: 4rem auto 0;
    padding: 2.5rem;
    background: rgba(39,141,70,.06);
    border: 1px solid rgba(39,141,70,.2);
    border-radius: 18px;
}
.custom-section p {
    color: rgba(244,246,248,.7);
    line-height: 1.8;
    margin-bottom: 1.75rem;
}
.custom-section strong { color: var(--off-white); }
.custom-section .btn-choose { width: auto; padding: .8rem 2.5rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .cards-container { grid-template-columns: 1fr; max-width: 440px; }
    .pricing-card:nth-child(2) { order: -1; } /* Pro in cima su mobile */
}
