body {
  margin: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Liberation Sans', sans-serif;
  background: #fafafa;
  color: #444;
  line-height: 1.7;
}
header {
  display: flex;
  align-items: center;
  padding: 2rem 5vw 1rem 5vw;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.logo {
  height: 70px;
  margin-right: 2rem;
}
.header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.header-text h1 {
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin: 0;
}
.lang-switch {
  font-size: 1rem;
  margin-top: 0.2rem;
}
.lang-switch button {
  background: none;
  border: none;
  color: #888;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.3em;
  transition: color 0.2s;
}
.lang-switch button.active,
.lang-switch button:hover {
  color: #222;
  font-weight: bold;
}
.flag-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.3em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Hero Carousel in cima */
.hero-carousel {
  width: 100%;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.hero-carousel .carousel {
  height: 70vh;
  min-height: 500px;
}
.hero-carousel .carousel-item img {
  width: 100%;
  height: 70vh;
  min-height: 500px;
  object-fit: cover;
  background: #f8f8f8;
}

main {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 5vw;
}
.intro {
  margin-bottom: 3rem;
}
.intro blockquote {
  font-size: 1.5rem;
  font-style: italic;
  color: #666;
  margin: 0 0 1.5rem 0;
  border-left: 4px solid #bbb;
  padding-left: 1rem;
}
.bio {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
}
.bio .dates {
  font-size: 1rem;
  color: #aaa;
  margin-top: 1.5rem;
  font-style: italic;
}

/* Portfolio Section */
.portfolio-section {
  background: #fff;
  padding: 4rem 0;
  margin-top: 3rem;
}
.portfolio-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
}
.portfolio-section h2 {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 400;
  margin-bottom: 3rem;
  color: #222;
  letter-spacing: 0.05em;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s;
}
.portfolio-item:hover img {
  transform: scale(1.05);
}
.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}
.portfolio-overlay h3 {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
}

/* Modal Carousel */
.modal-content {
  background: #000;
}
.modal-header {
  background: rgba(255,255,255,0.95);
  border-bottom: none;
}
.modal-body .carousel {
  height: 100vh;
}
.modal-body .carousel-item img {
  width: 100%;
  height: 100vh;
  object-fit: contain;
  background: #000;
}

.carousel-control-prev,
.carousel-control-next {
  width: 8%;
  opacity: 0.8;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}
.carousel-indicators {
  bottom: 10px;
}
.carousel-indicators [data-bs-target] {
  background-color: rgba(255,255,255,0.7);
  border: 2px solid rgba(255,255,255,0.9);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.carousel-indicators .active {
  background-color: #fff;
}

footer {
  text-align: center;
  padding: 2rem 0 1rem 0;
  color: #333;
  font-size: 1rem;
  background: #fff;
  border-top: 1px solid #eee;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .hero-carousel .carousel {
    height: 50vh;
    min-height: 350px;
  }
  .hero-carousel .carousel-item img {
    height: 50vh;
    min-height: 350px;
  }
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 4vw 0.7rem 4vw;
  }
  .logo {
    height: 50px;
    margin-bottom: 0.7rem;
    margin-right: 0;
  }
  .header-text h1 {
    font-size: 1.8rem;
  }
  main {
    padding: 0 4vw;
  }
  .hero-carousel .carousel {
    height: 40vh;
    min-height: 280px;
  }
  .hero-carousel .carousel-item img {
    height: 40vh;
    min-height: 280px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .portfolio-item img {
    height: 200px;
  }
  .bio {
    padding: 1.2rem;
    font-size: 1.05rem;
  }
  .intro blockquote {
    font-size: 1.3rem;
  }
  .portfolio-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
} 
