/* === Stile globale per tutto il sito === */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #89f7fe, #66a6ff);
  color: #222;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- Navbar --- */
nav {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  padding: 10px 20px;
  border-radius: 30px;
  z-index: 100;
}

nav a {
  color: #222;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #764ba2;
}

/* --- Titoli e testo --- */
h1 {
  font-size: 3rem;
  background: linear-gradient(90deg, #ff8a00, #e52e71);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

p.subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
}

/* --- Pulsanti --- */
.btn, .email, .social a {
  display: inline-block;
  padding: 1rem 2rem;
  color: white;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, background 0.3s;
}

.btn:hover, .email:hover, .social a:hover {
  transform: translateY(-3px);
  background: linear-gradient(90deg, #764ba2, #667eea);
}

/* --- Sezioni e contenitori --- */
section {
  max-width: 800px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  margin-top: 3rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

footer {
  margin-top: 3rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* --- Galleria immagini --- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

.social {
  margin-top: 1.5rem;
}

.social a {
  margin: 0.5rem;
}

@media (max-width: 600px) {
  h1 { font-size: 2.2rem; }
  section { padding: 1.5rem; }
}
