@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;500;700&family=Dancing+Script:wght@400;500&display=swap');

:root {
  --terracotta: #E07A5F;
  --terracotta-dark: #d0654a;
  --sea-blue: #3D5A80;
  --sand: #d2c6b8;
  --sand-light: #FAF9F5;
  --pale-blue: #d2c6b8;
  --text-dark: #293241;
  --text-muted: #5E6472;
  --whatsapp: #25D366;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background: var(--sand-light);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
.font-script { font-family: 'Dancing Script', cursive; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* NAVIGATION */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0; transition: all 0.3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1); padding: 15px 0;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.nav-logo {
  font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700;
  color: white; text-decoration: none; transition: color 0.3s;
}
.nav.scrolled .nav-logo { color: var(--sea-blue); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  color: white; text-decoration: none; font-size: 0.95rem;
  transition: opacity 0.3s; opacity: 0.9;
}
.nav-links a:hover { opacity: 1; }
.nav.scrolled .nav-links a { color: var(--sea-blue); }
.lang-selector {
  display: flex; gap: 8px; margin-left: 20px; padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.3);
}
.nav.scrolled .lang-selector { border-color: rgba(0,0,0,0.1); }
.lang-btn {
  background: none; border: none; font-size: 1.2rem; cursor: pointer;
  opacity: 0.6; transition: opacity 0.3s;
}
.lang-btn:hover, .lang-btn.active { opacity: 1; }
.mobile-menu-btn {
  display: none; background: none; border: none; color: white;
  font-size: 1.5rem; cursor: pointer;
}
.nav.scrolled .mobile-menu-btn { color: var(--sea-blue); }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; text-align: center; color: white;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-attachment: fixed;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(41,50,65,0.6), rgba(41,50,65,0.4)); }
.hero-content { position: relative; z-index: 1; padding: 20px; }
.hero-welcome { font-size: 1.3rem; margin-bottom: 10px; opacity: 0.9; }
.hero-title { font-size: clamp(2.5rem, 8vw, 5rem); margin-bottom: 20px; }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 50px; font-size: 1rem; font-weight: 600;
  text-decoration: none; transition: all 0.3s; cursor: pointer; border: none;
}
.btn-whatsapp { background: var(--whatsapp); color: white; }
.btn-whatsapp:hover { background: #128C7E; transform: scale(1.05); }
.btn-outline { background: transparent; color: white; border: 2px solid white; }
.btn-outline:hover { background: white; color: var(--sea-blue); }
.btn-primary { background: var(--terracotta); color: white; }
.btn-primary:hover { background: var(--terracotta-dark); transform: scale(1.05); }
.btn-secondary { background: transparent; color: var(--sea-blue); border: 2px solid var(--sea-blue); }
.btn-secondary:hover { background: var(--sea-blue); color: white; }

/* SECTIONS */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-subtitle { font-family: 'Dancing Script', cursive; color: var(--terracotta); font-size: 1.3rem; margin-bottom: 10px; }
.section-title { font-size: clamp(2rem, 5vw, 3rem); color: var(--text-dark); }
.section-desc { color: var(--text-muted); max-width: 600px; margin: 20px auto 0; }

/* ABOUT */
.about { background: var(--sand-light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { position: relative; }
.about-image img { width: 100%; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.about-badge {
  position: absolute; bottom: -20px; right: -20px; background: var(--terracotta);
  color: white; padding: 20px; border-radius: 15px;
}
.about-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 30px; }

/* ROOMS */
.rooms { background: var(--pale-blue); }
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.room-card {
  background: white; border-radius: 20px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.3s;
}
.room-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.room-image { position: relative; height: 250px; overflow: hidden; }
.room-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.room-card:hover .room-image img { transform: scale(1.1); }
.room-badge {
  position: absolute; top: 15px; left: 15px; padding: 5px 15px;
  border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
}
.room-badge.available { background: var(--whatsapp); color: white; }
.room-badge.unavailable { background: #999; color: white; }
.room-type {
  position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.9);
  padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; color: var(--sea-blue);
}
.room-content { padding: 25px; }
.room-name { font-size: 1.4rem; margin-bottom: 10px; }
.room-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }
.room-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.room-detail { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.room-amenities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.amenity-tag { background: var(--sand); padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; }
.room-footer { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 20px; border-top: 1px solid #eee; }
.room-price { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--terracotta); }
.room-price-note { font-size: 0.8rem; color: var(--text-muted); }
.room-book-btn {
  display: flex; align-items: center; gap: 8px; background: var(--terracotta);
  color: white; padding: 10px 20px; border-radius: 25px; font-size: 0.9rem;
  cursor: pointer; border: none; transition: all 0.3s;
}
.room-book-btn:hover { background: var(--terracotta-dark); transform: scale(1.05); }

/* SERVICES */
.services { background: var(--sand-light); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.service-card {
  background: white; padding: 30px; border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03); transition: all 0.3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.service-icon { font-size: 2.5rem; margin-bottom: 15px; }
.service-title { font-size: 1.2rem; margin-bottom: 10px; }
.service-desc { color: var(--text-muted); font-size: 0.9rem; }

/* GALLERY */
.gallery { background: white; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px; gap: 15px;
}
.gallery-item { position: relative; border-radius: 15px; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  opacity: 0; transition: opacity 0.3s; display: flex; align-items: flex-end; padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: white; font-size: 0.9rem; }

/* LOCATION */
.location { background: var(--sand); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.location-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 30px 0; }
.highlight-item {
  display: flex; align-items: center; gap: 10px; background: white;
  padding: 12px 15px; border-radius: 10px; font-size: 0.9rem;
}
.location-card { background: white; padding: 30px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.location-card h3 { font-size: 1.5rem; margin-bottom: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
.contact-icon { color: var(--terracotta); font-size: 1.2rem; }

/* CONTACT */
.contact { background: var(--sea-blue); color: white; text-align: center; }
.contact .section-subtitle { color: rgba(255,255,255,0.7); }
.contact .section-title { color: white; }
.contact .section-desc { color: rgba(255,255,255,0.8); }
.contact .btn-whatsapp { font-size: 1.2rem; padding: 20px 40px; margin-top: 20px; }

/* FOOTER */
.footer { background: var(--sea-blue); color: white; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { font-size: 1.8rem; margin-bottom: 10px; }
.footer-brand p { opacity: 0.7; font-size: 0.9rem; }
.footer-links h4 { margin-bottom: 20px; }
.footer-links a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; margin-bottom: 10px; transition: color 0.3s; }
.footer-links a:hover { color: white; }
.footer-social { display: flex; gap: 15px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; background: rgba(255,255,255,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; text-decoration: none; transition: background 0.3s;
}
.footer-social a:hover { background: rgba(255,255,255,0.2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; font-size: 0.85rem; opacity: 0.7; }

/* BOOKING MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: white; border-radius: 20px; max-width: 700px; width: 100%;
  max-height: 90vh; overflow-y: auto;
}
.modal-header { padding: 25px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: 1.5rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
.modal-body { padding: 25px; }
.calendar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.calendar-box { border: 1px solid #eee; border-radius: 15px; padding: 15px; }
.calendar-box h4 { margin-bottom: 15px; font-size: 0.9rem; color: var(--text-muted); }
.calendar { width: 100%; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.calendar-nav { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--sea-blue); }
.calendar-month { font-weight: 600; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.calendar-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 0.85rem; cursor: pointer; transition: all 0.2s;
}
.calendar-day:hover:not(.disabled):not(.selected) { background: var(--sand); }
.calendar-day.disabled { color: #ccc; cursor: not-allowed; }
.calendar-day.selected { background: var(--terracotta); color: white; }
.calendar-day.today { border: 2px solid var(--terracotta); }
.calendar-day.other-month { color: #ccc; }
.booking-summary { background: var(--sand); border-radius: 15px; padding: 20px; margin-top: 20px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.summary-row.total { border-top: 1px solid #ddd; padding-top: 10px; font-size: 1.2rem; font-weight: 600; }
.summary-row.total span:last-child { color: var(--terracotta); }
.modal-footer { padding: 25px; border-top: 1px solid #eee; }
.modal-footer .btn { width: 100%; justify-content: center; }

/* ROOM GALLERY LIGHTBOX */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 300;
  display: none; align-items: center; justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-image { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 10px; }
.lightbox-close {
  position: absolute; top: -50px; right: 0; background: none; border: none;
  color: white; font-size: 2rem; cursor: pointer; padding: 10px;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2); border: none; color: white;
  font-size: 2rem; padding: 15px 20px; cursor: pointer; border-radius: 50%;
  transition: background 0.3s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.4); }
.lightbox-prev { left: -80px; }
.lightbox-next { right: -80px; }
.lightbox-counter {
  text-align: center; color: white; margin-top: 15px; font-size: 0.9rem;
}
.lightbox-thumbnails {
  display: flex; gap: 10px; justify-content: center; margin-top: 15px;
  flex-wrap: wrap; max-width: 100%;
}
.lightbox-thumb {
  width: 60px; height: 60px; border-radius: 8px; object-fit: cover;
  cursor: pointer; opacity: 0.5; transition: opacity 0.3s; border: 2px solid transparent;
}
.lightbox-thumb:hover, .lightbox-thumb.active { opacity: 1; border-color: white; }
.room-image { cursor: pointer; }
.room-image::after {
  content: '🔍 Vedi foto'; position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.7); color: white; padding: 5px 12px;
  border-radius: 20px; font-size: 0.75rem; opacity: 0; transition: opacity 0.3s;
}
.room-image:hover::after { opacity: 1; }
.room-photo-count {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(0,0,0,0.7); color: white; padding: 5px 12px;
  border-radius: 20px; font-size: 0.75rem;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-nav { padding: 10px 15px; font-size: 1.5rem; }
  .lightbox-close { top: -40px; right: -10px; }
  .lightbox-thumb { width: 50px; height: 50px; }
}

/* FLOATING WHATSAPP */
.floating-whatsapp {
  position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
  background: var(--whatsapp); border-radius: 50%; display: none;
  align-items: center; justify-content: center; color: white; font-size: 1.8rem;
  box-shadow: 0 5px 25px rgba(37,211,102,0.4); z-index: 90; text-decoration: none;
  transition: transform 0.3s; animation: pulse 2s infinite;
}
.floating-whatsapp.visible { display: flex; }
.floating-whatsapp:hover { transform: scale(1.1); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.7); }
  50% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed; inset: 0; background: rgba(255,255,255,0.98);
  z-index: 150; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 30px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { font-size: 1.5rem; color: var(--sea-blue); text-decoration: none; }
.mobile-menu-close {
  position: absolute; top: 20px; right: 20px; background: none;
  border: none; font-size: 2rem; cursor: pointer; color: var(--sea-blue);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .about-grid, .location-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-badge { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-bg { background-attachment: scroll; }
  .rooms-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery-item.large, .gallery-item.wide, .gallery-item.tall { grid-column: span 1; grid-row: span 1; }
  .calendar-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .location-highlights { grid-template-columns: 1fr; }
}
