/* assets/css/fantauml_home.css - TEMA 2026 */

:root {
    --rosa-elettrico: #ff19ff; /* Allineato al neon */
    --viola: #790cfd; /* Allineato al viola 2026 */
    --testo-bianco: #ffffff;
    --arancione-scuro: #ff3300;
    --arancione-chiaro: #ff6600;
    --giallo: #cccc00;
    --verdino: #00cc52;
    --verde: #22aa52;
    --celestino: #00ccff;
    --blu: #0066ff;
    --sfondo-scuro: rgba(18, 0, 40, 0.85); /* Vinaccia Scuro */
    --sfondo-scuro-2: rgba(18, 0, 40, 0.6); /* Vinaccia Trasparente */
    --bordo-sottile: 1px solid rgba(255, 255, 255, 0.15);
}

@font-face {
    font-family: "TitoloFont";
    src: url("/assets/doc/DrukTextWide-MediumItalic-Trial.otf") format("opentype");
    font-style: italic; /* Forza corsivo */
    font-display: swap;
}
@font-face {
    font-family: "ParagrafoFont";
    src: url("/assets/doc/HelveticaBold.ttf") format("truetype");
    font-display: swap;
}

body {
    /* BASE VINACCIA DI SICUREZZA */
    background-color: #120028 !important;
    color: var(--rosa-elettrico);
    font-family: "ParagrafoFont", Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 0;
}

body::before {
    content: "";
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100vh;
    background: linear-gradient(rgba(18, 0, 40, 0.5), rgba(18, 0, 40, 0.5)), url('/assets/imm/gradiente26.jpg') center/cover no-repeat;
    z-index: -1;
    transform: translateZ(0);
}

/* STILI PER IL CAMPO DA CALCIO */
.campo-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin: 13px 19vw;
    gap: 13px;
}

.campo-calcio {
    width: 201px;
    height: 268px;
    background-image: url('imm/campetto.png');
    background-size: cover;
    background-position: center;
    border: 2px solid white;
    border-radius: 7px;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 7px 13px rgba(18, 0, 40, 0.8);
}

