/* Palette globale e variabili del sito */
:root {
  --sand: #edf4f8;
  --cream: #f4f9fc;
  --seafoam: #9ecfe7;
  --lagoon: #46a0c6;
  --terracotta: #7ab3cc;
  --rose: #b8d8ea;
  --lavender: #a8c8de;
  --sage: #9ac0d4;
  --deep-sea: #133953;
  --text-main: #0a1d29;
  --text-light: #0f2c40;
}

/* Reset base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--cream);
  font-family: 'Jost', sans-serif;
  color: var(--text-main);
  position: relative;
  overflow-x: hidden;
}

/* Sfondo scenografico */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg,#daeef8 0%,#c8e4f4 20%,#b8d8ee 38%,#ccd8e0 55%,#d4cfa8 72%,#ddd4a0 85%,#e4d898 100%);
}

/* Onde collinari */
.wave { position: absolute; bottom: 0; left: 0; width: 100%; height: 55%; opacity: 0; animation: waveIn 2s 0.6s ease forwards; }
.wave-sea { position: absolute; bottom: 0; left: 0; width: 100%; height: 12%; overflow: hidden; }
.wave-sea svg { position: absolute; bottom: 0; width: 200%; height: 100%; }
.wave-sea .w1 { animation: waveScroll 12s linear infinite; opacity: 0.7; }
.wave-sea .w2 { animation: waveScroll 18s linear infinite reverse; opacity: 0.45; }
.wave-sea .w3 { animation: waveScroll 24s linear infinite; opacity: 0.3; }

/* Decorazioni circolari */
.deco-circle { position: absolute; border-radius: 50%; opacity: 0; animation: fadeUp 1.4s ease forwards; }
.deco-circle:nth-child(1) { width: 380px; height: 380px; background: radial-gradient(circle at 40% 40%, #a8d4e8, transparent 70%); top: -60px; right: -80px; animation-delay: 0.2s; }
.deco-circle:nth-child(2) { width: 260px; height: 260px; background: radial-gradient(circle at 50% 50%, #b8d8eaaa, transparent 70%); bottom: 15%; left: -60px; animation-delay: 0.5s; }
.deco-circle:nth-child(3) { width: 160px; height: 160px; background: radial-gradient(circle at 50% 50%, #a8c8de88, transparent 70%); top: 30%; left: 8%; animation-delay: 0.8s; }

/* Animazioni */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0) rotate(0deg); } }
@keyframes waveIn { to { opacity: 1; } }
@keyframes waveScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes dotFloat { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 0.6; } 90% { opacity: 0.3; } 100% { opacity: 0; transform: translateY(-80px); } }

/* Pallini decorativi */
.dots { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.dot { position: absolute; border-radius: 50%; opacity: 0; animation: dotFloat linear infinite; }

/* Selettore lingua */
.lang-switch {
  position: fixed;
  top: 1.4rem;
  right: 1.6rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
  animation: fadeUp 1s 2s ease forwards;
}
.lang-switch button {
  background: none;
  border: 1px solid var(--seafoam);
  color: var(--text-light);
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.lang-switch button:first-child { border-radius: 20px 0 0 20px; border-right: none; }
.lang-switch button:nth-child(2) { border-right: none; }
.lang-switch button:last-child { border-radius: 0 20px 20px 0; }
.lang-switch button.active { background: var(--seafoam); color: #fff; }
.lang-switch button:hover:not(.active) { background: rgba(144,189,212,0.15); color: var(--lagoon); }

/* Header comune */
.site-header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2.8rem 2rem 2rem;
  border-bottom: 1px solid rgba(144, 189, 212, 0.35);
}
.site-header a { text-decoration: none; }
.site-header .logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--deep-sea);
  letter-spacing: 0.04em;
}
.site-header .logo em { font-style: italic; color: var(--lagoon); }
.site-header .back {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
}
.site-header .back:hover { color: var(--lagoon); }
.site-header .back::before { content: '← '; }

/* Struttura contenuti */
.content {
  position: relative;
  z-index: 10;
  max-width: 940px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}
.lang-block { display: none; }
.lang-block.visible { display: block; }

/* Hero */
.hero { text-align: center; margin-bottom: 2.5rem; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 1rem; opacity: 0; animation: fadeUp 1s 0.6s ease forwards; }
.ornament-line { width: 60px; height: 1px; background: linear-gradient(to right, transparent, var(--lagoon)); }
.ornament-line:last-child { background: linear-gradient(to left, transparent, var(--lagoon)); }
.ornament span { font-size: 0.65rem; font-weight: 300; letter-spacing: 0.25em; color: var(--lagoon); text-transform: uppercase; }
h1 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.4rem,6vw,4.8rem); line-height: 1.02; color: var(--deep-sea); letter-spacing: 0.04em; opacity: 0; transform: translateY(24px); animation: fadeUp 1.2s 0.8s ease forwards; }
h1 em { display: block; font-style: italic; font-weight: 300; color: var(--lagoon); font-size: 1.06em; }
.subtitle { margin-top: 0.7rem; font-size: 0.72rem; font-weight: 300; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-light); opacity: 0; animation: fadeUp 1s 1s ease forwards; }
.separator { width: 1px; height: 54px; background: linear-gradient(to bottom, transparent, var(--seafoam), transparent); margin: 1.8rem auto; opacity: 0; animation: fadeUp 1s 1.15s ease forwards; }
.intro { max-width: 620px; margin: 0 auto; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(1.1rem,2.8vw,1.45rem); line-height: 1.65; color: var(--text-main); opacity: 0; animation: fadeUp 1s 1.25s ease forwards; }

