/* =========================================================
   FILE: tropic_v2.css - VERSIONE BALANCED GRADIENT + RELIEF
   ========================================================= */

:root {
    /* Palette Colori Originale */
    --tropic-blue: #003366;
    --tropic-yellow: #ffcc00;
    --tropic-orange: #ff7f50;
    --tropic-red: #cc0000;
    --tropic-grey: #6B6B6B;
    --tropic-green: #009F08;
    --bg-main: #ffffff;
    --text-dark: #1a202c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f4f7f6;
    background-image: url('images/bg.jpg');
    background-attachment: fixed;
    background-repeat: repeat;
}

/* --- LAYOUT --- */
.v2-wrapper {
    display: flex;
    min-height: 100vh;
}

.v2-main-content-full {
    width: 100%;
    max-width: 1300px;
    margin: auto;
    padding: 30px;
    box-sizing: border-box;
}

/* --- SIDEBAR CON GRADIENTE BILANCIATO --- */
.v2-sidebar {
    width: 260px;
    background: linear-gradient(180deg, 
                var(--tropic-blue) 0%, 
                var(--tropic-blue) 40%, 
                var(--tropic-yellow) 65%, 
                var(--tropic-orange) 85%, 
                var(--tropic-red) 100%);
    background-attachment: fixed;
    color: white;
    flex-shrink: 0;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.v2-nav li a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.v2-nav li a:hover {
    background: rgba(0,0,0,0.15);
    padding-left: 35px;
}

/* --- CARD TITOLO (Effetto Floating) --- */
.v2-header-card {
    text-align: center;
    background: #0056b3;
    color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.v2-header-card h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- CARD STANDARD (Effetto Rilievo) --- */
.v2-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.v2-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* --- CARD DESCRITTIVE XL E RICERCA --- */
.v2-desc-card-xl, .v2-search-card, .v2-desc-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.v2-desc-card-xl { border-left: 15px solid var(--tropic-blue); }
.v2-search-card { border-left: 15px solid var(--tropic-orange); }
.v2-desc-card { border-left: 15px solid #990000; }

/* --- BADGE CARD (Effetto Elevazione) --- */
.v2-badge-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    color: inherit;
}

a.v2-badge-card:hover {
    transform: translateY(-8px);
    border-color: var(--tropic-blue);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* --- PULSANTI ROSTER STYLE --- */
.v2-btn-roster-style {
    display: inline-block;
    background: #f0f7ff !important;
    border: 2px solid var(--tropic-blue) !important;
    border-radius: 10px;
    padding: 15px 45px;
    color: var(--tropic-blue) !important;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
}

.v2-btn-roster-style:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.15);
    background: #e6f2ff !important;
}

/* --- TABELLE --- */
.v2-table-timetable {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.v2-badge-level {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.v2-icao-badge {
    font-weight: 800;
    color: var(--tropic-blue);
    border: 1px solid var(--tropic-blue);
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;      /* Ripristinato come da origine */
    width: fit-content;
    margin: 0 auto 5px auto;
    background: #f0f7ff;
}