@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;700&display=swap');

body {
  margin: 0;
  font-family: 'Lora', serif;
  background: linear-gradient(to bottom, #000000, #1a1a1a, #333333);
  color: #2e2e2e;
  background-repeat: repeat;
  background-size: cover;

}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}

.hero-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem 2rem;
  border-radius: 10px;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.6;
}


/* Firma Header */
.intestazione {
  text-align: center;
  padding: 2rem 0 1rem;
}

.firma {
  font-family: 'Dancing Script', cursive;
  font-size: 3rem;
  color: #111;
  margin: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600&display=swap');

.signature-wrapper {
  text-align: center;
  margin-bottom: 1rem;
}

.signature-line {
  width: 500px;
  height: 3px;
  margin: 0 auto;
  border: none;
  background-color: white; 
  opacity: 1;
}

@keyframes fadeInLine {
  from { width: 0; opacity: 0; }
  to { width: 200px; opacity: 1; }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  position: relative;
  background-color: white;
}

.back-arrow {
  font-size: 2rem;
  color: #000;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.back-arrow:hover {
  transform: scale(1.1);
}

.logo-img {
  height: 25px;
  width: auto;
}


.timeline-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #ccc;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    margin-top: 60px;
}

.timeline-item::before {
    content: none;
}

.timeline-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  background-color: white;
  padding: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.left::before {
    right: -8px;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-item.right::before {
    left: -8px;
}

.timeline-date {
    font-weight: bold;
    color: #555;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
}
.timeline-icon-left {
  position: absolute;
  top: 20%;
  left: 97.5%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  padding: 5px;
}
.timeline-icon-right {
  position: absolute;
  top: 20%;
  right: 93%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  padding: 5px;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .footer-icon{
  color: wheat;
  }
  
  @media (min-width: 768px) {
    footer .container {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      text-align: left;
    }
  }
  
  .footer-logo {
    width: 80px;
    height: auto;
  }
  
  .footer-contact {
    text-align: center;
  }
  
  .footer-contact p {
    margin: 0.25rem 0;
  }
  
  .footer-icon {
    margin-right: 0.5rem;
    vertical-align: middle;
  }
  .timeline-item.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}