* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

@font-face {
font-family: 'Futuristic'; 
src: url('./futuristic-font/FuturisticRegular-w1Zjz.ttf') format('truetype'); 
font-weight: normal;
font-style: normal;
}


@font-face {
font-family: 'Dystopian'; 
src: url('./futuristic-font/Sddystopiandemo-GO7xa.woff2') format('truetype'); 
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'njg'; 
src: url('./futuristic-font/Electroharmonix.woff2') format('truetype'); 
font-weight: normal;
font-style: normal;
}


.flag {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

body {
background: #000;
color: #00ff00;
font-family: 'Futuristic', monospace;
min-height: 100vh;
padding: 20px;
}

.container {
max-width: 1000px;
margin: 30px auto;
width: 100%;
}

/* Classe base per tutti i riquadri */
.elem {
border: 2px solid #00ff00;
border-radius: 8px;
padding: 15px 25px;
background: rgba(0, 255, 0, 0.1);
}

/* Header Section */
.header {
display: flex;
align-items: center;
gap: 40px;
margin: 40px 0;
}

.profile-pic {
width: 180px;
height: 180px;
border: 2px solid #00ff00;
border-radius: 25px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
transition: all 0.3s ease;
padding: 0px 0px;
}

.profile-pic img {
width: 90%;
height: 90%;
object-fit: cover;
border-radius: 50%;
}

/* Contenitore invisibile per nome e contatti */
.right-section {
flex: 1;
display: flex;
flex-direction: column;
gap: 20px;
min-width: 0; /* Permette il flex shrinking */
}

.name-box {
text-align: center;
}

.name-box h1 {
font-size: 32px;
font-weight: normal;
letter-spacing: 2px;
font-size: 50px;
text-transform: uppercase;
font-weight: bold;
}

.contact-info {
display: flex;
gap: 15px;
justify-content: center;
flex-wrap: wrap;
}

.contact-box {
border: 1px solid #00ff00;
border-radius: 6px;
padding: 8px 12px;
background: rgba(0, 255, 0, 0.05);
color: #00ff00;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
}

.contact-box:hover {
background: rgba(0, 255, 0, 0.3);
box-shadow: 0 0 10px #00ff00;
transform: scale(1.1);
}

.contact-box img {
width: 20px;
height: 20px;}

/* Text Section */
.text-section {
    margin: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.text-section h2 {
    font-size: 30px;
    text-transform: uppercase;
    margin: 0;
    font-family: 'Dystopian', monospace;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.flag-icon {
    width: 32px;
    height: 24px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 4px;
}

.flag-icon:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.flag-icon.active {
    opacity: 1;
    border-color: #00ff00;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.text-content {
    font-size: 16px;
    line-height: 1.6;
    font-family: monospace;
}

/* Action Buttons */
.actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
  width: 100%;
}

.action-btn {
  color: #00ff00;
  font-family: 'Futuristic', monospace;
  font-size: 30px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
}

.action-btn:hover {
  background: rgba(0, 255, 0, 0.3);
  box-shadow: 0 0 10px #00ff00;
  transform: scale(1.05);
}

/* Container per le immagini */
.images-grid {
  display: grid;
  gap: 10px;
  justify-items: center;
}

/* Link delle immagini */
.image-link {
  display: block;
  transition: all 0.3s ease;
  text-decoration: none;
}

.image-link:hover {
  transform: scale(1.1);
}

/* Immagini nei pulsanti action */
.actions img {
  object-fit: cover;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 120px;
  height: 120px;
}

/* Layout immagini - Desktop */
@media (min-width: 769px) {
  /* Singola immagine */
  .images-grid.single {
    grid-template-columns: 1fr;
  }
  
  /* 2 immagini - disposizione verticale */
  .images-grid.two {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  
  /* 3+ immagini - griglia 2x2 */
  .images-grid.multiple {
    grid-template-columns: repeat(2, 1fr);
    max-width: 260px;
  }
}

/* Layout immagini - Tablet */
@media (max-width: 768px) and (min-width: 481px) {
  .actions img {
    width: 60px;
    height: 60px;
  }
  
  /* Singola immagine */
  .images-grid.single {
    grid-template-columns: 1fr;
  }
  
  /* 2+ immagini - riga orizzontale */
  .images-grid.two,
  .images-grid.multiple {
    grid-template-columns: repeat(auto-fit, 60px);
    max-width: 280px;
  }
}

/* Wavy line at bottom */
.wavy-line {
margin-top: 40px;
height: 30px;
background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 10px,
    #00ff00 10px,
    #00ff00 12px
);
position: relative;
overflow: hidden;
}

.wavy-line::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 20px,
    #00ff00 20px,
    #00ff00 22px
);
animation: wave 2s linear infinite;
}

@keyframes wave {
0% { transform: translateX(0); }
100% { transform: translateX(42px); }
}

/* Responsive design */
@media (max-width: 768px) {
.header {
    flex-direction: column;
    text-align: center;
    gap: 30px;
}

.profile-pic {
    width: 150px;
    height: 150px;
}

.right-section {
    width: 100%;
}

.name-box h1 {
    font-size: 28px;
}

.action-btn {
    flex: none; /* Rimuove flex: 1 su mobile */
    width: 100%;
    font-size:  20px;
}
}

@media (max-width: 480px) {
.contact-info {
    gap: 10px;
}

.contact-box {
    width: 35px;
    height: 35px;
}

.contact-box img {
    width: 18px;
    height: 18px;
}

.actions img {
    width: 60px;
    height: 60px;
}

.action-btn:first-child img {
    width: 45px;
    height: 45px;
}
}