/* Layout pannelli */
.room-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.5rem; margin-top: 2.5rem; }
.panel {
  background: rgba(244, 249, 252, 0.62);
  border: 1px solid rgba(144,189,212,0.35);
  border-radius: 28px;
  padding: 1.7rem;
  backdrop-filter: blur(7px);
  box-shadow: 0 14px 34px rgba(48,124,164,0.08);
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 1s 1.35s ease forwards;
}
.panel:nth-child(2) { animation-delay: 1.55s; }
.panel h2 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.8rem; color: var(--deep-sea); margin-bottom: 0.35rem; }
.panel h3 { font-size: 0.68rem; font-weight: 300; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-light); margin-bottom: 1.3rem; }
.panel p { font-size: 0.92rem; font-weight: 300; line-height: 1.85; color: var(--text-main); }

/* Elenco servizi */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; list-style: none; margin-top: 1.1rem; }
.services li {
  min-height: 84px;
  padding: 1rem 1rem 0.95rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.44);
  border: 1px solid rgba(144,189,212,0.24);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.services li:hover { transform: translateY(-4px); background: rgba(255,255,255,0.62); border-color: rgba(70,160,198,0.38); box-shadow: 0 10px 24px rgba(48,124,164,0.09); }
.icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: linear-gradient(135deg, rgba(158,207,231,0.48), rgba(70,160,198,0.22)); color: var(--deep-sea); display: flex; align-items: center; justify-content: center; font-size: 1rem; line-height: 1; }
.service-text strong { display: block; font-size: 0.82rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--deep-sea); margin-bottom: 0.22rem; }
.service-text span { display: block; font-size: 0.86rem; font-weight: 300; line-height: 1.6; color: var(--text-main); }

/* Badge */
.badge { display: inline-block; margin-top: 1.3rem; padding: 0.65rem 1.6rem; border: 1.5px solid var(--seafoam); border-radius: 50px; font-size: 0.7rem; letter-spacing: 0.28em; font-weight: 300; text-transform: uppercase; color: var(--lagoon); background: rgba(144, 189, 212, 0.18); }

/* Galleria foto stanza */
.room-photos { margin-top: 1.5rem; }
.room-photos h3 { font-size: 0.68rem; font-weight: 300; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.9rem; }
.photo-strip { display: flex; gap: 0.8rem; overflow-x: auto; padding-bottom: 0.45rem; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(70,160,198,0.45) rgba(255,255,255,0.25); -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; }
.photo-strip::-webkit-scrollbar { height: 8px; }
.photo-strip::-webkit-scrollbar-track { background: rgba(255,255,255,0.18); border-radius: 999px; }
.photo-strip::-webkit-scrollbar-thumb { background: rgba(70,160,198,0.45); border-radius: 999px; }
.photo-strip img { flex: 0 0 auto; width: 160px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; border: 1px solid rgba(144,189,212,0.25); scroll-snap-align: start; background: rgba(255,255,255,0.4); box-shadow: 0 10px 24px rgba(48,124,164,0.08); }

/* Footer */
.site-footer { position: relative; z-index: 10; text-align: center; padding: 1.6rem 2rem 2rem; border-top: 1px solid rgba(144,189,212,0.28); font-size: 0.62rem; font-weight: 200; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-light); }
.site-footer a { color: var(--lagoon); text-decoration: none; }
.site-footer a:hover { color: var(--deep-sea); }

/* Stili cookie/privacy */
.content h1 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(1.8rem,4vw,2.6rem); color: var(--deep-sea); letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.content .last-updated { font-size: 0.65rem; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-light); margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(144,189,212,0.3); }
.content h2 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.4rem; color: var(--deep-sea); margin-top: 2.2rem; margin-bottom: 0.8rem; letter-spacing: 0.02em; }
.content h3 { font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lagoon); margin-top: 1.6rem; margin-bottom: 0.6rem; }
.content h4 { font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); margin-top: 1.2rem; margin-bottom: 0.5rem; }
.content p { font-size: 0.88rem; font-weight: 300; line-height: 1.85; color: var(--text-main); margin-bottom: 1rem; }
.content ul { margin: 0.6rem 0 1rem 1.2rem; }
.content ul li { font-size: 0.88rem; font-weight: 300; line-height: 1.85; color: var(--text-main); margin-bottom: 0.5rem; }
.content strong { font-weight: 400; color: var(--deep-sea); }
.content a { color: var(--lagoon); text-decoration: none; border-bottom: 1px solid rgba(78,143,170,0.3); transition: color 0.3s, border-color 0.3s; }
.content a:hover { color: var(--deep-sea); border-color: var(--deep-sea); }
.cookie-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; font-size: 0.82rem; font-weight: 300; }
.cookie-table th { text-align: left; font-weight: 400; font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lagoon); padding: 0.6rem 0.8rem; border-bottom: 1px solid rgba(144,189,212,0.5); }
.cookie-table td { padding: 0.65rem 0.8rem; border-bottom: 1px solid rgba(144,189,212,0.2); color: var(--text-main); vertical-align: top; line-height: 1.6; }
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table td:first-child { font-weight: 400; color: var(--deep-sea); white-space: nowrap; }

/* Utility */
.aligncenter { text-align: center; }

/* Responsive */
@media (max-width: 860px) { .room-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .content { padding: 2.2rem 1.2rem 5rem; }
  .site-header { padding: 4.8rem 1.2rem 1.4rem; }
  .lang-switch { top: 1rem; right: 1rem; }
  .services { grid-template-columns: 1fr; }
  .panel { padding: 1.25rem; border-radius: 24px; }
  .services li { min-height: auto; }
  .photo-strip img { width: 140px; }
}