*, *::before, *::after {
  box-sizing: border-box;
}

/* Importa il font per il titolo */
@font-face {
    font-family: 'TitoloFont';
    src: url('fonts/headlined.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* Importa il font per i punti del manifesto */
@font-face {
    font-family: 'ManifestoFont';
    src: url('fonts/Cushing-Heavy.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Reset di base */
body {
    margin: 20px; /* Ridotto per migliorare la compatibilità su mobile */
    padding: 30px;
    background-color: #e41395; /* Cambia con il colore specifico */
    color: #ffffff; /* Testo bianco su sfondo scuro */
    font-family: 'ManifestoFont', sans-serif; 
    display: block; /* Evita problemi di allineamento su mobile */
    text-align: center;
    border: 10px solid black; /* Ridotto per evitare problemi su schermi piccoli */
}

/* Contenitore principale */
.container {
    max-width: 1200px;  /* Ridotto per evitare overflow su mobile */
    padding: 30px;
    margin: 0 auto; /* Centra il contenuto */
}

/* Stile del logo */
.logo {
    width: 280px; /* Adatta dimensione */
    max-width: 80%;
    height: auto;
    margin-bottom: 60px;
}

/* Titolo */
h1 {
    font-family: 'TitoloFont', sans-serif; 
    letter-spacing: 1.8px; /* Spaziatura tra i caratteri */
    font-weight: bolder;
    font-size: 3rem; /* Ridotto leggermente per migliore adattabilità */
    margin-bottom: 20px; /* Più spazio sotto */
    line-height: 1.3;
    padding: 10px;
    margin-top: 0px;
}

/* Lista manifesto */
.manifesto {
    list-style-type: none; /* Rimuove i numeri di default */
    padding-left: 0;
    counter-reset: manifesto-counter -1; /* Parte da 0 */
}

.manifesto li {
    position: relative;
    font-size: 1.4rem;
    font-family: 'ManifestoFont', sans-serif;
    letter-spacing: 1.2px;
    line-height: 1.5;
    margin-bottom: 30px;
    padding-left: 55px; /* Distanza tra numero e testo */
    text-align: left;
    counter-increment: manifesto-counter; /* Aumenta il contatore */
}

/* Aggiunge il numero con il simbolo # */
.manifesto li::before {
    content: "#" counter(manifesto-counter); /* Aggiunge il numero con # */
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: bold;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 45px; /* Distanza fissa per il numero */
    text-align: right; /* Allinea il numero a destra */
}

/* Animazione di comparsa */
.container {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

/* Rende il logo cliccabile senza bordi extra */
.logo {
    display: block;
    margin: 0 auto 20px; /* Centra il logo */
    width: 250px; /* Adatta la dimensione */
    max-width: 80%;
    transition: transform 0.3s;
}

/* Effetto hover sul logo */
.logo:hover {
    transform: scale(1.05);
}

.language-switch {
    position: fixed;
    top: 70px;
    right: 70px;
    z-index: 1000;
}

/*
.language-button {
    display: inline-block;
    padding: 8px 14px;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}
*/

.language-button:hover {
    background-color: #e41395;  /* Colore di sfondo personalizzato */
    color: white;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 📱 Mobile: schermi più piccoli di 600px */
@media screen and (max-width: 600px) {

  .icon-button {
    padding: 6px 12px;
    height: auto;
    width: auto;
  }

  .icon-switch.left {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    top: auto !important;
  }

  .icon-mail {
    width: 18px;
    height: 18px;
  }

  .language-switch {
    position: fixed;
    bottom: 20px;
    right: 20px;
    top: auto;
  }

  .contatti-box {
    padding: 20px;
    border: 4px solid black;
    width: 90%;
  }

  .manifesto li {
    padding-left: 40px;
  }

  .manifesto li::before {
    width: 30px;
    font-size: 1.2rem;
  }

  body {
    padding: 10px;
    margin: 10px;
    border: 5px solid black;
  }

  .container {
    max-width: 90%;
    padding: 15px;
  }

  h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .logo {
    width: 150px;
    margin-bottom: 30px;
  }

  /* .language-button {
    font-size: 0.9rem;
    padding: 6px 12px;
  } */

  .ig-icon {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 28px;
    height: 28px;
  }

  .ig-icon img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
  }

  .ig-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    color: white;
    transition: transform 0.2s ease-in-out;
  }

  .ig-icon:hover svg {
    transform: scale(1.1);
  }
}

.contatti-page {
  background-color: #e41395;
  color: white;
  font-family: 'TuoFont', sans-serif;
  margin: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contatti-box {
  border: 8px solid black;
  padding: 40px 60px;
  text-align: center;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.contatti-box h1 {
  font-size: 2.2rem;
  margin-bottom: 40px;
}

.contatti-riga {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  gap: 12px;
}

.contatti-icona {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.contatti-riga a {
  color: white;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: bold;
}

.contatti-riga a:hover {
  text-decoration: underline;
}

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden; /* Evita scrollbar orizzontali */
}

/* Bottone contatti in alto a sinistra */
.icon-switch.left {
  position: fixed;
  top: 70px;
  left: 70px;
  z-index: 1000;
  text-align: left;   /* <- annulla l'ereditarietà */
  display: block;     /* <- forza blocco */
}


/* Bottone con sfondo bianco e hover rosa 
.icon-button {
  display: inline-block;
  padding: 8px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
  display: inline-block;
  text-align: left;
}
*/
.icon-button:hover {
  background-color: #e41395;
}
/*
.icon-button:hover .icon-mail {
  filter: brightness(0) invert(1); 
}
*/

/* Icona della busta */
.icon-mail {
  width: 22px;
  height: 22px;
  display: block;
}


.language-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  height: 40px;          /* forza altezza visiva uniforme */
  width: 40px;           /* opzionale, se vuoi perfettamente quadrati */
  background-color: #fff;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
}
