/* IlFiorone-PerlaNera - Modern CSS System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Common Palette */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;

  /* Theme Defaults (Neutral) */
  --bg-primary: #f8f9fa;      /* Grigio/beige molto chiaro */
  --bg-secondary: #ffffff;    /* Bianco */
  --text-primary: #1a1a1a;    /* Nero/grigio molto scuro */
  --text-secondary: #5a5a5a;  /* Grigio medio */
  --accent-color: #3b82f6;    /* Blu acceso */
  --accent-hover: #2563eb;    /* Blu intenso */
  --border-color: #e5e7eb;    /* Grigio chiarissimo */
}

/* Theme: Il Fiorone (Warm, Rustic & Sun-drenched Elegant) */
[data-theme="fiorone"] {
    --bg-primary: #fbf9f6;      /* Beige molto chiaro */
    --bg-secondary: #ffffff;    /* Bianco */
    --text-primary: #C49FC6;    /* viola pastello */
    --text-secondary: #70655c;  /* Marrone/grigio medio */
    --accent-color: #c96f43;    /* Terracotta */
    --accent-hover: #b05c32;    /* Terracotta scuro */
    --accent-light: #f6ebe4;    /* Beige rosato chiaro */
    --accent-olive: #606c38;    /* Verde oliva */
    --border-color: #ebdcd0;    /* Beige chiaro */
}

/* Theme: Perla Nera (Mysterious, Sophisticated & Dark Luxury) */
[data-theme="perlanera"] {
  --bg-primary: #0f0f10;      /* Nero/blu notte */
  --bg-secondary: #18181b;    /* Grigio antracite */
  --text-primary: #969696;    /* Bianco/grigio chiarissimo */
  --text-secondary: #a1a1aa;  /* Grigio chiaro */
  --accent-color: #d4af37;    /* Champagne Gold */
  --accent-hover: #c59b27;    /* Oro scuro */
  --accent-light: rgba(212, 175, 55, 0.1); /* Oro trasparente */
  --border-color: #27272a;    /* Grigio scurissimo */
}

/* Base Styles */
html, body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition-smooth);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-primary);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}
a:hover {
  color: var(--accent-hover);
}

/* Layout Elements */
.premium-navbar {
  background-color: var(--bg-secondary) !important;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
  z-index: 1000;
}

.premium-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary) !important;
}

.premium-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 2rem 0;
  margin-top: 4rem;
  transition: var(--transition-smooth);
}

/* Split-Screen Landing with Unified Background */
.landing-container {
    display: flex;
    min-height: calc(100vh - 56px); /* minus navbar */
    overflow: hidden;
    position: relative;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55)), url('/assets/img/copertina.webp'); /* sfumatura nero trasparente */
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
  .landing-container {
    flex-direction: column;
  }
}

.landing-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 4rem 2rem;
  text-align: center;
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  color: #fff; /* Bianco */
  z-index: 1;
}

/* Semi-transparent dark/warm glassmorphism overlays */
.side-fiorone {
  background: rgba(45, 38, 32, 0.35); /* Marrone scuro trasparente */
  backdrop-filter: blur(2px);
  border-right: 1px solid rgba(255, 255, 255, 0.1); /* Bianco trasparente */
}

.side-perlanera {
  background: rgba(15, 15, 16, 0.5); /* Nero trasparente */
  backdrop-filter: blur(2px);
}

.landing-side:hover {
  flex: 1.15;
  backdrop-filter: blur(8px);
}

.side-fiorone:hover {
  background: rgba(201, 111, 67, 0.35); /* Terracotta trasparente */
}

.side-perlanera:hover {
  background: rgba(212, 175, 55, 0.3); /* Oro trasparente */
}
.landing-logo-F {
    color: rgba(196, 159, 198, 1); /* Lilla chiaro */
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Ombra nera trasparente */
}

.landing-logo-P {
    color: rgba(150, 150, 150, 1); /* Grigio medio */
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Ombra nera trasparente */
}

.landing-tagline {
  font-size: 1.25rem;
  max-width: 450px;
  margin-bottom: 2rem;
  font-weight: 300;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3); /* Ombra nera trasparente */
}

/* Premium Buttons */
.btn-premium {
  padding: 0.8rem 2rem;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.btn-premium-fiorone {
  background-color: #c96f43; /* Terracotta */
  color: white; /* Bianco */
}
.btn-premium-fiorone:hover {
  background-color: #b05c32; /* Terracotta scuro */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 111, 67, 0.3); /* Terracotta trasparente */
  color: white;
}

.btn-premium-perlanera {
    background-color: #024345; /* Petrolio */
    color: #ffffff; /* Bianco */
}
.btn-premium-perlanera:hover {
  background-color: #c59b27;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  color: #121212;
}

.btn-outline-theme {
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  background: transparent;
}
.btn-outline-theme:hover {
  background-color: var(--accent-color);
  color: var(--bg-secondary);
}

.btn-hero-outline {
  padding: 0.8rem 2rem;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.4); /* Bianco trasparente */
  color: #ffffff; /* Bianco */
  background: rgba(255, 255, 255, 0.08); /* Bianco trasparente */
  backdrop-filter: blur(4px);
  transition: var(--transition-smooth);
}
.btn-hero-outline:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}
[data-theme="fiorone"] .btn-hero-outline:hover {
  color: white; /* Bianco */
  box-shadow: 0 4px 12px rgba(201, 111, 67, 0.3); /* Terracotta trasparente */
}
[data-theme="perlanera"] .btn-hero-outline:hover {
  color: #121212; /* Nero */
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3); /* Oro trasparente */
}

