/* Osnovni stilovi za Villa Lanterna */

body {
  padding-top: 40px;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  background-color: #f9f9f9;
}

body, html {
  margin: 0;
  padding: 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0;
}

.header {
  background-color: rgba(255, 255, 255, 0.9);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #ddd;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #007B8F;
}

.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero .overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 40px;
  border-radius: 10px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 20px;
}

.section {
  padding: 80px 0;
  background-color: #fff;
}

.section:nth-of-type(even) {
  background-color: #f0f0f0;
}

h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.features {
  list-style: none;
  padding: 0;
  columns: 2;
  gap: 20px;
  margin-bottom: 40px;
}

.features li::before {
  content: "✓ ";
  color: #007B8F;
  font-weight: bold;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
}

input, textarea {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  padding: 12px;
  font-size: 16px;
  background-color: #007B8F;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #005f72;
}

.footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 30px 0;
  font-size: 14px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: #333;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #007bff;
}

/* Smanjuje veličinu logotipa */
.navbar-brand img {
  height: 40px;
  object-fit: contain;
}


/* Ako postoje wrapperi oko navbar, ukloniti njihov gornji margin */
header, .navbar-container, .nav-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* Header wrapper: minimalni padding oko navigacije */
.header, .navbar {
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
}

/* Logo: smanjena visina i contain za dobar odnos */
.navbar-brand img,
.logo {
  height: 36px !important;
  max-height: 36px !important;
  object-fit: contain !important;
}

/* Navigacijski izbornik: usklađivanje vertikalnog rasporeda */
.navbar-nav,
nav ul {
  display: flex;
  align-items: center;
  gap: 12px !important;
  margin: 0;
  padding: 0;
}

/* Linkovi u izborniku: tanji padding i bolji line-height */
.navbar-nav .nav-link,
nav a {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  line-height: 1.2 !important;
  display: inline-block;
}

/* Dodaj donju liniju kao na Villakiari (opcionalno) */
.navbar {
  border-bottom: 1px solid #ddd;
}

.header {
  min-height: 56px;
}

.hero-logo {
  max-height: 120px;
  width: auto;
  margin-bottom: 1rem;
}


.gallery-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  cursor: zoom-in;
}

    .gallery-img-wrapper {
      width: 100%;
      position: relative;
      padding-top: 75%; /* 4:3 omjer (3/4 = 0.75) */
      overflow: hidden;
      border-radius: 0.5rem;
    }
    .gallery-img-wrapper img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .gallery-img-wrapper img:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
      cursor: zoom-in;
    }
    
    
    .hero-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
.hero-text.show {
  opacity: 1;
  transform: translateY(0);
}

.btn-primary {
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}
