/* Tipografia & Variabili */
:root {
  --bg: #0b0e13;           /* quasi-nero blu */
  --surface: #11151b;
  --card: #151a21;
  --text: #e7e9ee;
  --muted: #a7adba;
  --primary: #d4af37;      /* oro elegante */
  --primary-600: #c29c25;
  --accent: #7aa2f7;
  --danger: #ff6b6b;
  --border: #232a34;
  --container: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 10px 30px rgba(0,0,0,.45);
  --shadow-2: 0 6px 16px rgba(0,0,0,.35);
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, #0f141b 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

img { max-width: 100%; display: block; border-radius: var(--radius-sm) }
a { color: inherit; text-decoration: none }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0 }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px }

/* Testi */
.display { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: clamp(36px, 4.5vw, 56px); line-height: 1.1; letter-spacing: .2px }
.h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: clamp(28px, 3vw, 38px); margin: 0 0 10px }
.h3 { font-weight: 600; font-size: 20px; margin: 0 0 6px }
.lead { font-size: 18px; color: var(--muted) }
.muted { color: var(--muted) }
.small { font-size: 12px }

/* Header & Nav */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); background: rgba(15,20,27,.4); border-bottom: 1px solid rgba(255,255,255,.04); transition: box-shadow .2s ease }
.site-header.is-scrolled { box-shadow: var(--shadow-2) }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 100px }
.brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: 2px }
.brand-mark { color: var(--primary) }
.brand-light { color: var(--text) }
.brand-logo { height: 100px; width: auto; display: block }
.brand-footer .brand-logo { height: 120px }

.nav .menu { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0 }
.nav .menu a { color: var(--muted) }
.nav .menu a:hover { color: var(--text) }
.menu-cta a { color: #0b0e13 }

.nav-toggle { display: none; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 8px }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 12px 18px; font-weight: 600; transition: transform .05s ease, background .2s ease, color .2s ease; border: 1px solid transparent; cursor: pointer }
.button:hover { transform: translateY(-1px) }
.button:active { transform: translateY(0) }
.button-primary { background: var(--primary); color: #141821 }
.button-primary:hover { background: var(--primary-600) }
.button-ghost { background: transparent; color: var(--text); border-color: var(--border) }
.button-ghost:hover { border-color: var(--text) }
.button.full { width: 100% }

/* Hero */
.section-hero { 
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  display: block;
  margin: 0 auto 16px auto;
  height: 400px;
  width: 400px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.35));
}

.hero-copy .display {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-copy .lead {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-actions { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
  margin-top: 20px; 
  justify-content: center;
}

.hero-actions .button-primary {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.hero-actions .button-primary:hover {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.hero-actions .button-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-actions .button-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.badges { display: flex; gap: 8px; margin-top: 10px }
.badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; font-weight: 600; font-size: 12px; color: var(--text); background: rgba(255,255,255,.04) }
.badge-gold { border-color: rgba(212,175,55,.5); background: rgba(212,175,55,.08); color: #e9e3cf }

/* Sezioni generiche */
.section { padding: 80px 0 }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px }
.features { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px }
.features li { background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.18); color: #e9e3cf; padding: 10px 12px; border-radius: 10px }

/* Highlights */
.section-highlights { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)) }
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px }
.highlight { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-2); transition: transform .15s ease, box-shadow .2s ease }
.highlight:hover { transform: translateY(-3px); box-shadow: var(--shadow-1) }
.highlight-icon { width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(212,175,55,.12); color: #e9e3cf; margin-bottom: 10px }

@media (max-width: 1000px) {
  .highlights-grid { grid-template-columns: 1fr 1fr }
}
@media (max-width: 720px) {
  .highlights-grid { grid-template-columns: 1fr }
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center }
.about-media img { border-radius: var(--radius) }

/* Camere */
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
.room-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease; display: flex; flex-direction: column; height: 100% }
.room-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.18) 100%); opacity: .1; transition: opacity .25s ease }
.room-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .25s ease }
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: rgba(212,175,55,.28) }
.room-card:hover::after { opacity: .18 }
.room-card:hover img { transform: scale(1.03) }

