/* Homepage Specific CSS - Replicating test site design */

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Mobile Hero - Reduce height by 50% */
@media (max-width: 767.98px) {
  .hero {
    height: 50vh;
    min-height: 300px;
  }
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 5rem;
  }
  
  .hero-subtitle {
    font-size: 1.75rem;
  }
}

/* Section Spacing */
.section-spacing {
  padding: 0px;
}

@media (min-width: 768px) {
  .section-spacing {
    padding: 0px;
  }
}

/* Grid System */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 0px;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Featured Cards */
.card {
  background-color: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  color: #1a1a1a;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.card .p-6 {
  padding: 1.5rem;
}

.card .text-center {
  text-align: center;
}

.card .w-20 {
  width: 5rem;
}

.card .h-20 {
  height: 5rem;
}

.card .rounded-full {
  border-radius: 9999px;
}

.card .mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.card .mb-4 {
  margin-bottom: 1rem;
}

.card .mb-2 {
  margin-bottom: 0.5rem;
}

.card .mb-3 {
  margin-bottom: 0.75rem;
}

.card .object-cover {
  object-fit: contain;
  background-color: #f8f9fa;
}

.card .font-semibold {
  font-weight: 600;
}

.card .text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.card .text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.card .text-gray-600 {
  color: #6b7280;
}

.card .flex {
  display: flex;
}

.card .items-center {
  align-items: center;
}

.card .justify-center {
  justify-content: center;
}

.card .gap-1 {
  gap: 0.25rem;
}

.card .h-4 {
  height: 1rem;
}

.card .w-4 {
  width: 1rem;
}

.card .badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  /* Rimuove gli stili di default dei link */
  color: inherit;
  background: none;
  outline: none;
}

.card .btn:visited {
  color: inherit;
}

.card .btn:active {
  color: inherit;
  background: inherit;
}

.card .btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.card .btn-primary {
  background-color: #d4af37;
  color: white;
  border: none;
}

.card .btn-primary:hover {
  background-color: #b8941f;
  transform: translateY(-1px);
  color: white;
}

.card .btn-primary:visited {
  color: white;
}

.card .btn-primary:active {
  background-color: #a0851a;
  color: white;
}

.card .btn-outline {
  border: 1px solid #d1d5db;
  background-color: white;
  color: #374151;
}

.card .btn-outline:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.card .w-full {
  width: 100%;
}

/* Photo Cards */
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.photo-card .aspect-square {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f8f9fa;
  transition: transform 0.3s ease;
}

.photo-card:hover img {
  transform: scale(1.05);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

/* Featured Cards */
.featured-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.featured-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid #d4af37;
}

.featured-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.featured-card p {
  color: #6b7280;
  margin-bottom: 1rem;
}

.featured-card .btn {
  width: 100%;
  justify-content: center;
}

/* Stats Section */
.stats {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  padding: 6rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-item {
  padding: 2rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: #d4af37;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.25rem;
  color: #6b7280;
  font-weight: 500;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: white;
  padding: 4rem 0 2rem;
}

footer h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

footer h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

footer p {
  color: #9ca3af;
  margin-bottom: 1rem;
  line-height: 1.6;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer li {
  margin-bottom: 0.75rem;
}

footer a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #d4af37;
}

footer .border-t {
  border-top: 1px solid #374151;
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section-spacing {
    padding: 0px;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .grid-3 {
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
  }
  
  .featured-card {
    padding: 1.5rem;
  }
  
  .stats {
    padding: 4rem 0;
  }
  
  .stats-grid {
    gap: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
}

/* Additional Utilities */
.min-h-screen {
  min-height: 100vh;
}

.bg-background {
  background-color: black !important;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.font-bold {
  font-weight: 700;
}

.mb-12 {
  margin-bottom: 3rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: #d4af37;
  color: white;
  height: 3rem;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

.btn-primary:hover {
  background-color: #b8941f;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid #d1d5db;
  background-color: white;
  color: #374151;
  height: 2.5rem;
  padding: 0.5rem 1rem;
}

.btn-outline:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}
