* {
    box-sizing: border-box;
}

/* ====== STILI GENERALI ====== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* ====== HEADER ====== */
header {
    /* background: linear-gradient(135deg, #809ea1, #0056b3); */
    color: #000000;
    text-align: center;
    padding: 3rem 2rem;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

header p {
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0.5rem auto;
}

/* ====== SEZIONI ====== */
main section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: auto;
}

main h2 {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
    text-align: center;
}

/* ====== LISTE PROBLEMI ====== */
.problems ul {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    max-width: 800px;
}

.problems li {
    background: #fff;
    margin: 12px 0;
    padding: 15px 20px;
    border-left: 6px solid #007bff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-size: 1rem;
}

/* ====== CARDS ABBONAMENTI ====== */
.containerSubscription {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    align-items: stretch;
}

.containerSubscription .card {
    background: linear-gradient(to bottom, #ffffff, #eaf4ff);
    width: 100%;
    max-width: 25%;
    min-width: 30%;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.containerSubscription .card:hover {
    transform: scale(1.05);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.25);
}

.containerSubscription .card.best-choice {
    border: 3px solid #007bff;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
}

.containerSubscription .card .badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #ff9800;
    color: #fff;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ====== TITOLI CARD ====== */
.containerSubscription h2 {
    font-size: 1.6rem;
    margin: 0.5rem 0 1rem;
    color: #00796b;
}

/* ====== FEATURES ====== */
.containerSubscription .features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.containerSubscription .features li {
    margin: 6px 0;
}

/* ====== PREZZO E URGENZA ====== */
.containerSubscription .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.containerSubscription .price s {
    color: #777;
    margin-right: 5px;
}

.containerSubscription .urgency {
    font-size: 0.9rem;
    color: #d32f2f;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* ====== RATE INFO ====== */
.containerSubscription .rate-info {
    display: block;
    margin: 8px 0;
    color: #00b894;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ====== BOTTONI ====== */
.containerSubscription .promo-btn,
.cta .promo-btn {
    background: #007bff;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: auto;
    width: 100%;
    max-width: 220px;
    align-self: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.containerSubscription .promo-btn:hover,
.cta .promo-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0px 8px 15px rgba(0, 123, 255, 0.3);
}

/* --- COMPARISON TABLE --- */
.comparison {
    max-width: 100%;
    overflow-x: auto;
    padding: 0 20px 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

th, td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background: #007bff;
    color: #fff;
}

tr:hover {
    background: #f1f1f1;
}

td:first-child {
    text-align: left;
    font-weight: bold;
}

.check {
    color: green;
    font-weight: bold;
}

.cross {
    color: red;
    font-weight: bold;
}

/* ====== CTA FINALE ====== */
.cta {
    text-align: center;
    background: #eaf4ff;
    padding: 3rem 2rem;
    border-radius: 20px;
    margin: 3rem auto;
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.05);
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #00796b;
}

.cta p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #444;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .containerSubscription .card {
        max-width: 45%;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    .containerSubscription {
        flex-direction: column;
        align-items: center;
    }
    .containerSubscription .card {
        max-width: 100%;
    }
}