/* Card unica con overlay */
.room-media { position: relative }
.room-overlay { position: absolute; inset: 0; display: flex; align-items: end; padding: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45) 100%); transition: background .25s ease }
.room-card:hover .room-overlay { background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.6) 100%) }
.room-overlay .room-content { width: 100%; padding: 14px; backdrop-filter: blur(0px) }
.room-overlay .room-name { color: #fff }
.room-overlay .room-description { color: rgba(255,255,255,.92) }
.room-overlay .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #e7e9ee }
.room-overlay .room-link { border-color: rgba(255,255,255,.35) }
.room-overlay .room-link:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff }
.room-body { padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 6px; min-height: 180px; flex: 1 }
.room-body p { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
/* Uniforma le card camere anche in camere.html (usa .room-content) */
.room-content { padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 8px; min-height: 220px; flex: 1 }
.room-name { font-weight: 600; font-size: 20px; margin: 0 0 6px }
.room-description { color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.room-actions { margin-top: auto }
.room-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(212,175,55,.35); color: var(--text); font-weight: 600; transition: background .2s ease, color .2s ease, border-color .2s ease }
.room-link:hover { background: rgba(212,175,55,.1); color: #e9e3cf; border-color: var(--primary) }

/* Caratteristiche camere (chips) */
.room-features { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 96px }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.03); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.chip svg { display: block }

@media (max-width: 1000px) {
  .room-features { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}

@media (max-width: 720px) {
  .room-features { grid-template-columns: 1fr }
}

/* Galleria */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px }
.gallery-grid img { aspect-ratio: 4/3; object-fit: cover }
.gallery-item { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border) }
.gallery-item:hover img { transform: scale(1.01) }

/* Slider Galleria */
.gallery-slider { position: relative }
.gallery-slider .slides { display: flex; gap: 12px; overflow: hidden; scroll-behavior: smooth }
.gallery-slider .slides .gallery-item { flex: 0 0 calc(33.333% - 8px) }
.gallery-slider .slides img { width: 100%; aspect-ratio: 4/3; object-fit: cover }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(17,21,27,.85); color: var(--text); border: 1px solid var(--border); border-radius: 10px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5 }
.slider-nav.prev { left: -6px }
.slider-nav.next { right: -6px }
.slider-nav:hover { border-color: var(--text) }

/* Lightbox */
.lightbox-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.8); display: none; align-items: center; justify-content: center; padding: 20px }
.lightbox-overlay.is-open { display: flex }
.lightbox-content { position: relative; max-width: min(92vw, 1100px); max-height: 88vh }
.lightbox-content img { width: 100%; height: auto; max-height: 88vh; object-fit: contain; border-radius: 10px; box-shadow: var(--shadow-1) }
.lightbox-close { position: absolute; top: -12px; right: -12px; background: rgba(17,21,27,.9); color: var(--text); border: 1px solid var(--border); border-radius: 999px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer }

/* Posizione */
.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-2) }
.map-card iframe { width: 100%; height: 380px; display: block }
.location-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: center }
.location-info { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-2) }
.location-info .address { margin: 0 0 10px; font-size: 16px }
.location-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap }

/* Testimonianze */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 20px }
.testimonials blockquote { margin: 0; padding: 18px; background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)); border: 1px solid var(--border); border-radius: var(--radius) }
.testimonials footer { color: var(--muted); margin-top: 8px }

