/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2d2d2d;
  background-color: #faf8f5;
  line-height: 1.6;
  padding-top: 70px; /* spazio per la navbar fissa */
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo a {
  font-size: 1.6rem;
  font-weight: 700;
  color: #8b6f47;
  letter-spacing: 2px;
}

.navbar .logo span {
  font-weight: 300;
  color: #b8956a;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: #4a4a4a;
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #8b6f47;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #8b6f47;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: #8b6f47;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #4a4a4a;
  border-radius: 3px;
  transition: all 0.3s;
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  background: url('../images/17.png') center center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.hero h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 3px;
  position: relative;
  z-index: 1;
}

.hero h1 span {
  color: #8b6f47;
}

.hero p {
  font-size: 1.2rem;
  color: #f0e8de;
  max-width: 600px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero .btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background-color: #8b6f47;
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s, transform 0.2s;
  position: relative;
  z-index: 1;
}

.hero .btn:hover {
  background-color: #6d5537;
  transform: translateY(-2px);
}

/* ========== SECTION GENERICA ========== */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  color: #5a3e2b;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: #8a7a6a;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ========== HOME EXTRA (descrizione) ========== */
.home-description {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.home-description .text h2 {
  font-size: 1.8rem;
  color: #5a3e2b;
  margin-bottom: 1rem;
}

.home-description .text p {
  color: #6b5a4a;
  margin-bottom: 1rem;
}

.home-description .image-placeholder {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, #ddd5cc, #c4b8aa);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a7a6a;
  font-size: 1.1rem;
}

/* ========== GALLERY ========== */
.gallery-page {
  background-color: #f2ece6;
  padding: 4rem 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #ddd5cc, #c4b8aa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a7a6a;
  font-size: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox .close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox .close-lightbox:hover {
  color: #b8956a;
}

/* ========== RESERVATIONS ========== */
.reservations-page {
  background-color: #f2ece6;
  padding: 4rem 2rem;
}

.reservation-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.reservation-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.reservation-card h3 {
  font-size: 1.4rem;
  color: #5a3e2b;
  margin-bottom: 1rem;
}

.reservation-card p {
  color: #6b5a4a;
  margin-bottom: 1.5rem;
}

.map-container {
  width: 100%;
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.btn-airbnb {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background-color: #ff5a5f;
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-airbnb:hover {
  background-color: #e0484d;
  transform: translateY(-2px);
}

.btn-airbnb img {
  width: 28px;
  height: 28px;
  border-radius: 40px;
  object-fit: cover;
  background-color: #ff5a5f;
  border: 2px solid #fff;
}

/* Reviews */
.reviews-section {
  margin-top: 3rem;
}

.reviews-section h3 {
  text-align: center;
  font-size: 1.6rem;
  color: #5a3e2b;
  margin-bottom: 2rem;
}

.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
}

.review-card .review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.review-card .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ddd5cc, #c4b8aa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a7a6a;
  font-weight: 700;
  font-size: 1.2rem;
}

.review-card .review-name {
  font-weight: 600;
  color: #5a3e2b;
}

.review-card .review-date {
  font-size: 0.85rem;
  color: #8a7a6a;
}

.review-card .review-stars {
  color: #f4b942;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.review-card .review-text {
  color: #6b5a4a;
  font-style: italic;
}

/* ========== FOOTER ========== */
.footer {
  text-align: center;
  padding: 2rem;
  background-color: #fff;
  border-top: 1px solid #e8ddd0;
  color: #8a7a6a;
  font-size: 1rem;
  margin-top: 4rem;
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ========== RESPONSIVE ========== */
@media (max-width:768px){

  .navbar{
      height:70px;
      padding:0 1rem;
  }

  .hamburger{
      display:flex;
      z-index:1101;
  }

  .nav-links{
      position:fixed;
      top:70px;
      left:0;
      width:100%;
      background:#fff;

      display:flex;
      flex-direction:column;
      align-items:center;

      padding:1.5rem 0;
      gap:1.2rem;

      box-shadow:0 6px 20px rgba(0,0,0,.08);

      transform:translateY(-150%);
      transition:.35s;
      z-index:1100;
  }

  .nav-links.open{
      transform:translateY(0);
  }

  .nav-links li{
      width:100%;
      text-align:center;
  }

  .nav-links a{
      display:block;
      padding:.8rem 0;
      width:100%;
  }

  .hero h1{
      font-size:2.4rem;
  }

  .home-description{
      grid-template-columns:1fr;
  }

  .reservation-layout{
      grid-template-columns:1fr;
  }
}

/* ========== SMARTPHONE (≤480px) ========== */
@media (max-width: 480px) {
  .navbar {
    padding: 0 1rem;
  }

  .navbar .logo a {
    font-size: 1.3rem;
  }

  .section {
    padding: 2rem 1rem;
  }

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

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  /* Hero */
  .hero {
    padding: 2rem 1.2rem;
    min-height: calc(80vh - 70px);
  }

  .hero h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero .btn {
    padding: 0.7rem 1.8rem;
    font-size: 0.9rem;
  }

  /* Home description */
  .home-description {
    gap: 1.5rem;
  }

  .home-description .text h2 {
    font-size: 1.4rem;
  }

  /* Gallery */
  .gallery-page {
    padding: 2rem 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
  }

  /* Reservations */
  .reservations-page {
    padding: 2rem 1rem;
  }

  .reservation-layout {
    gap: 1.2rem;
  }

  .reservation-card {
    padding: 1.2rem;
  }

  .reservation-card h3 {
    font-size: 1.1rem;
  }

  .reservation-card p {
    font-size: 0.9rem;
  }

  .map-container {
    height: 180px;
  }

  .btn-airbnb {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

  .btn-airbnb img {
    width: 22px;
    height: 22px;
  }

  /* Reviews */
  .reviews-section h3 {
    font-size: 1.3rem;
  }

  .review-card {
    padding: 1rem;
  }

  .review-card .avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .review-card .review-text {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    padding: 1.5rem;
    font-size: 0.9rem;
    margin-top: 2rem;
  }
}
