/* Importa font Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Roboto+Mono:wght@300&display=swap');

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

/* Corpo */
body {
  background-color: #F5F5DC; /* Beige */
  color: #1C2526; /* Blu navy */
  font-family: 'Lora', serif;
  line-height: 1.7;
  padding: 20px;
  overflow-x: hidden;
}

/* Header */
header {
  background-color: #556B2F; /* Verde oliva */
  color: #F5F5DC;
  text-align: center;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
  animation: fadeIn 1s ease-in;
}

header h1 {
  font-size: 2.8em;
  font-family: 'Roboto Mono', monospace;
  letter-spacing: 2px;
}

/* Navigazione */
nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 15px;
}

nav a {
  color: #F5F5DC;
  text-decoration: none;
  font-size: 1.2em;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.2s;
}

nav a:hover {
  background-color: #C4A484; /* Beige scuro */
  transform: translateY(-2px);
}

/* Sezioni */
main {
  max-width: 900px;
  margin: 0 auto;
}

section {
  margin-bottom: 50px;
}

/* Griglia galleria */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 37, 38, 0.7); /* Blu navy trasparente */
  color: #F5F5DC;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 15px;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* Footer */
footer {
  background-color: #1C2526;
  color: #F5F5DC;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  margin-top: 50px;
  font-family: 'Roboto Mono', monospace;
}

/* Animazione */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Flip card */
.flip-card {
  perspective: 1000px;
  width: 250px;
  height: 350px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-back {
  background-color: #556B2F;
  color: #F5F5DC;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transform: rotateY(180deg);
}

.flip-card-back h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}
/* Music player */
.music-player {
  display: flex;
  align-items: center;
  background-color: #1C2526;
  color: #F5F5DC;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.player-cover {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 20px;
}

.player-info {
  flex-grow: 1;
}

.player-controls {
  display: flex;
  gap: 15px;
  font-size: 1.5em;
  cursor: pointer;
  margin-top: 10px;
}

.player-controls span:hover {
  color: #C4A484;
}
/* Polaroid */
.polaroid {
  background-color: #fff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: rotate(-2deg);
  transition: transform 0.3s;
}

.polaroid:nth-child(even) {
  transform: rotate(2deg);
}

.polaroid:hover {
  transform: rotate(0) scale(1.05);
}

.polaroid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 3px;
}

.polaroid-caption {
  text-align: center;
  padding: 10px 0;
  font-family: 'Roboto Mono', monospace;
  color: #1C2526;
}