/* Presenza su portali */
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px }
.partner-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-2); transition: transform .15s ease, box-shadow .2s ease, filter .2s ease }
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1) }
.partner-logo svg { display: block; border-radius: 12px }
.partner-name { font-weight: 700 }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px }
.contact-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-2) }
.contact-form label { display: grid; gap: 6px; font-weight: 500; margin-bottom: 12px }
.contact-form input, .contact-form textarea { background: #0f141b; color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 12px; font: inherit }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid rgba(212,175,55,.35); border-color: rgba(212,175,55,.45) }
.form-note { color: var(--muted); font-size: 12px; margin-top: 10px }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid rgba(255,255,255,.06); background: rgba(15,20,27,.4); backdrop-filter: blur(8px) }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .6fr; gap: 20px; align-items: start }
.brand-footer { display: inline-flex; align-items: baseline; gap: 6px; margin-bottom: 6px }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px }
.footer-links a { color: var(--muted) }
.footer-links a:hover { color: var(--text) }
.footer-social { display: flex; gap: 12px }
.social { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border) }
.social:hover { border-color: var(--text) }

/* Cookie Banner & Modal */
.cookie-banner { position: fixed; inset: auto 0 0 0; z-index: 200; background: rgba(17,21,27,.98); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px rgba(0,0,0,.4) }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px }
.cookie-text p { margin: 6px 0 }
.cookie-link { color: var(--primary) }
.cookie-modal { position: fixed; inset: 0; z-index: 210; display: none }
.cookie-modal.is-open { display: block }
.cookie-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6) }
.cookie-modal-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); width: min(560px, 92vw); margin: 10vh auto; padding: 16px; box-shadow: var(--shadow-1) }
.cookie-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px }
.cookie-close { background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; cursor: pointer }
.cookie-modal-body { display: grid; gap: 10px; margin-bottom: 12px }
.cookie-opt label { display: flex; align-items: center; gap: 8px; font-weight: 600 }
.cookie-modal-actions { display: flex; justify-content: end; gap: 10px }
.cookie-revoke { position: fixed; right: 14px; bottom: 82px; z-index: 120; background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 8px 12px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-2) }

/* Responsive */
@media (max-width: 1000px) {
  .section-hero {
    min-height: 80vh;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .about-grid { grid-template-columns: 1fr }
  .rooms-grid { grid-template-columns: 1fr 1fr }
  .gallery-grid { grid-template-columns: 1fr 1fr }
  .gallery-slider .slides .gallery-item { flex-basis: calc(50% - 8px) }
  .partners-grid { grid-template-columns: repeat(2, 1fr) }
  .testimonials { grid-template-columns: 1fr }
  .contact-grid { grid-template-columns: 1fr }
  .footer-grid { grid-template-columns: 1fr 1fr }
}

@media (max-width: 720px) {
  .nav .menu { position: absolute; inset: 88px 16px auto 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 12px; display: none; flex-direction: column; gap: 10px }
  .nav .menu.is-open { display: flex }
  .nav-toggle { display: inline-flex }
  .menu-cta { margin-top: 4px }

  .brand-logo { height: 88px }
  .navbar { height: 88px }

  .rooms-grid { grid-template-columns: 1fr }
  .gallery-grid { grid-template-columns: 1fr }
  .gallery-slider .slides .gallery-item { flex-basis: 100% }
  .partners-grid { grid-template-columns: 1fr }
  .footer-grid { grid-template-columns: 1fr }
}

/* Room Gallery */
.room-gallery-section {
  padding: 60px 0;
}

.room-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.room-gallery-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.room-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.room-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.room-gallery-item:hover img {
  transform: scale(1.05);
}

/* WhatsApp FAB */
.whatsapp-fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #0b0e13; border-radius: 999px; padding: 10px 14px; font-weight: 700; border: 0; box-shadow: 0 10px 24px rgba(0,0,0,.35); transition: transform .05s ease, filter .2s ease }
.whatsapp-fab:hover { transform: translateY(-1px); filter: brightness(1.05) }
.whatsapp-fab svg { display: block }

/* Navigation Active State */
.nav-list .active {
  color: var(--primary);
  font-weight: 500;
}

.nav-list .active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}


