
/* KLIKOWEB — PACKAGES SYSTEM */

.kw-packages {
    background: #10120e;
}

.kw-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.kw-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #ffffff22;
    border-radius: 10px;
    overflow: hidden;
    background: #171a15;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}

.kw-plan:hover {
    transform: translateY(-5px);
    border-color: #b7ff3c88;
    box-shadow: 0 18px 45px #0006;
}

/* PREVIEW */

.kw-preview {
    display: block;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #ffffff20;
}

.kw-browser {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 11px 12px;
    background: #252922;
}

.kw-browser i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #9fa69a;
}

.kw-browser small {
    margin-left: auto;
    font: 8px monospace;
    color: #b0b5ab;
    letter-spacing: .08em;
}

.kw-mini {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #252922;
}

.kw-mini img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s;
}

.kw-mini::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #000c, #0000 90%);
    pointer-events: none;
}

.kw-preview:hover img {
    transform: scale(1.08);
}

.kw-mini-title {
    position: absolute;
    left: 15px;
    right: 45px;
    bottom: 18px;
    z-index: 2;
    color: white;
}

.kw-mini-title small {
    font: 9px monospace;
    letter-spacing: .1em;
    display: block;
    margin-bottom: 7px;
}

.kw-mini-title strong {
    font: 600 clamp(22px, 2.6vw, 36px)/1 var(--heading);
    letter-spacing: -.06em;
}

.kw-preview-arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--lime);
    color: #10140b;
}

.kw-basic .kw-mini {
    background: #bca697;
}

.kw-advanced .kw-mini {
    background: #778b97;
}

.kw-pro .kw-mini {
    background: #a72f27;
}

.kw-custom .kw-mini {
    background: radial-gradient(circle, #523b87, #10101a);
}

/* CORPO PACCHETTO */

.kw-plan-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(16px, 1.6vw, 25px);
}

.kw-plan-category {
    color: var(--muted);
    font: 10px monospace;
    letter-spacing: .07em;
}

.kw-plan h3 {
    font: 600 28px/1.1 var(--heading);
    letter-spacing: -.055em;
    margin: 10px 0 24px;
}

.kw-price {
    font: 700 clamp(26px, 2.8vw, 40px)/1 var(--heading);
    letter-spacing: -.06em;
    color: var(--paper);
}

.kw-price-caption {
    font-size: 11px;
    color: var(--muted);
    margin: 8px 0 15px;
}

.kw-monthly {
    padding: 12px;
    border: 1px solid #b7ff3c25;
    border-radius: 4px;
    background: #b7ff3c0c;
    color: var(--paper);
    font-size: 11px;
}

.kw-monthly strong {
    font: 700 16px var(--heading);
    color: var(--lime);
}

.kw-value-label {
    min-height: 32px;
    margin: 20px 0 10px;
    color: var(--lime);
    font: 10px/1.6 monospace;
    letter-spacing: .04em;
}

.kw-plan ul {
    list-style: none;
    padding: 0;
    margin: 0 0 23px;
}

.kw-plan li {
    position: relative;
    padding: 10px 0 10px 18px;
    border-bottom: 1px solid #ffffff13;
    color: #d6dad2;
    font-size: 12px;
    line-height: 1.5;
}

.kw-plan li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--lime);
}

.kw-plan-footer {
    margin-top: auto;
}

.kw-note {
    display: block;
    min-height: 52px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.kw-plan-actions {
    display: grid;
    gap: 9px;
}

.kw-plan-actions .btn {
    width: 100%;
    padding: 13px 8px;
    font-size: 11px;
}

.kw-highlight {
    position: absolute;
    right: 10px;
    top: 40px;
    z-index: 3;
    background: var(--lime);
    color: #10140a;
    padding: 6px 9px;
    font: 700 8px monospace;
}

/* PRO E CUSTOM */

.kw-pro {
    border-color: #b7ff3c55;
}

.kw-custom {
    background:
        radial-gradient(ellipse at top right, #b7ff3c1b, transparent 75%),
        #151a10;
    border-color: var(--lime);
}

.kw-custom .kw-price {
    color: var(--lime);
}

.kw-custom::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        white,
        var(--lime),
        transparent
    );
    animation: custom-scan 4s linear infinite;
    pointer-events: none;
}

@keyframes custom-scan {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.kw-disclaimer {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.7;
    margin: 25px 0;
}

/* CONFRONTO */

.comparison {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.comparison summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.comparison summary::-webkit-details-marker {
    display: none;
}

.comparison summary span {
    font-size: 25px;
    color: var(--lime);
    transition: transform .3s;
}

.comparison[open] summary span {
    transform: rotate(45deg);
}

.comparison-scroll {
    overflow-x: auto;
}

.comparison table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.comparison th,
.comparison td {
    padding: 15px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 12px;
}

.comparison th:first-child,
.comparison td:first-child {
    text-align: left;
}

.comparison th {
    color: var(--lime);
}

.comparison td {
    color: #d4d8cf;
}

.comparison td:last-child,
.comparison th:last-child {
    background: #b7ff3c08;
}

/* RESPONSIVE */

@media (max-width: 1150px) {

    .kw-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .kw-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .kw-plan-body {
        padding: 24px;
    }

    .kw-price {
        font-size: 42px;
    }

    .kw-value-label,
    .kw-note {
        min-height: auto;
    }

}

@media (prefers-reduced-motion: reduce) {

    .kw-custom::after {
        animation: none;
    }

    .kw-plan:hover {
        transform: none;
    }

}

/* ==========================================
   KLIKOWEB — ICONE PACCHETTI SVG
   PC / IPHONE / ANDROID
========================================== */

/* Freccia circolare sulle fotografie */

.kw-preview-arrow svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.kw-preview:hover .kw-preview-arrow svg {
    transform: translate(2px, -2px);
}

/* Frecce nei pulsanti dei pacchetti */

.kw-plan-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.kw-plan-actions .btn svg {
    display: block;
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.kw-plan-actions .btn:hover svg {
    transform: translate(2px, -2px);
}

/* Ottimizzazione mobile */

@media (max-width: 600px) {

    .kw-preview-arrow svg {
        width: 18px;
        height: 18px;
    }

    .kw-plan-actions .btn svg {
        width: 16px;
        height: 16px;
    }

}
