/* 
  Dimora Fortebraccio - Boutique Hotel Digital Guest Guide
  Aesthetics: Minimalist Luxury, Warm Cream, Tortora Header, Champagne Gold Accents
*/

@font-face {
  font-family: 'DuneRise';
  src: url('./immagini/font/Dune_Rise.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  /* Color Palette */
  --bg-app: #FAF9F6;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F4F1EA;
  --bg-card: #FFFFFF;

  --tortora-header: linear-gradient(135deg, #8A7E73 0%, #73675C 100%);
  --tortora-solid: #7D7166;

  --terracotta: #C4714A;
  --terracotta-light: rgba(196, 113, 74, 0.10);

  --gold-primary: #C5A059;
  --gold-dark: #9E7B3B;
  --gold-light: #F7F3E9;
  --gold-border: rgba(197, 160, 89, 0.25);
  --gold-glow: rgba(197, 160, 89, 0.18);

  --text-primary: #2C2118;
  --text-secondary: #5C5048;
  --text-muted: #9A8E84;
  --text-gold: #A67C2E;

  --whatsapp-bg: #25D366;
  --whatsapp-hover: #20BD5A;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 16px 40px rgba(197, 160, 89, 0.15);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: var(--bg-app);
}

#app {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  background: var(--bg-app);
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.04);
  padding-bottom: 40px;
}

/* Header con Sfondo Tortora Elegante */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--tortora-header) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.4);
  padding: 10px 18px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
}

.header-title-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #FFFFFF !important;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Language Switcher per Header Tortora */
.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.lang-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background: #FFFFFF !important;
  color: #73675C !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
  padding: 28px 20px 24px 20px;
  text-align: center;
}

.hero-logo-card {
  width: 250px;
  margin: 0 auto 20px auto;
  border-radius: 16px;
  background: transparent;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: none;
  transition: var(--transition-smooth);
}

.hero-logo-card:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.hero-logo-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 16px;
}

.hero-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #73675C;
  margin-bottom: 4px;
  line-height: 1.2;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 24px;
}

.quick-action-btn {
  width: 100%;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
  cursor: pointer;
  font-family: inherit;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.quick-action-btn:hover,
.quick-action-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.quick-action-btn .icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-action-btn .icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--tortora-solid);
  stroke-width: 1.8;
  fill: none;
}

.quick-action-btn .qa-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.quick-action-btn .qa-text strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.quick-action-btn .qa-text small {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Tile Grid */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px 30px 16px;
}

@media (max-width: 320px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tile {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  padding: 18px 8px 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
  position: relative;
  text-align: center;
  min-height: 110px;
}

.tile:hover,
.tile:active {
  border-color: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196, 113, 74, 0.12);
}

.tile-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(138, 126, 115, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  flex-shrink: 0;
}

.tile-icon-wrapper svg {
  width: 22px;
  height: 22px;
  stroke: var(--tortora-solid);
  stroke-width: 1.6;
  fill: none;
}

.tile-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  text-align: center;
}

.tile-desc {
  display: none;
}

/* Section View (Full Screen View Transition) */
.view-section {
  display: none;
  padding: 20px;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.back-bar {
  margin-bottom: 16px;
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--tortora-solid);
  padding: 4px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-back svg {
  width: 28px;
  height: 28px;
  stroke: var(--tortora-solid);
  stroke-width: 2;
}

.btn-back:hover {
  opacity: 0.65;
}

.section-cover-img {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gold-border);
}

/* Map Embed */
.map-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 16px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gold-border);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

.map-open-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #FFFFFF;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  z-index: 10;
  transition: var(--transition-smooth);
}

.map-open-btn:hover {
  background: var(--gold-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.detail-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--tortora-solid);
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: 0;
}

.view-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.15;
}

.view-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.6;
}

.view-section p.lead {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 500;
}

.view-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: 24px 0 12px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold-border);
}

/* Boutique Cards & Boxes inside Sections */
.boutique-card {
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.boutique-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.boutique-card p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.step-card {
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.step-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--gold-border);
}

.step-content {
  flex: 1;
}

.step-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* Wi-Fi Boutique Card */
.wifi-card-boutique {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF8F3 100%);
  border: 1.5.px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 18px 0;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.wifi-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
}

.wifi-val {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: block;
}

.wifi-val.gold {
  color: var(--gold-dark);
}

/* Buttons */
.btn-gold-action {
  background: var(--gold-primary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--gold-glow);
  transition: var(--transition-smooth);
}

.btn-gold-action:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

.btn-whatsapp-action {
  background: var(--whatsapp-bg);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 13px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: var(--transition-smooth);
}

.btn-whatsapp-action:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.action-card-gold {
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin: 18px 0;
  text-align: center;
}

.action-card-gold h4 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.action-card-gold p {
  font-size: 0.88rem;
  margin-bottom: 12px;
}

/* Grid Badges */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.badge-box {
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.badge-box .icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.badge-box .lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.badge-box .val {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* Emergency Contact Grid */
.emergency-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.emergency-item {
  background: #FFFFFF;
  border: 1px solid rgba(220, 53, 69, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.emergency-item:hover {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.04);
  transform: translateY(-2px);
}

.emergency-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc3545;
  display: block;
}

.emergency-name {
  font-size: 0.78rem;
  font-weight: 500;
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 30px 20px 20px 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--gold-border);
  margin-top: 30px;
}

.app-footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #73675C;
  margin-bottom: 4px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-primary);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}