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

body {
  background: #f5f7fa;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 20px 60px;
  background: white;
}

.navbar .logo {
  font-weight: bold;
  color: #2a7de1;
}

.navbar a {
  margin-left: 20px;
  text-decoration: none;
  color: #555;
}

/* Hero */
.hero {
  position: relative;
  padding: 120px 20px;
  text-align: center;
  color: #ffffff;

  background-image: url("img/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* font generale */
body {
  font-family: 'Poppins', sans-serif;
}

/* titolo hero */
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* testo */
.hero p {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  line-height: 1.8;
}

/* overlay scuro per migliorare leggibilità */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* contenuto sopra overlay */
.hero h1,
.hero p {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero p {
  max-width: 900px;
  line-height: 1.7;
  font-size: 18px;
  opacity: 0.95;
}

/* Apartments */
.apartments {
  padding: 60px;
  text-align: center;
}

.subtitle {
  margin-bottom: 30px;
  color: gray;
}

.cards {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.card {
  width: 280px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.card.active {
  border: 2px solid #2a7de1;
  transform: translateY(-8px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h3 {
  padding: 10px;
}

.card p {
  padding: 0 10px 20px;
  color: #666;
}

/* Featured */
.featured {
  padding: 60px;
}

.featured-card {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.featured-card img {
  width: 50%;
  height:500px;
  object-fit: cover;
}

.featured-content {
  padding: 30px;
}

.amenities {
  margin: 20px 0;
  list-style: none;
}

button {
  padding: 12px 20px;
  background: #2a7de1;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; } body { background: #f5f7fa; color: #333; } /* Navbar */ .navbar { display: flex; justify-content: space-between; padding: 20px 60px; background: white; border-bottom: 1px solid #eee; } .navbar .logo { font-weight: bold; font-size: 20px; color: #2a7de1; } .navbar nav a { margin-left: 20px; text-decoration: none; color: #555; } .navbar nav a:hover { color: #2a7de1; }  /* Apartments */ .apartments { padding: 60px 40px; text-align: center; } .subtitle { color: gray; margin-bottom: 40px; } .cards { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; } .card { background: white; border-radius: 12px; overflow: hidden; width: 300px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: 0.3s; } .card:hover { transform: translateY(-5px); } .card img { width: 100%; height: 200px; object-fit: cover; } .card h3 { padding: 15px; } .card p { padding: 0 15px 20px; color: #666; } /* Featured */ .featured { padding: 60px; } .featured-card { display: flex; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); flex-wrap: wrap; } .featured-card img { width: 50%; object-fit: cover; } .featured-content { padding: 30px; flex: 1; } .featured-content h2 { margin-bottom: 10px; } .amenities { margin: 20px 0; list-style: none; } .amenities li { margin-bottom: 5px; color: #555; } button { padding: 12px 20px; border: none; background: #2a7de1; color: white; border-radius: 6px; cursor: pointer; } button:hover { background: #1f5fb8; } 

/* Footer */ 
.footer {
  background: #0f1c2e;
  color: white;
  padding: 40px 60px 20px;
  text-align: center;
}


.footer h3 {
  margin-bottom: 10px;
  font-size: 30px;
} 

.footer ul {
  list-style: none;
} 

.footer ul li {
  margin-bottom: 5px;
  color: #bbb;
}

.footer p {
  color: #bbb;
  font-size: 20px;
} 

.servizi { background: #f5f5f5; padding: 80px 20px; text-align: center; } .container { max-width: 1100px; margin: 0 auto; } /* Titolo */ .title { font-size: 48px; color: #2f4f7f; font-family: 'Georgia', serif; margin-bottom: 10px; } /* Sottotitolo */ .subtitle { font-size: 36px; color: #e2b65c; font-family: 'Brush Script MT', cursive; margin-bottom: 25px; } /* Descrizione */ .description { max-width: 800px; margin: 0 auto 50px; color: #444; font-size: 18px; line-height: 1.6; } /* Griglia servizi */ .services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 40px; justify-items: center; } /* Singolo servizio */ .service-item { text-align: center; max-width: 140px; } /* Icona tonda */ .icon { width: 90px; height: 90px; background: #0d2a5c; color: #e2b65c; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; margin: 0 auto 15px; } /* Testo */ .service-item p { font-size: 16px; color: #333; } /* Ultimo elemento centrato */ .center { grid-column: span 6; } /* Responsive */ @media (max-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); } .center { grid-column: span 3; } } @media (max-width: 500px) { .services-grid { grid-template-columns: repeat(2, 1fr); } .center { grid-column: span 2; } }

html {
  scroll-behavior: smooth;
}

.card img {
  width: 100%;
  height: 220px;      /* stessa altezza per tutte */
  object-fit: cover;  /* taglia senza deformare */
  display: block;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: white; /* importante: evita trasparenza */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

section {
  scroll-margin-top: 80px;
}

/* ===== PRENOTAZIONE ===== */
.prenota {
  padding: 80px 20px;
  background: linear-gradient(to bottom, #f5f7fa, #eef2f7);
  display: flex;
  justify-content: center;
}

.booking-container {
  max-width: 900px;
  width: 100%;
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
}

.booking-container h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #1e3a5f;
}

.booking-container .subtitle {
  color: #777;
  margin-bottom: 30px;
}

/* FORM */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row input {
  flex: 1;
}

/* INPUT */
.booking-form input,
.booking-form textarea {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: all 0.3s ease;
}

.booking-form input:focus,
.booking-form textarea:focus {
  border-color: #1e3a5f;
  outline: none;
  box-shadow: 0 0 0 2px rgba(30,58,95,0.1);
}

textarea {
  min-height: 120px;
  resize: none;
}

/* DATE */
.date-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.date-group label {
  font-size: 12px;
  margin-bottom: 5px;
  color: #555;
}

/* BUTTON */
.booking-form button {
  background: #1e3a5f;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.booking-form button:hover {
  background: #16324d;
  transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
}

.attrazioni {
  
  display: grid;
  gap: 25px;
  max-width: 1000px;
  margin: auto;
}

.box {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.box h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #2a7de1;
}

.box ul {
  list-style: none;
  padding: 0;
}

.box ul li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}

.box ul li:last-child {
  border-bottom: none;
}

.price {
  text-align: right;
  font-size: 40px;
  font-weight: bold;
}

.frase {
  text-align: right;
}