/* ============================================================
   CASA DI NENNA — Stile principale
   Palette: Bianco calido · Terracotta · Blu Mediterraneo · Sabbia
   ============================================================ */

:root {
  --bianco:     #FDFAF6;
  --sabbia:     #F0E8D8;
  --terracotta: #C4603A;
  --terra-dark: #9E4A2A;
  --blu:        #2A6A8A;
  --blu-light:  #E8F4F8;
  --testo:      #2C2416;
  --testo-light:#6B5D4F;
  --bordo:      #E0D5C5;
  --verde:      #4A7A5A;
  --oro:        #C8A45A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--bianco);
  color: var(--testo);
  line-height: 1.7;
}

/* ── TIPOGRAFIA ── */
h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--testo-light); }

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

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253, 250, 246, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bordo);
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--terracotta);
  font-weight: 700;
}

.nav-logo span { color: var(--testo); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.95rem; color: var(--testo-light); transition: color 0.2s; }
.nav-links a:hover { color: var(--terracotta); }

.btn-prenota-nav {
  background: var(--terracotta);
  color: white !important;
  padding: 0.5rem 1.3rem;
  border-radius: 25px;
  font-weight: 600;
  transition: background 0.2s !important;
}
.btn-prenota-nav:hover { background: var(--terra-dark) !important; }

/* ── HERO ── */
.hero {
  height: 100vh;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/rsw_740cg_true-7.webp') center/cover no-repeat;
  filter: brightness(0.6);
}

.hero-content {
  position: relative; z-index: 1;
  text-align: center; color: white;
  padding: 2rem;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: var(--terracotta);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero-content h1 { color: white; margin-bottom: 1rem; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-content p { color: rgba(255,255,255,0.9); font-size: 1.2rem; margin-bottom: 2rem; }

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--terracotta);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { background: var(--terra-dark); transform: translateY(-1px); }

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }

/* ── FEATURES BAR ── */
.features-bar {
  background: white;
  border-bottom: 1px solid var(--bordo);
  padding: 1.5rem 2rem;
  display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
}

.feature-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; color: var(--testo-light);
}

.feature-item span.icon { font-size: 1.2rem; }
.feature-item strong { color: var(--testo); }

/* ── SEZIONI ── */
section { padding: 5rem 2rem; }

.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

/* ── ABOUT ── */
.about { background: var(--sabbia); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 12px;
}

.about-imgs img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.about-imgs img:first-child {
  grid-column: 1 / -1;
  height: 220px;
}

.amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.amenity {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; color: var(--testo-light);
}
.amenity span { color: var(--verde); font-size: 1.1rem; }

/* ── GRIGLIA FOTO APPARTAMENTO ── */
.apt-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 200px;
  gap: 10px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.apt-gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  cursor: pointer;
}

.apt-gallery img:hover { transform: scale(1.03); }

.apt-gallery .apt-main {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

@media (max-width: 768px) {
  .apt-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .apt-gallery .apt-main {
    grid-column: 1 / -1;
    height: 220px;
  }
}

/* ── CAMERE ── */
.camere { background: var(--bianco); }

.camere-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.camera-card {
  border: 1px solid var(--bordo);
  border-radius: 16px;
  overflow: hidden;
  background: white;
  transition: box-shadow 0.3s, transform 0.2s;
}

.camera-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); transform: translateY(-3px); }

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

.camera-info { padding: 1.5rem; }

.camera-badge {
  display: inline-block;
  background: var(--blu-light);
  color: var(--blu);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.camera-features {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 1rem 0;
}

.camera-feat {
  background: var(--sabbia);
  color: var(--testo-light);
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.camera-prezzo {
  display: flex; align-items: baseline; gap: 0.3rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bordo);
}

.prezzo-da { font-size: 0.85rem; color: var(--testo-light); }
.prezzo-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--terracotta); }
.prezzo-notte { font-size: 0.85rem; color: var(--testo-light); }

/* ── TARIFFE ── */
.tariffe { background: var(--sabbia); }

.tariffe-tabs {
  display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}

.tab-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  border: 2px solid var(--bordo);
  background: white;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: white;
}

.tariffe-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.tariffe-table th {
  background: var(--testo);
  color: white;
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
}

.tariffe-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--bordo);
  font-size: 0.95rem;
}

.tariffe-table tr:last-child td { border-bottom: none; }
.tariffe-table tr:hover td { background: var(--sabbia); }

.tariffe-table .prezzo { font-weight: 700; color: var(--terracotta); font-size: 1.05rem; }

.tariffe-note {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--blu-light);
  border-left: 3px solid var(--blu);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--testo-light);
}

/* ── WHATSAPP / CONTATTO ── */
.contatto { background: var(--bianco); }

.whatsapp-box {
  background: linear-gradient(135deg, #1a472a, #25D366);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  color: white;
  max-width: 600px;
  margin: 0 auto;
}

.whatsapp-box h2 { color: white; margin-bottom: 0.5rem; }
.whatsapp-box p { color: rgba(255,255,255,0.85); font-size: 1.05rem; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: white;
  color: #1a472a;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.25); }

.btn-whatsapp svg { width: 24px; height: 24px; }

/* ── GALLERIA PREVIEW ── */
.galleria-preview { background: var(--bianco); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 200px 200px;
  gap: 10px;
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
}

.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery-grid img:hover { transform: scale(1.03); }
.gallery-grid img:first-child { grid-column: 1 / 3; grid-row: 1 / 3; height: 100%; }

.gallery-cta { text-align: center; margin-top: 1.5rem; }

/* ── TERRITORIO ── */
.territorio { background: var(--sabbia); }

.territorio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.territorio-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--bordo);
  transition: box-shadow 0.2s;
}

.territorio-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.territorio-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.territorio-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.territorio-card p { font-size: 0.9rem; margin: 0; }

/* ── CAPARRA/POLICY ── */
.policy-box {
  background: #FFF8F0;
  border: 1px solid #F0D5B0;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.policy-box .icon { font-size: 1.5rem; margin-top: 0.1rem; }
.policy-box h4 { font-size: 1rem; margin-bottom: 0.3rem; color: var(--testo); }
.policy-box p { font-size: 0.88rem; margin: 0; }

/* ── FOOTER ── */
footer {
  background: var(--testo);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 0.5rem;
}

footer p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 0.3rem; }

.footer-links { display: flex; justify-content: center; gap: 2rem; margin: 1.5rem 0; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--terracotta); }

.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 1.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 1rem; }
  .nav-links { display: none; }

  .about-grid,
  .camere-grid,
  .territorio-grid { grid-template-columns: 1fr; }

  .about-imgs { grid-template-rows: auto; }
  .about-imgs img:first-child { height: 200px; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-grid img:first-child { grid-column: 1 / -1; grid-row: auto; height: 200px; }

  .features-bar { gap: 1.5rem; }

  .tariffe-table td, .tariffe-table th { padding: 0.8rem 1rem; font-size: 0.85rem; }

  .whatsapp-box { padding: 2rem 1.5rem; }
}
