/* === VARIABILI DI BRAND === */
:root {
  --brand-dark: #1f2a44;         /* Blu notte */
  --brand-accent: #008577;       /* Verde petrolio */
  --brand-gold: #d4af37;         /* Oro */
  --brand-bg: #f7f9fc;           /* Grigio chiaro */
  --text-main: #2a2a2a;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(31,42,68,0.09);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* === RESET DI BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--brand-bg);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
img { max-width: 100%; display: block; border-radius: var(--radius); }

/* === HEADER & NAVBAR === */
header {
  background: linear-gradient(90deg, var(--brand-dark) 60%, var(--brand-accent) 100%);
  padding: 2.4rem 1.2rem 1.5rem 1.2rem;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}
header h1 {
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 0.3rem;
}
nav ul {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  list-style: none;
  margin-top: 1.2rem;
}
nav a {
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
}
nav a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--brand-gold);
  transition: width var(--transition);
}
nav a:hover::after,
nav a.active::after { width: 100%; }
nav a.active, nav a:hover { color: var(--brand-gold); }

/* === HERO SECTION === */
.hero-home {
  position: relative;
  background: url("/f.jpg") center/cover no-repeat;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-home .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(31,42,68,0.92) 0%, rgba(0,133,119,0.55) 100%);
  z-index: 1;
  border-radius: var(--radius);
}
.hero-home .hero-text {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.05);
  padding: 2.7rem 2.4rem;
  border-radius: var(--radius);
  max-width: 640px;
  margin: auto;
  color: #fff;
  box-shadow: var(--shadow);
  text-shadow: 0 3px 16px rgba(0,0,0,0.10);
  font-size: 1.13rem;
}
.hero-home h2 {
  font-size: 2.3rem;
  margin-bottom: 1.2rem;
  color: var(--brand-gold);
  letter-spacing: 1.5px;
  font-family: 'Georgia', serif;
}
.hero-home p {
  color: #f8f8f8;
  margin-bottom: 2.1rem;
  font-size: 1.2rem;
  font-weight: 400;
}
.cta-button {
  display: inline-block;
  background: var(--brand-accent);
  color: #fff;
  padding: 0.85rem 2.2rem;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1.07rem;
  box-shadow: var(--shadow);
  transition: background var(--transition), transform var(--transition);
  border: none;
  margin-top: 0.4rem;
  letter-spacing: 0.7px;
  cursor: pointer;
}
.cta-button:hover {
  background: var(--brand-gold);
  color: var(--brand-dark);
  transform: translateY(-2px) scale(1.05);
}

/* === SEZIONE FEATURE (VANTAGGI) === */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 3rem 1.2rem 1.8rem 1.2rem;
  max-width: 1200px;
  margin: auto;
}
.feature-card {
  background: linear-gradient(120deg, #fff 65%, #f6f7fa 100%);
  border: 1.5px solid #ececec;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  width: 330px;
  text-align: center;
  padding: 1.25rem 1.1rem 1.45rem 1.1rem;
  margin-bottom: 1.2rem;
}
.feature-card h3 {
  color: var(--brand-accent);
  font-size: 1.25rem;
  margin: 1.1rem 0 0.65rem 0;
  letter-spacing: 0.3px;
}
.feature-card p {
  color: #333a;
  font-size: 1.06rem;
  margin-bottom: 0.4rem;
}
.feature-card img {
  min-height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  box-shadow: 0 2px 10px rgba(31,42,68,0.10);
}
.feature-card:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 10px 38px rgba(0,133,119,0.09);
}

.photo-preview{
  transition: transform 0.2s ease-in-out;
  cursor: pointer
}

.photo-preview:hover{
  transform: scale(1.5);
}

/* === SEZIONE CASE (HOUSES) === */
.houses-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  justify-content: center;
  padding: 3rem 1.2rem 1.8rem 1.2rem;
  max-width: 1200px;
  margin: auto;
}
.house-link { width: 100%; max-width: 375px; text-decoration: none; }
.house-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.45rem 1.2rem 1.6rem 1.2rem;
  margin-bottom: 0.7rem;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid #ededed;
}
.house-card h2 {
  color: var(--brand-dark);
  margin-top: 1rem;
  font-size: 1.4rem;
}
.house-card p, .house-card .guests {
  color: #3c4858;
  font-size: 1.08rem;
  margin: 0.55rem 0 0.55rem 0;
}
.house-card .guests { font-weight: 600; color: var(--brand-accent);}
.house-card:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 12px 32px rgba(31,42,68,0.10);
}
.house-card img {
  margin-bottom: 0.6rem;
  min-height: 160px;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(31,42,68,0.07);
}

/* === GALLERIA FOTOGRAFICA === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
  gap: 1.1rem;
  margin: 2.2rem 0 1.4rem 0;
}
.gallery-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(31,42,68,0.11);
}

/* === SEZIONI DETTAGLIO CASA === */
.house-detail {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 2.5rem auto;
  padding: 2.5rem 1.5rem;
}
.house-detail h2 {
  color: var(--brand-accent);
  margin-bottom: 1.2rem;
  font-size: 1.38rem;
}
.house-detail p {
  color: #374151;
  font-size: 1.11rem;
}
.house-contact {
  margin-top: 1.8rem;
  background: var(--brand-bg);
  padding: 1.15rem;
  border-radius: var(--radius);
  font-size: 1.08rem;
  color: var(--brand-dark);
}
.house-contact h3 { color: var(--brand-gold); margin-bottom: 0.7rem; }

/* === SEZIONE CONTATTI === */
.contact-section, .booking-form-section {
  max-width: 600px;
  margin: 2.8rem auto;
  background: #fff;
  padding: 2.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-info h2 {
  color: var(--brand-accent);
  margin-bottom: 1.1rem;
}
.contact-info p {
  color: #374151;
  font-size: 1.07rem;
  margin-bottom: 0.2rem;
}
.contact-description p {
  margin-top: 1.1rem;
  font-style: italic;
  color: #617081;
  font-size: 1.07rem;
}

/* === FOOTER === */
footer {
  background: var(--brand-dark);
  color: #fff;
  text-align: center;
  padding: 1.35rem 0 0.7rem 0;
  margin-top: 2.2rem;
  font-size: 1.01rem;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.footer-contact {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  color: var(--brand-gold);
}
.footer-contact strong { color: var(--brand-gold); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .features, .houses-section { gap: 1.1rem; }
}
@media (max-width: 700px) {
  header h1 { font-size: 1.6rem; }
  .hero-home .hero-text { padding: 1.25rem 0.4rem; }
  .feature-card { width: 98vw; max-width: 350px; }
  .features, .houses-section { flex-direction: column; align-items: center; gap: 0.6rem;}
  .house-card, .feature-card { margin-bottom: 1.1rem; }
  .house-detail { padding: 1.1rem; }
}
@media (max-width: 450px) {
  .hero-home h2 { font-size: 1.27rem; }
  .hero-home p { font-size: 1.05rem; }
}
