/** * Skin Advanced - Riccardo Malavolta 
 * File: homepage.css
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: normal !important;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

@font-face {
    font-family: 'AOT_Main';
    src: url('../../../fonts/Ditty.ttf') format('truetype');
    unicode-range: U+0041-005A, U+0061-007A, U+0020, U+00C0-00FF;
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AOT_Main2';
    src: url('../../../fonts/CloisterBlack.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AOT_text';
    src: url('../../../fonts/Texturina.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: 'AOT_Main', 'AOT_Main2', 'AOT_text';
    background: #000 !important;
    /* Solo nero di base */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

#main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

#site_width {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-home {
    display: block;
    margin: 20px auto;
    width: auto;
    max-width: 45vw;
    height: auto;
    max-height: 250px;
}

/* --- ETICHETTE FISSE --- */
/* Le etichette devono stare SOPRA le slide */
.sidebar_tabs_fixed {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 9999 !important;
    /* Il livello più alto assoluto */
    pointer-events: none;
}

.side_tab_targhetta {
    position: absolute;
    left: 0;
    width: 160px;
    pointer-events: all;
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    border-left: none;
    padding: 15px 5px;
    cursor: pointer;
    font-family: 'AOT_Main';
    font-size: 16px;
    border-radius: 0 10px 10px 0;
    text-align: center;
    /* VELOCIZZATO: 0.3s per il movimento, 0.15s per l'hover */
    transition: left 0.3s linear, transform 0.15s linear, background 0.15s linear;
    transform: scale(1);
    z-index: 10000 !important;
}

.side_tab_targhetta:hover {
    background: #1a1a1a;
    transform: scale(1.05);
    transform-origin: left center;
}

.active_tab {
    left: 797px !important;
    background: #000 !important;
    border-left: none !important;
    z-index: 10001 !important;
    /* Sincronia totale 0.3s linear */
    transition: left 0.3s linear !important;
}

.active_tab:hover {
    transform: none !important;
}

.amb_pos {
    top: 15%;
}

.reg_pos {
    top: 25%;
}

.raz_pos {
    top: 35%;
}

.isc_pos {
    top: 45%;
}

/* --- PANNELLI SLIDE --- */
/* Le slide devono stare SOPRA l'overlay */
.slide_wrapper_full {
    position: fixed;
    top: 0;
    left: -805px;
    width: 800px;
    height: 100%;
    z-index: 9000 !important;
    /* Sotto le etichette (9999) ma sopra l'overlay */
    transition: left 0.3s linear;
}

.slide_wrapper_full.open {
    left: 0;
}

.slide_pane {
    position: relative;
    z-index: 9001 !important;
    /* Forza il contenuto sopra tutto */
    width: 100%;
    height: 100%;
    background-color: #000000 !important;
    /* Nero solido totale per evitare trasparenze */
    color: #ffffff !important;
    /* Forza il testo bianco */
    border-right: 3px solid #fff;
    padding: 50px 50px 50px 180px;
    text-align: left;
    overflow-y: auto;
}

/* 1. L'overlay scuro */
/* L'overlay deve stare sopra al main ma sotto le slide */
#page_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    visibility: hidden;
    opacity: 0;
    transition: 0.3s linear;
    z-index: 8000 !important;
    /* Sotto slide ed etichette */
    pointer-events: all;
}

#page_overlay.visible {
    visibility: visible;
    opacity: 1;
}

/* --- STATISTICHE --- */
.fixed_bottom_left {
    position: fixed;
    bottom: 80px;
    left: 15px;
    z-index: 2000;
    width: 350px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #fff;
    border-radius: 10px;
    transition: all 0.15s linear;
    transform: scale(1);
}

.fixed_bottom_left:hover {
    background-color: rgba(20, 20, 20, 0.95);
    transform: scale(1.02);
}

.statistics {
    width: 100%;
    border-collapse: collapse;
    font-family: 'AOT_Main';
    font-size: 13px;
}

.statistics tr {
    transition: background 0.15s linear;
}

.statistics tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.03);
}

.statistics tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.08);
}

.statistics td.label {
    padding: 5px 10px;
    color: #bbb;
    text-align: left;
    white-space: nowrap;
    width: 1%;
}

.statistics td:last-child {
    padding: 5px 10px;
    color: #fff;
    text-align: right;
    font-family: 'AOT_text', serif;
    font-weight: bold !important;
}

.stats_padding {
    padding: 5px !important;
}

.btn_stats_toggle {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    padding: 12px 15px;
    font-family: 'AOT_Main' !important;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#stats_content_accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s linear;
}

#stats_content_accordion.open {
    max-height: 600px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- BOX CENTRALI --- */
.center_flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.online_users_box_unified,
.login_sidebar_box {
    width: 350px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.online_count {
    padding: 12px 15px;
    text-align: center;
    font-size: 16px;
}

.login_sidebar_box {
    padding: 15px;
    text-align: left;
}

.form_label_sidebar {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
    font-family: 'AOT_Main';
}

.input_block_sidebar {
    margin-bottom: 12px;
}

.main_input_style {
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #fff;
    color: #fff;
    border-radius: 4px;
}

.main_btn_style {
    width: 100%;
    padding: 10px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 5px;
    font-family: 'AOT_Main';
    font-size: 20px;
    cursor: pointer;
    transition: all 0.15s linear;
    transform: scale(1);
}

.main_btn_style:hover {
    background: #e0e0e0;
    transform: scale(1.03);
}

/* --- RECUPERO PASSWORD --- */
.recovery_sidebar_container {
    text-align: center;
    margin-top: 10px;
}

.btn_recovery_sidebar {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #fff;
    color: #fff;
    padding: 6px 12px;
    font-family: 'AOT_Main';
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s linear;
    transform: scale(1);
}

.btn_recovery_sidebar:hover {
    background: rgba(40, 40, 40, 0.8);
    transform: scale(1.05);
}

.btn_recovery_sidebar_small {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #fff;
    color: #fff;
    font-family: 'AOT_Main';
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    height: 28px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s linear;
    transform: scale(1);
}

.btn_recovery_sidebar_small:hover {
    transform: scale(1.1);
}

.recovery_input {
    width: 100%;
    height: 28px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #fff;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
}

#recovery_accordion_box {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s linear;
}

#recovery_accordion_box.open {
    max-height: 100px;
}

.recovery_separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 10px 0;
}

.recovery_row_sidebar_inline {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-bottom: 5px;
}

/* --- ISCRIZIONE --- */
#slide_isc_wrapper .slide_pane input[type="submit"],
#slide_isc_wrapper .slide_pane button {
    width: 100%;
    padding: 10px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 5px;
    font-family: 'AOT_Main';
    font-size: 20px;
    cursor: pointer;
    margin-top: 15px;
    display: block;
    text-align: center;
    transition: all 0.15s linear;
    transform: scale(1);
}

#slide_isc_wrapper .slide_pane input[type="submit"]:hover,
#slide_isc_wrapper .slide_pane button:hover {
    background: #e0e0e0;
    transform: scale(1.03);
}

/* 2. Il contenitore del video deve essere un guscio trasparente */
.aot-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("img/bg.gif") no-repeat center center;
    background-size: cover;
    z-index: 0;
    overflow: hidden;
}

#bg-video-files {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 1;
    mix-blend-mode: screen;
    opacity: 0.5;
}

#main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
    background: transparent !important;
}

#footer {
    width: 100%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.9);
    border-top: 2px solid #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1001;
    text-align: center;
}