/* media */
:root {
  --iphone: 480px;  /* 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 {
  font-family: Arial, sans-serif;
  background-color: #000000;
  margin: 0;
  padding: 100px;

}

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 {
    flex: 1;
    display: flex;
    justify-content: end;
    list-style: none;
}

.login a
{
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #ffffff;
    padding: 15px 20px;

}
.login a:hover
{
    background-color:#0072CE;
    border-radius: 8px;
}

.language-switcher {
  display: flex;
  margin-left: 6px;
}

.language-switcher a {
  margin-left: 6px;
}

.flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.flag:hover {
  transform: scale(1.1);
}
/* Contenitore del selettore lingua */
.language-switcher {
  position: relative;
  display: inline-block;
}

.dropdown-button {
  background-color: transparent;
  border: none;
  color: white;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-button img {
  width: 20px;
  height: 20px;
}

.arrow {
  font-size: 12px;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 100px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 2px;
}

.dropdown-content a:hover {
  background-color: #e47911;  /* Cambia colore al passaggio del mouse */
}

.language-switcher:hover .dropdown-content {
  display: block;
}

.dropdown-content img {
  width: 20px;
  height: 20px;
}
/* Stile icona hamburger */
.hamburger {
  display: none;
  font-size: 30px;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
  color: white;
  padding: 10px 20px;

}
header {
  background: linear-gradient(to right, #007acc, #00c2cb);
  padding: 30px 20px;
  text-align: center;
  color: white;
}

h1 {
  font-size: 2em;
  margin: 0;
}

section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  font-size: 1.8em;
  margin-top: 60px;
  color: #007acc;
  border-bottom: 2px solid #007acc;
  padding-bottom: 8px;
}

h3 {
  margin-top: 40px;
  color: #444;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background-color: #1e1e1e;
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #00b4d8;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card h3 {
  margin: 0;
  font-size: 1.0em;
  color: #007acc;
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .card h3 {
    font-size: 1em;
  }
}










/* Impostazioni per mobile */

@media screen and (max-width:1280px) and (min-width:768px) {
    .menu {
        display: flex; /* Nasconde il menu di default */
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.8s ease-in-out visibility 0.8s ease-in-out;
        flex-direction: column;
        width: 100%;
        background-color: #0072CE;
        position: absolute; /* Il menu si sovrappone */
        top: 80%;
        left: 0;
        justify-content: center;
        text-align: center;
        z-index: 1000;
      }

    .menu.active{
        display: flex;
        visibility: visible;
        opacity: 1;
     }
    .menu li {
      list-style: none;
      padding: 20px 0;
      display:block;
      width: 100%;
      height:auto;
      align-items: center;
      text-align: center;
      justify-content: center;
      }

    .menu a {
      display: flex;
      width: 100%;
      color: white;
      padding: 15px;

      }
    .logo span{
      display: block;
      position: absolute;
      top:20px;
      left:0;
      }

  /* Mostra il pulsante hamburger */
    .hamburger {
      display: block;
      cursor:pointer;
      position: relative;
      align-items: center;
      justify-content: center;
      top: 2px;
      right:0%;
      transform: translateX(-5%);
      font-size: 24px;
      z-index: 2000;
    }
    body{
      min-height: 100vh;
      background-color: black;
      background-size: cover;
      background-position: center;
      font-family: 'Montserrat', sans-serif;
    }

    .contact-section {
      flex-direction: column;
      align-items: center;
      gap: 15px;
      border-radius: 8%;
    }

    .overlay .contact-box {
      padding: 5%;
      width: 100%; /* Occupa quasi tutta la larghezza in mobile */
      max-width: 400px; /* Impedisce che diventi troppo larga */

    }
    .note {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: #555555;
    border-top: 1px solid #1e1e1e;
    letter-spacing: 0.5px;
}
