/* assets/css/partite-2.css */

/* =========================================
   1. FONTS & VARIABILI
   ========================================= */
@font-face {
  font-family: 'DrukWide';
  src: url('../doc/DrukWideBold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'HelveticaBold';
  src: url('../doc/HelveticaBold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

:root {
  --rosa-neon: #ff19ff;
  --viola: #5e00ff;
  --bianco: #ffffff;
  --nero-transp: rgba(0, 0, 0, 0.6);
  --verde: #00ff66;
  --rosso: #ff3333;
}

/* =========================================
   2. GLOBAL BODY & RESET
   ========================================= */
body {
  color: var(--bianco);
  font-family: 'HelveticaBold', sans-serif;
  margin: 0;
  padding: 0;
  
  /* FIX SFONDO: Rimuoviamo l'immagine da qui per evitare stretch su mobile */
  background: transparent !important;
  
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 0;
}

/* SFONDO FISSO REALE (Funziona anche su iOS) */
body::before {
  content: "";
  position: fixed; /* Ancorato alla finestra */
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  
  /* Immagine di Sfondo */
  background-image: url('../imm/sfondouml25.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  
  /* Z-index negativo per stare dietro */
  z-index: -1;
  
  /* NESSUN COLORE/OVERLAY (Solo immagine pulita) */
  
  /* Ottimizzazione Mobile */
  transform: translateZ(0);
  will-change: transform;
}

html {
    height: 100%;
    overflow-x: hidden;
}

h1, h2 {
  font-family: 'DrukWide', sans-serif;
  color: var(--rosa-neon);
  text-transform: uppercase;
  text-align: center;
  margin: 30px 0 20px;
  text-shadow: 3px 3px 0px rgba(0,0,0,0.8);
  letter-spacing: 1px;
}

/* =========================================
   3. TOGGLE SWITCH (Stile Glassmorphism)
   ========================================= */
.toggle-switch {
    display: flex;
    justify-content: center;
    background: var(--nero-transp);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 6px;
    width: fit-content;
    margin: 30px auto;
    backdrop-filter: blur(10px);
}

.toggle-switch a {
    text-decoration: none;
    color: var(--bianco);
    padding: 10px 30px;
    border-radius: 40px;
    font-family: 'HelveticaBold', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.toggle-switch a.active {
    background-color: var(--rosa-neon);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 25, 255, 0.4);
    opacity: 1;
    transform: scale(1.05);
}

.toggle-switch a:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* Utility Classes */
.druk-font { font-family: 'DrukWide', sans-serif; letter-spacing: 0; }
.helvetica-font { font-family: 'HelveticaBold', sans-serif; letter-spacing: 0; }

.container {
    flex: 1; 
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* =========================================
   RIDUZIONE TESTI MOBILE (-15%)
   ========================================= */
@media (max-width: 768px) {
    html {
        font-size: 85% !important; /* Riduce tutto proporzionalmente */
    }
}
@media (max-width: 768px) {
    /* Riduce le dimensioni del contenitore esterno */
    .toggle-switch {
        gap: 5px !important; /* Dimezzato lo spazio tra i tasti */
        padding: 5px !important; /* Dimezzato il padding interno */
        margin: 15px auto !important; /* Ridotto il margine verticale */
        border-radius: 8px !important; /* Arrotondamento più proporzionato */
    }

    /* Riduce le dimensioni dei singoli tasti cliccabili */
    .toggle-switch a {
        padding: 5px 10px !important; /* Dimezzato il padding dei pulsanti */
        font-size: 0.5rem !important; /* Ridotto il font per adattarsi */
        border-radius: 5px !important;
    }
}