/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300&display=swap');

body {
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
  font-family: 'Raleway', sans-serif;
  line-height: 1.6;
}

header {
  background-color: white;
  padding: 2rem;
  text-align: center;
  border-bottom: 20px solid #ddd;
}

header h1 {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-size: 3.5rem;
}

/* Presentazione Profilo */
.profilo {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.profilo img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.profilo p {
  flex: 1;
  font-size: 1.3rem;
  line-height: 1.6;
}

/* Navigazione */
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

nav a {
  text-decoration: none;
  color: #666;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #b4a7d6;
}

/* Contenuti principali */
section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: auto;
}

h2 a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

h2 a:hover {
  text-decoration: underline;
  color: #b4a7d6;
}

/* Galleria a griglia */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.grid img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  cursor: pointer;
}

.grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
/* instagram */
i.fab.fa-instagram {
  color: #e1306c; /* colore tipico Instagram */
  margin-right: 0.5rem;
  vertical-align: middle;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

a:hover i.fab.fa-instagram {
  color: #c13584;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #999;
  border-top: 1px solid #ddd;
}

/* ------------------------------ */
/* Parte cellulare */
/* ------------------------------ */

@media (max-width: 600px) {
  h1, h2, h3, h4, h5, h6 {
    text-align: center;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .profilo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profilo img {
    width: 200px;
    height: 200px;
  }

  .profilo p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  section {
    padding: 2rem 1rem;
  }
}
