.page-content {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 160px); /* Altezza viewport meno header e footer (circa) */
}

.choice-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h1 {
    font-size: 3rem;
    color: var(--highlight-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    transition: font-size 0.3s ease;
}

.divider {
    width: 80px;
    height: 2px;
    background-color: var(--accent-color, #4A90E2);
    margin: 0 auto;
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.choice-card {
    position: relative;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.5s ease;
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.6s ease, filter 0.6s ease;
}

/* Overlay scuro di default */
.choice-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(4, 5, 7, 0.95) 10%, rgba(4, 5, 7, 0.4) 60%, transparent 100%);
    z-index: 2;
    transition: background 0.5s ease;
}

.card-content {
    position: relative;
    z-index: 3;
    color: var(--highlight-color);
}
.card-content h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    transition: font-size 0.3s ease;
}
.card-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 80%;
}

/* === ANIMAZIONI HOVER === */

/* Effetto sulla card non selezionata */
.choice-grid:hover .choice-card:not(:hover) {
    transform: scale(0.98);
    filter: saturate(0) brightness(0.8);
}

/* Effetto sulla card selezionata */
.choice-card:hover {
    border-color: var(--highlight-color);
}
.choice-card:hover .card-background {
    transform: scale(1.05);
}
.choice-card:hover::after {
    background: linear-gradient(to top, rgba(4, 5, 7, 0.8) 10%, transparent 70%);
}

/* Angoli di puntamento */
.corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border-color: var(--highlight-color);
    border-style: solid;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 4;
}
.corner.top-left { top: 20px; left: 20px; border-width: 2px 0 0 2px; transform: translate(-10px, -10px); }
.corner.top-right { top: 20px; right: 20px; border-width: 2px 2px 0 0; transform: translate(10px, -10px); }
.corner.bottom-left { bottom: 20px; left: 20px; border-width: 0 0 2px 2px; transform: translate(-10px, 10px); }
.corner.bottom-right { bottom: 20px; right: 20px; border-width: 0 2px 2px 0; transform: translate(10px, 10px); }

.choice-card:hover .corner {
    opacity: 1;
    transform: translate(0, 0);
}

/* === RESPONSIVE CORRETTO E MIGLIORATO === */
@media (max-width: 900px) {
    .choice-container {
        padding: 60px 20px; /* Riduce il padding per schermi medi */
    }
    .choice-grid {
        grid-template-columns: 1fr; /* Le card si impilano */
        gap: 30px;
    }
    .section-title h1 {
        font-size: 2.2rem; /* Riduce il titolo principale */
    }
    .card-content h2 {
        font-size: 2rem; /* Riduce i titoli delle card */
    }
}

@media (max-width: 480px) {
    .section-title h1 {
        font-size: 1.8rem; /* Riduce ulteriormente per telefoni */
    }
     .card-content h2 {
        font-size: 1.7rem;
    }
    .card-content p {
        font-size: 1rem;
    }
    .choice-card {
        padding: 30px; /* Riduce il padding interno delle card */
    }
}