:root {
  --primary-color: #0abab5; /* Tiffany blue */
  --secondary-color: #ff9e7d; /* Coral/Peach */
  --accent-color: #ffcc29; /* Bright Yellow */
  --dark-color: #2d3047; /* Deep Navy Blue */
  --light-color: #f7f9fb; /* Light Gray-Blue */
  --shadow: 0 4px 12px rgba(10, 186, 181, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  /* font-family: 'Playfair Display', serif; */
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

header {
  background: #fff;
  color: white;
  padding: 1.5rem 0;
  text-align: center;
  box-shadow: var(--shadow);
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.logo {
  /* font-family: 'Playfair Display', serif; */
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 5px;
}

.logo i {
  font-size: 2rem;
}

.logo img {
  width: 90%;
  max-width: 600px;
}

.tagline {
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 300;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  background-image: url('/api/placeholder/1200/600');
  background-size: cover;
  background-position: center;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
  z-index: 1;
  color: white;
  text-align: center;
  max-width: 800px;
  padding: 2.5rem;
  background-color: rgba(45, 48, 71, 0.75);
  border-radius: 12px;
}

.hero-content h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 1.8rem;
  font-weight: 300;
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--dark-color);
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 158, 125, 0.3);
}

section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
  font-size: 2.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 120px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 0.8rem auto;
}

.intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  font-weight: 300;
}

.apartments {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
}

.apartment-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 500px;
  max-width: 580px;
}

.apartment-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(10, 186, 181, 0.25);
}

.apartment-image {
  height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.apartment-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

#mare-img {
  background-image: url('/api/placeholder/580/320');
}

#montagna-img {
  background-image: url('/api/placeholder/580/320');
}

.apartment-content {
  padding: 2rem;
}

.apartment-title {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
}

.apartment-title i {
  margin-right: 0.8rem;
  color: var(--secondary-color);
}

.apartment-description {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-weight: 300;
}

.features {
  background-color: var(--light-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.feature-list li {
  padding-left: 1.8rem;
  position: relative;
  font-weight: 500;
}

.feature-list li::before {
  content: '✓';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
}

.room-details h4 {
  color: var(--primary-color);
  margin: 1.5rem 0 0.8rem;
  border-bottom: 1px solid #eceff4;
  padding-bottom: 0.5rem;
  font-size: 1.3rem;
}

.room-details p {
  font-weight: 300;
  line-height: 1.7;
}

.amenities {
  background-color: white;
  padding: 4rem 0;
}

.amenities-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.amenity {
  flex: 1 1 200px;
  max-width: 280px;
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background-color: var(--light-color);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.amenity:hover {
  transform: translateY(-5px);
}

.amenity i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
}

.amenity h3 {
  margin-bottom: 0.8rem;
  color: var(--dark-color);
}

.amenity p {
  font-weight: 300;
}

.location {
  background-color: var(--light-color);
}

.map-container {
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 2rem;
  background-image: url('/api/placeholder/1200/450');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.contact {
  background-color: white;
}

.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-container p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.contact-info {
  margin: 3rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.contact-item {
  flex: 1 1 300px;
  max-width: 320px;
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  background-color: var(--light-color);
  box-shadow: var(--shadow);
}

.contact-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-item h3 {
  margin-bottom: 0.8rem;
  color: var(--dark-color);
}

.contact-item p {
  font-weight: 400;
  font-size: 1.1rem;
  margin-bottom: 0;
}

footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-content p {
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.social-links {
  margin: 1.5rem 0;
}

.social-links a {
  display: inline-block;
  color: white;
  font-size: 1.5rem;
  margin: 0 0.8rem;
  background-color: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.7;
  font-weight: 300;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2.2rem;
  }

  .hero {
    height: 60vh;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .apartment-card {
    flex: 1 1 100%;
  }

  .apartment-image {
    height: 250px;
  }

  .section-title {
    font-size: 2rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

.slideshow {
  position: relative;
  width: 100%;
  height: 700px;
  margin: auto;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fadeAnimation 9s infinite;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide:nth-child(1) {
  animation-delay: 0s;
}
.slide:nth-child(2) {
  animation-delay: 3s;
}
.slide:nth-child(3) {
  animation-delay: 6s;
}
.slide:nth-child(4) {
  animation-delay: 12s;
}
.slide:nth-child(5) {
  animation-delay: 18s;
}
.slide:nth-child(6) {
  animation-delay: 24s;
}

@keyframes fadeAnimation {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  30%  { opacity: 1; }
  40%  { opacity: 0; }
  100% { opacity: 0; }
}