/* Cards & Containers */
.premium-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
}
.premium-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
}

/* Hero Section inside Struttura Page */
.hero-header {
  position: relative;
  z-index: 1;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white; /* Bianco */
  text-align: center;
}
.hero-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.hero-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6)); /* sfumatura nera trasparente */
  z-index: -1;
}

[data-theme="fiorone"] .hero-header::before {
  background-image: url('/assets/img/fiorone/esterni/DSC_2309.webp');
}
[data-theme="perlanera"] .hero-header::before {
  background-image: url('/assets/img/perlaNera/esterniPerlaNera/AP2I6252.webp');
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4); /* Ombra nera trasparente */
}

/* Room Grid & Amenities */
.amenity-badge {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.2rem;
}

.room-image-carousel {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
}

/* Booking Widget */
.booking-widget {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

/* Chat UI Styles */
.chat-container {
  display: flex;
  height: calc(100vh - 180px);
  min-height: 550px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.chat-sidebar {
  width: 320px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-history {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  max-width: 70%;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius-md);
  line-height: 1.5;
  font-size: 0.95rem;
}

.message-received {
  align-self: flex-start;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.message-sent {
  align-self: flex-end;
  background-color: var(--accent-color);
  color: #121212; /* Nero */
  border-bottom-right-radius: 4px;
}
[data-theme="fiorone"] .message-sent {
  color: white;
}
[data-theme="perlanera"] .message-sent {
  color: #121212;
}

.chat-proposal-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  margin-top: 0.75rem;
}

/* Calendar styling */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day-header {
  text-align: center;
  font-weight: 600;
  padding: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.calendar-day {
  aspect-ratio: 1;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.calendar-day:hover {
  background-color: var(--bg-secondary);
}

.day-number {
  font-weight: 500;
  font-size: 0.9rem;
}

.booking-indicator {
  height: 6px;
  width: 100%;
  border-radius: 3px;
  margin-top: 2px;
}

.indicator-fiorone {
  background-color: #c96f43; /* Terracotta */
}

.indicator-perlanera {
  background-color: #d4af37; /* Oro */
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stars {
  color: #ffc107; /* Giallo oro */
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Breadcrumbs and Muted Text Contrast Overrides */
[data-theme="perlanera"] .text-muted {
  color: var(--text-secondary) !important;
}
[data-theme="perlanera"] .breadcrumb-item.active {
  color: var(--text-primary) !important;
}
[data-theme="perlanera"] .breadcrumb-item::before {
  color: var(--text-secondary) !important;
}
[data-theme="perlanera"] .breadcrumb-item a {
  color: var(--accent-color) !important;
}
[data-theme="perlanera"] .breadcrumb-item a:hover {
  color: var(--accent-hover) !important;
}

[data-theme="fiorone"] .text-muted {
  color: var(--text-secondary) !important;
}
[data-theme="fiorone"] .breadcrumb-item.active {
  color: var(--text-primary) !important;
}
[data-theme="fiorone"] .breadcrumb-item::before {
  color: var(--text-secondary) !important;
}
[data-theme="fiorone"] .breadcrumb-item a {
  color: var(--accent-color) !important;
}
[data-theme="fiorone"] .breadcrumb-item a:hover {
  color: var(--accent-hover) !important;
}

/* Photo Gallery styling */
.gallery-card {
  height: 220px;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: pointer;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-nav-pills .nav-link {
  color: var(--text-secondary) !important;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color) !important;
  font-weight: 500;
  transition: var(--transition-smooth);
}
.gallery-nav-pills .nav-link:hover {
  color: var(--text-primary) !important;
  border-color: var(--text-primary) !important;
}
[data-theme="fiorone"] .gallery-nav-pills .nav-link.active {
  background-color: var(--accent-color) !important;
  color: white !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 4px 10px rgba(201, 111, 67, 0.2);
}
[data-theme="perlanera"] .gallery-nav-pills .nav-link.active {
  background-color: var(--accent-color) !important;
  color: #121212 !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}
[data-theme="perlanera"] input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    color: #ffffff !important;
    transform: scale(1.1);
}

.quick-action-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.quick-action-card:hover {
    background-color: #f0f7ff !important;
    border-color: #0d6efd !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.12) !important;
}

.quick-action-card:hover .action-icon {
    transform: scale(1.1);
}

.action-icon {
    transition: transform 0.2s ease;
    min-width: 42px;
    height: 42px;
}

/* Animazione Punto Notifica Rosso */
@keyframes pulse-notification {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.notification-badge-pulse {
    animation: pulse-notification 2s infinite;
}

/* Scrollbar ultra-sottile per le caselle del Tabellone Calendario */
.custom-calendar-scroll::-webkit-scrollbar {
    width: 4px;
}

.custom-calendar-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

.custom-calendar-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

.custom-calendar-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.45);
}