.posizione {
    position: absolute;
    width: 34px;
    height: 34px;
    border: 1px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Player display styling */
.posizione.selezionato {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
}

.posizione.selezionato img {
    width: 47px;
    height: 47px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 3px;
    border: 1px solid var(--rosa-elettrico);
    box-shadow: 0 0 7px rgba(255, 25, 255, 0.3);
}

.posizione .player-label {
    text-align: center;
    margin-top: 1px;
}

.posizione .player-name {
    color: white;
    font-size: 0.4em !important; 
    font-weight: normal !important;
    white-space: normal;
    word-break: break-word;
    max-width: 54px;
    overflow: visible;
    text-shadow: 0 1px 3px #000;
}

.posizione .player-role {
    color: var(--rosa-elettrico);
    background: rgba(0, 0, 0, 0); 
    padding: 1px 1px;
    border-radius: 7px;
    font-size: 9px;
    text-shadow: 0 1px 3px #000;
}

/* Posizioni sul campo - centrate perfettamente */
.portiere { bottom: -10px; left: 50%; transform: translateX(-50%); }
.difensore { bottom: 67px; left: 50%; transform: translateX(-50%); }
.laterale-sx { bottom: 121px; left: 20px; }
.laterale-dx { bottom: 121px; right: 20px; }
.pivot { top: 7px; left: 50%; transform: translateX(-50%); }

.portiere.selezionato, .difensore.selezionato, .pivot.selezionato { transform: translateX(-50%); }

/* Panchina */
.panchina-container { margin: 0; flex-grow: 1; }
.panchina-title { color: white; margin-bottom: 10px; font-size: 12px; font-family: "TitoloFont", sans-serif; text-transform: uppercase; }
.panchina-box { display: flex; flex-direction: column; gap: 7px; }

.panchina-player {
    display: flex; align-items: center;
    background: var(--sfondo-scuro-2); /* Vinaccia Trasparente */
    padding: 5px; border-radius: 5px; width: 100%; max-width: 168px;
    border: 1px solid var(--bordo-sottile);
}
.panchina-player img { width: 27px; height: 27px; border-radius: 50%; object-fit: cover; margin-right: 7px; position: relative; border: 1px solid var(--rosa-elettrico); }
.panchina-player-info { display: flex; flex-direction: column; }
.panchina-player-name { color: white; font-size: 8px; white-space: nowrap; font-weight: bold; text-transform: uppercase; }
.panchina-player-role { color: var(--rosa-elettrico); font-size: 7px; font-weight: bold; }

/* Badge capitano */
.captain-badge {
    position: absolute; top: -3px; right: -3px;
    background: var(--rosa-elettrico); color: white; border-radius: 50%;
    width: 13px; height: 13px; display: flex; align-items: center; justify-content: center;
    font-size: 8px; font-weight: bold; z-index: 10;
    box-shadow: 0 0 3px rgba(255, 25, 255, 0.5);
}

@media (max-width: 515px) {
    .campo-container { flex-direction: column; margin: 13px auto; align-items: center; }
    .campo-calcio { width: 168px; height: 235px; }
    .posizione.selezionato img { width: 47px; height: 47px; }
    .posizione .player-label { font-size: 7px; }
    .posizione .player-role { font-size: 7px; }
    .posizione .player-name { font-size: 0.54em !important; font-weight: normal !important; max-width: 40px; }
    .laterale-sx { bottom: 101px; left: 13px; }
    .laterale-dx { bottom: 101px; right: 13px; }
    .difensore { bottom: 57px; left: 50%; transform: translateX(-50%); }
    .pivot { top: 10px; left: 50%; transform: translateX(-50%); }
    .panchina-player { max-width: 100%; }
    .panchina-box { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; gap: 7px; max-width: 100%; }
    .panchina-player:nth-child(1) { grid-column: 1; grid-row: 1; }
    .panchina-player:nth-child(2) { grid-column: 2; grid-row: 1; }
    .panchina-player:nth-child(3) { grid-column: 1; grid-row: 2; }
    .panchina-player:nth-child(4) { grid-column: 2; grid-row: 2; }
    .panchina-player:nth-child(5) { grid-column: 1 / 3; grid-row: 3; justify-self: center; max-width: 48%; }
}

.sponsor-section {
    background: var(--sfondo-scuro);
    padding: 13px !important;
    border-radius: 10px !important;
    margin: 13px 0 !important;
    text-align: center!important;
    border: 1px solid var(--bordo-sottile);
}

.sponsor-container {
    display: flex!important;
    justify-content: center!important;
    flex-wrap: wrap!important;
    gap: 20px !important;
    margin-top: 13px !important;
}

.sponsor-box { display: flex !important; flex-direction: column !important; align-items: center !important; max-width: 134px !important; }

.sponsor-logo {
    width: 101px !important; height: 101px !important; object-fit: contain!important;
    border-radius: 10px !important; border: 1px solid var(--rosa-elettrico);
    background: white !important; padding: 7px !important; margin-bottom: 7px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease!important;
}

.sponsor-logo:hover { transform: scale(1.05) !important; box-shadow: 0 0 10px rgba(255, 25, 255, 0.4) !important; }

.sponsor-name { color: white !important; font-size: 11px !important; font-weight: bold; margin-top: 3px; text-transform: uppercase; }

@media (max-width: 515px) {
    .sponsor-container { flex-direction: column; align-items: center; gap: 13px; }
    .sponsor-box { max-width: 100%; }
    .sponsor-logo { width: 80px !important; height: 80px !important; }
}

/* Stili loghi squadra */
.player-label img { position: relative; width: 17px; height: 17px; bottom: 40px; right: -13px; margin-top: 3px; border-radius: 50%; border: 1px solid var(--rosa-elettrico); }
.panchina-player img[alt*="logo"] { position: absolute; bottom: -3px; right: -3px; width: 10px; height: 10px; border: 1px solid white; border-radius: 50%; }

.sostituzioni-button { text-align: center; margin: 13px 0; }
.btn-sostituzioni {
    background: linear-gradient(45deg, var(--rosa-elettrico), var(--viola));
    color: white; border: none; padding: 10px 20px; font-size: 0.8em; font-weight: bold; border-radius: 17px;
    cursor: pointer; transition: all 0.3s ease; font-family: "TitoloFont", sans-serif;
    box-shadow: 0 3px 10px rgba(255, 25, 255, 0.3);
}

.btn-sostituzioni:hover {
    transform: translateY(-1px); box-shadow: 0 4px 13px rgba(255, 25, 255, 0.5);
    background: linear-gradient(45deg, #ff33ff, #8844ff);
}
.btn-sostituzioni:active { transform: translateY(0); }

@media (max-width: 515px) {
    .btn-sostituzioni { width: 100%; max-width: 201px; padding: 8px 13px; font-size: 0.67em; }
}