/* Modern Style CSS per Amici di Leos */

:root {
  --primary-color: #4a6da7;
  --secondary-color: #f8f9fa;
  --text-color: #333;
  --accent-color: #e67e22;
  --footer-color: #2c3e50;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Layout principale */
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrap {
  flex: 1;
}

/* Header e Logo */
.header {
  padding: 1rem 0;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
  z-index: 100;
}

.logo-container {
  text-align: center;
  padding: 1rem 0;
}

.logo {
  max-width: 180px;
  height: auto;
  transition: transform var(--transition-speed);
}

.logo:hover {
  transform: scale(1.05);
}

/* Menu di navigazione */
.main-nav {
  background-color: var(--primary-color);
}

.nav-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-item {
  list-style: none;
  padding: 0;
}

.nav-link {
  display: block;
  color: white;
  text-decoration: none;
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: background-color var(--transition-speed);
}

.nav-link:hover, .nav-link.active {
  background-color: rgba(255,255,255,0.2);
}

/* Menu hamburger */
.hamburger-menu {
  display: none;
  cursor: pointer;
  padding: 10px 15px;
  background-color: var(--primary-color);
  color: white;
  text-align: right;
}

.hamburger-icon {
  font-size: 1.5rem;
}

/* Hero section con immagine a tutto schermo */
.hero {
  position: relative;
  height: 70vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  margin-bottom: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Contenuto principale */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

.section-content {
  font-size: 1.1rem;
}

/* Galleria foto */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform var(--transition-speed);
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Stili per il lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border: 2px solid white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
  background-color: var(--footer-color);
  color: white;
  padding: 1rem 0;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-item {
  padding: 0.5rem 1rem;
}

.footer-link {
  color: white;
  text-decoration: none;
  transition: color var(--transition-speed);
}

.footer-link:hover {
  color: var(--accent-color);
}

.footer-info {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  /* Menu hamburger responsive */
  .hamburger-menu {
    display: block;
  }
  
  .nav-container {
    flex-direction: column;
    display: none; /* Nascosto di default */
  }
  
  .nav-container.show {
    display: flex; /* Mostrato quando attivo */
  }
  
  .nav-link {
    padding: 0.8rem 1rem;
  }
  
  .hero {
    height: 50vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  /* Lightbox responsive */
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 35px;
    height: 35px;
    background-color: rgba(0, 0, 0, 0.7);
  }
}

@media (max-width: 480px) {
  .logo {
    max-width: 150px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-content {
    font-size: 1rem;
  }
}