/* ==========================================================================
   ROOF RANGERS – COMPLETE PAGE CSS
   ========================================================================== */

/* Container Principale della Pagina */
.rr-page-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #0f172a; /* Slate 900 - Sfondo scuro e cinematico */
    color: #f8fafc; /* Slate 50 - Testo chiaro ad alta leggibilità */
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* 1. HERO SECTION (INTRO) */
.rr-hero {
    text-align: center;
    padding: 40px 10px 40px 10px;
    max-width: 850px;
    margin: 0 auto;
}

.rr-badge {
    background-color: #1e293b; /* Slate 800 */
    color: #38bdf8; /* Accent Sky Blue */
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 24px;
    border: 1px solid #334155;
}

.rr-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

.rr-title .rr-accent {
    color: #f59e0b; /* Ambra/Khaki d'azione per i Rangers */
}

.rr-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #cbd5e1; /* Slate 300 */
    margin-bottom: 18px;
}

.rr-sublead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #94a3b8; /* Slate 400 */
}

/* Divisore Cinematico sfumato */
.rr-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #334155, transparent);
    margin: 50px 0;
}

/* 2. ROSTER SECTION (LA GRIGLIA) */
.rr-roster-section {
    padding: 20px 0;
}

.rr-section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    color: #ffffff;
    text-transform: uppercase;
}

.rr-section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: #94a3b8;
    margin-bottom: 48px;
}

/* Struttura Grid a due colonne (Tabular Fallback per massima compatibilità) */
.rr-grid {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 24px;
    margin: 0 auto;
}

.rr-row {
    display: table-row;
}

/* Schede Personaggi (Cards) */
.rr-card {
    display: table-cell;
    width: 50%;
    background-color: #1e293b; /* Slate 800 */
    border: 1px solid #334155;
    border-top: 4px solid #f59e0b; /* Elemento distintivo Ranger */
    padding: 35px;
    vertical-align: top;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Effetto Hover sulle schede */
.rr-card:hover {
    transform: translateY(-5px);
    border-color: #fbbf24;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

.rr-card-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #334155;
    padding-bottom: 15px;
}

.rr-name {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.rr-real-role {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Box dei Superpoteri (Stile Equipaggiamento Tattico) */
.rr-power-box {
    background-color: #2c2414; /* Tonalità scura protettiva */
    border-left: 3px solid #f59e0b;
    padding: 14px 18px;
    margin-bottom: 22px;
    border-radius: 0 6px 6px 0;
}

.rr-power-title {
    font-size: 12px;
    font-weight: 800;
    color: #fca5a5; /* Leggero contrasto d'allerta / azione */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 6px 0;
}

.rr-power-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #e2e8f0;
    font-style: italic;
}

/* Descrizione della Lore/Biografia */
.rr-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
}

/* 3. FINAL SERIOUS CALL TO ACTION */
.rr-cta-block {
    margin-top: 60px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    padding: 45px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.rr-cta-block h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #ffffff;
}

.rr-cta-block p {
    font-size: 1.1rem;
    color: #94a3b8;
    margin: 0 0 28px 0;
}

.rr-cta-button {
    display: inline-block;
    background-color: #f59e0b;
    color: #0f172a;
    padding: 14px 36px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.3);
}

.rr-cta-button:hover {
    background-color: #fbbf24;
    transform: scale(1.02);
}
.rr-card-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Forces it to fill the space completely */
    object-position: center top !important; /* Ensures faces aren't cut off */
}
/* Stile Immagini dei Personaggi */
.rr-card-img-wrapper {
    position: relative;
    width: 100%;
    background-color: #0f172a;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #334155;
}


/* Effetto zoom fluido sull'immagine quando l'utente passa il mouse sulla card */
.rr-card:hover .rr-card-img {
    transform: scale(1.03);
    filter: grayscale(0%) contrast(1.1);
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */

@media (max-width: 992px) {
    .rr-title { font-size: 2.4rem; }
    .rr-card { padding: 25px; }
    .rr-name { font-size: 21px; }
}

@media (max-width: 768px) {
    .rr-page-container { padding: 40px 15px; }
    .rr-title { font-size: 2rem; }
    .rr-section-title { font-size: 1.8rem; }
    .rr-lead { font-size: 1.1rem; }
    
    /* Reset della struttura a tabella per mobile: incolonna le schede */
    .rr-grid, .rr-row, .rr-card {
        display: block !important;
        width: 100% !important;
    }
    
    .rr-card {
        margin-bottom: 24px !important;
        border-spacing: 0;
    }
    
    .rr-cta-block { padding: 35px 20px; }
    .rr-cta-block h3 { font-size: 1.35rem; }
}