/* media */
:root {
 /* --iphone: 450px;  /* xs */
 /* --tablet: 768px;  /* md */
 /* --laptop: 1024px; /* lg */
 /* --desktop: 1280px; /* xl */
}

/* reset */
*,*:before,*:after{ box-sizing: border-box; }h1,h2,h3,h4,h5,h6, p, ol, ul{margin: 0 0 1rem 0;padding: 0;}ol,ul{list-style-type: none;}img{height: auto;}h1{font-size: 4rem;} h2{font-size: 3rem;} h3{font-size: 2rem;} h4{font-size: 1rem;} h5{font-size: 0.8rem;} h6{font-size: 0.6rem;}a{text-decoration:none}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body /* corpo pagina */
{
    min-height: 100vh;
    background-color: black;
    background-size: cover;
    background-position: center;
    font-family: 'Montserrat', sans-serif;
   
}
video
{
    width: 100%;
    height:100vh;
    position: fixed;
    top:45px;;
    left:0;
    object-fit: cover;
    opacity: 0,;
    z-index: 0;
}
nav /*barra di navigazione */
{
    background-color: #000000;
    box-shadow: 3px 3px 5px rgba(184, 49, 49, 0);
    position: fixed;
    top:0; 
    left:0;
    z-index: 9999;
    width: 100%;

}
nav ul
{
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
   
}
nav li
{
    height: 50px;
     
}
nav a
{
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #ffffff;
}
nav a:hover
{
    background-color:#0072CE;
    border-radius: 8px;
}
.navbar 
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #000000;
    color: white;
}

.logo {
    flex: 1;
    font-size: 24px;
}

.logo img
{
    height: 50px; /* Cambia l'altezza in base alle tue esigenze */
    width: auto;  /* Mantiene le proporzioni */
}

.logo span
{
    font-size: 24px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    vertical-align: middle;
}
.logo a {
  display: inline-block;        /* Adatta la larghezza al contenuto */
  text-decoration: none;        /* Rimuove la sottolineatura */
  color: inherit;               /* Mantiene il colore della scritta */
  font-weight: bold;            /* Facoltativo: rende il testo più marcato */
}

.logo a:hover {
  background-color: rgba(0, 0, 0, 0.1);  /* Aggiunge un effetto hover piccolo e proporzionato */
  border-radius: 4px;                    /* Smussa gli angoli, se lo desideri */
}

.menu 
{
    flex: 2;
    display: flex;
    justify-content: center;
    list-style: none;
}

.menu li {
    margin: 0 15px;
}

.menu a {
    text-decoration: none;
    color: white;
}

.login-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
}

.login-box {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  color: white;
  width: 80%;
  max-width: 400px;
}

.login-box h2 {
  margin-bottom: 20px;
  font-size: 28px;
  text-align: center;
  color: #00bfff;
}

.login-box input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 10px;
  background: #1f1f1f;
  color: white;
}

.login-box button {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  border: none;
  border-radius: 10px;
  background: #00bfff;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
}

.login-box button:hover {
  background: #009acd;
}

.section{
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
  }

.title{
    color: #e47911;
    text-align: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 50%;
    position: fixed;
    top: 0;left: 0;
    margin-left: 25%;
    transform: scale(1);
    transition: all 1s cubic-bezier(.215, .61, .355, 1);
    opacity: 0;
  }

.section.in-page .title{
    transform: scale(1.2);
    opacity:1;
  }
  
/* Stile icona hamburger */
.hamburger {
  display: none;
  font-size: 30px;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
  color: white;
  padding: 10px 20px;
 
}

.panel{
  
    height: 100vh;
    width: 100%;
    background: #000000;
    position: relative;
    z-index: 2;
    color:#000;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
.container{
    width: 100%;
    max-width: 1000px;
    height: 100vh;
    padding: 20% 10% 20% 10%;
  }

  .login-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
  }
  
  .left-panel, .right-panel {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .left-panel {
    overflow: hidden;
  }
  
  .background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }
  
  .rotating-container {
    position: relative;
    width: 450px;
    height: 450px;
    z-index: 2;
    animation: spin 60s linear infinite;
  }
    
  .grid-container {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    height: 100%;
    padding: 100px;
    z-index: 3;
    justify-items: center;
    align-items: center;
  }
  
  .custom-button {
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .button-logo {
    width: 60px;
    height: 60px;
  }
  
  /* Destra */
  .right-panel {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
  }
  
  /* Rotazione lenta del contenitore */
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  /* Responsive */
  @media screen and (max-width: 1210px) {
    
    .login-container {
      flex-direction: column;
    }
  
    .left-panel, .right-panel {
      width: 100%;
      height: 50vh;
    }
  
    .rotating-container {
      width: 280px;
      height: 280px;
    }
  
    .button-logo {
      width: 40px;
      height: 40px;
    }
  
    .text-svg {
      font-size: 12px;
    }

    .login-warning {
      position: fixed;
      top: 60px; /* appena sotto la navbar */
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(255, 69, 0, 0.95); /* arancione-rosso visibile */
      color: white;
      padding: 15px 30px;
      font-size: 1rem;
      border-radius: 8px;
      z-index: 9999;
      box-shadow: 0 0 10px rgba(0,0,0,0.5);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s ease-in-out;
    }
    
    .login-warning.show {
      opacity: 1;
      pointer-events: auto;
    }
    
    .login-warning.hidden {
      opacity: 0;
    }
    
  

  /* Impostazioni per mobile */

  /*@media screen and (max-width:1280px) and (min-width:450px) { 
  
 /* --- 1️⃣ fino a 1210px: login e menu sotto il video + hamburger --- */
@media screen and (max-width:1210px) {
  /* Posiziona menu e login sotto il video */
  .menu {
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    display: none; /* Nasconde il menu desktop */
    background-color: #0072CE;
    text-align: center;
  }

  .menu.active {
    display: flex; /* Mostra solo quando clicchi hamburger */
  }

  .login-section {
    position: relative;
    margin-top: 20px;
    width: 100%;
  }

  video {
    width: 100%;
    height: auto;
  }

  /* Mostra l'hamburger */
  .hamburger {
    display: block;
    cursor: pointer;
    font-size: 26px;
    z-index: 2000;
  }

  nav ul li {
    width: 100%;
    padding: 15px 0;
  }
}

/* --- 2️⃣ fino a 450px: mantieni hamburger e nascondi menu desktop --- */
@media screen and (max-width:450px) {
  .menu {
    display: none;
  }

  .menu.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}