@charset "UTF-8";
/* =============================================================================
   Studenti Napoli — style.css
   Mobile-first | Light mode | Vanilla CSS (no framework)
   ============================================================================= */

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS — Custom properties
   ------------------------------------------------------------------------- */
:root {
  /* Colors — light mode (default) */
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-surface-2: #F4F5F7;
  --color-text: #0F172A;
  --color-text-muted: #64748B;
  --color-primary: #10B981;        /* verde menta */
  --color-primary-hover: #059669;
  --color-primary-soft: rgba(16, 185, 129, 0.10);
  --color-accent: #F97316;         /* corallo, usato con parsimonia */
  --color-accent-2: #6366F1;       /* indaco, per gradienti profondi */
  --color-border: #E5E7EB;
  --color-border-strong: #CBD5E1;
  --color-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.06);
  --color-shadow-lg: 0 8px 28px rgba(15, 23, 42, 0.12);
  --color-shadow-xl: 0 24px 64px -12px rgba(15, 23, 42, 0.22);
  --color-overlay: rgba(15, 23, 42, 0.55);

  /* Gradienti & glow — usati per dare impatto */
  --gradient-brand: linear-gradient(120deg, #10B981 0%, #14B8A6 45%, #0EA5E9 100%);
  --gradient-brand-soft: linear-gradient(120deg, rgba(16,185,129,0.12), rgba(14,165,233,0.12));
  --gradient-heading: linear-gradient(120deg, #059669 0%, #0EA5E9 100%);
  --glow-primary: 0 10px 40px -8px rgba(16, 185, 129, 0.55);

  /* Typography */
  --font-heading: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: clamp(2.5rem, 6vw, 4.25rem);

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1200px;
  --header-h: 68px;

  /* Motion */
  --t-fast: 150ms;
  --t-med: 250ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode tokens */
html[data-theme="dark"] {
  --color-bg: #0B1120;
  --color-surface: #111827;
  --color-surface-2: #1E293B;
  --color-text: #F1F5F9;
  --color-text-muted: #94A3B8;
  --color-primary: #34D399;
  --color-primary-hover: #6EE7B7;
  --color-primary-soft: rgba(52, 211, 153, 0.14);
  --color-accent: #FB923C;
  --color-accent-2: #818CF8;
  --color-border: #1F2937;
  --color-border-strong: #334155;
  --color-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.35);
  --color-shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.5);
  --color-shadow-xl: 0 24px 64px -12px rgba(0, 0, 0, 0.7);
  --color-overlay: rgba(0, 0, 0, 0.7);

  --gradient-brand: linear-gradient(120deg, #34D399 0%, #2DD4BF 45%, #38BDF8 100%);
  --gradient-brand-soft: linear-gradient(120deg, rgba(52,211,153,0.16), rgba(56,189,248,0.16));
  --gradient-heading: linear-gradient(120deg, #6EE7B7 0%, #7DD3FC 100%);
  --glow-primary: 0 10px 44px -8px rgba(52, 211, 153, 0.55);
}

/* -------------------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
  color: var(--color-text);
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: var(--fs-xl); }
p { margin: 0 0 var(--sp-4); color: var(--color-text); }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--color-primary-hover); }

img, svg { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

/* Focus visibile (accessibilità) */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: var(--sp-4);
  background: var(--color-primary);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: var(--sp-4); color: #fff; }

/* -------------------------------------------------------------------------
   3. LAYOUT — Container & sections
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--sp-8); }
}

section {
  padding: var(--sp-16) 0;
  scroll-margin-top: calc(var(--header-h) + var(--sp-4));
}
@media (min-width: 768px) {
  section { padding: var(--sp-20) 0; }
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--sp-12);
}
.section-header h2 {
  margin-bottom: var(--sp-4);
  background: linear-gradient(180deg, var(--color-text) 30%, color-mix(in srgb, var(--color-text) 62%, var(--color-primary)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-header p {
  color: var(--color-text-muted);
  font-size: var(--fs-lg);
  line-height: 1.55;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary-hover);
  background: var(--color-primary-soft);
  border: 1px solid color-mix(in srgb, var(--color-primary) 22%, transparent);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-4);
}
html[data-theme="dark"] .eyebrow { color: var(--color-primary); }
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 25%, transparent);
}

/* -------------------------------------------------------------------------
   4. HEADER
   ------------------------------------------------------------------------- */
/* Barra di avanzamento scroll (fissa in cima) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 200;
  transition: width 80ms linear;
  will-change: width;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-surface) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), background-color var(--t-med) var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--color-surface) 90%, transparent);
  border-bottom-color: var(--color-border);
  box-shadow: var(--color-shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--color-text); }
.brand-logo {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: 11px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  box-shadow: var(--glow-primary);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.nav-primary { display: none; }
@media (min-width: 1024px) {
  .nav-primary {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
  }
}
.nav-primary a {
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: 500;
  position: relative;
  padding: var(--sp-2) 0;
}
.nav-primary a:hover { color: var(--color-primary); }
.nav-primary a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--t-fast) var(--ease);
}
.nav-primary a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid; place-items: center;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.icon-btn:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.icon-btn svg { width: 18px; height: 18px; }

/* CTA in header */
.btn-cta-header { display: none; }
@media (min-width: 768px) {
  .btn-cta-header {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    background: var(--gradient-brand);
    background-size: 160% 160%;
    color: #fff;
    border: 0;
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: var(--fs-sm);
    transition: background-position var(--t-med) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
  }
  .btn-cta-header:hover { background-position: 100% 0; color: #fff; transform: translateY(-2px); }
}

/* Hamburger (mobile) */
.hamburger {
  display: inline-grid;
  place-items: center;
}
@media (min-width: 1024px) {
  .hamburger { display: none; }
}

/* Mobile menu */
.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--color-surface);
  padding: var(--sp-6) var(--sp-5);
  transform: translateX(100%);
  transition: transform var(--t-med) var(--ease);
  overflow-y: auto;
  z-index: 90;
  border-top: 1px solid var(--color-border);
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.nav-mobile a {
  display: block;
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  border: 1px solid var(--color-border);
}
.nav-mobile a:hover { background: var(--color-primary-soft); color: var(--color-primary); border-color: var(--color-primary); }
@media (min-width: 1024px) {
  .nav-mobile { display: none !important; }
}

/* -------------------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-base);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient-brand);
  background-size: 160% 160%;
  color: #fff;
  transition: background-position var(--t-med) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
}
.btn-primary:hover { background-position: 100% 0; color: #fff; transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
.btn-ghost {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.btn-ghost:hover { background: var(--color-primary); color: #fff; }
.btn svg { width: 18px; height: 18px; }
.btn-block { display: flex; width: 100%; }

/* -------------------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-20);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 45% at 12% -5%, color-mix(in srgb, var(--color-primary) 26%, transparent), transparent 60%),
    radial-gradient(45% 45% at 92% 8%, color-mix(in srgb, var(--color-accent-2) 20%, transparent), transparent 62%),
    radial-gradient(40% 40% at 78% 92%, color-mix(in srgb, var(--color-accent) 14%, transparent), transparent 60%);
  z-index: -1;
  animation: hero-bg-drift 18s ease-in-out infinite alternate;
}
@keyframes hero-bg-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -2%, 0) scale(1.06); }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--color-border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  mask-image: radial-gradient(60% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000 30%, transparent 80%);
  opacity: 0.35;
  z-index: -1;
}
.hero-inner {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr 1.15fr; }
}
.hero h1 {
  margin-bottom: var(--sp-5);
  font-size: var(--fs-4xl);
  line-height: 1.05;
  background: linear-gradient(180deg, var(--color-text) 34%, color-mix(in srgb, var(--color-text) 55%, var(--color-primary)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .subtitle {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-bottom: var(--sp-8);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: color-mix(in srgb, var(--color-surface) 78%, transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  color: var(--color-text);
  font-weight: 600;
  box-shadow: var(--color-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.hero-badge:hover { transform: translateY(-2px); border-color: var(--color-primary); }
.hero-badge svg { width: 16px; height: 16px; color: var(--color-primary); }

/* Ingresso scaglionato degli elementi dell'hero */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: hero-rise 700ms var(--ease) both; }
  .hero-text .eyebrow   { animation-delay: 40ms; }
  .hero-text h1         { animation-delay: 120ms; }
  .hero-text .subtitle  { animation-delay: 220ms; }
  .hero-text .hero-ctas { animation-delay: 320ms; }
  .hero-text .hero-badges { animation-delay: 420ms; }
  .hero-media { animation: hero-rise 800ms var(--ease) 260ms both; }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-media { position: relative; }

.hero-visual {
  /* Placeholder per futura hero image — pattern decorativo SVG */
  position: relative;
  aspect-ratio: 5 / 4;
  min-height: 380px;
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  overflow: hidden;
  box-shadow: var(--color-shadow-lg);
}
/* Se in futuro inserisci una foto reale nell'hero */
.hero-visual img,
.hero-visual picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card prezzo fluttuante sull'hero */
.hero-price-card {
  position: absolute;
  left: calc(var(--sp-4) * -1);
  bottom: calc(var(--sp-5) * -1);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-5) var(--sp-6);
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
  border-radius: var(--radius-lg);
  box-shadow: var(--color-shadow-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-text);
  z-index: 4;
}
.hero-price-card:hover { color: var(--color-text); transform: translateY(-3px); box-shadow: var(--color-shadow-xl), var(--glow-primary); }
.hero-price-card { transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease); }
.hero-price-card__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-text-muted);
}
.hero-price-card__value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-3xl);
  line-height: 1;
  color: var(--color-primary);
}
.hero-price-card__value small {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: 4px;
}
@media (max-width: 899px) {
  .hero-price-card { left: auto; right: var(--sp-3); bottom: var(--sp-3); }
  .hero-visual { min-height: 280px; }
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.25), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15), transparent 40%);
}
.hero-visual > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,0.9);
}

/* -------------------------------------------------------------------------
   7. APARTMENT FEATURES
   ------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.feature-card:hover {
  border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
  transform: translateY(-4px);
  box-shadow: var(--color-shadow-lg);
}
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--gradient-brand-soft);
  color: var(--color-primary-hover);
  border: 1px solid color-mix(in srgb, var(--color-primary) 18%, transparent);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-4);
  transition: transform var(--t-med) var(--ease);
}
html[data-theme="dark"] .feature-icon { color: var(--color-primary); }
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-3deg); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.feature-card p { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0; }

/* -------------------------------------------------------------------------
   8. ROOMS
   ------------------------------------------------------------------------- */
.rooms-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
}
.room-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.room-card {
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.room-card:hover {
  border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
  box-shadow: var(--color-shadow-xl);
  transform: translateY(-4px);
}
.room-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--gradient-brand);
}
.room-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
}
.room-head h3 { margin: 0; font-size: var(--fs-xl); }
.room-badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.room-badge.smoker {
  background: rgba(249, 115, 22, 0.12);
  color: #C2410C;
}
html[data-theme="dark"] .room-badge.smoker {
  background: rgba(251, 146, 60, 0.18);
  color: #FDBA74;
}
.room-badge.nonsmoker {
  background: var(--color-primary-soft);
  color: var(--color-primary-hover);
}
html[data-theme="dark"] .room-badge.nonsmoker {
  color: var(--color-primary);
}

.room-desc { color: var(--color-text-muted); margin: 0; }

.room-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
}
.room-features li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--color-text);
}
.room-features svg {
  width: 16px; height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.room-prices {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.price-row .label { font-size: var(--fs-sm); color: var(--color-text-muted); }
.price-row .val { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-lg); }
.price-row .util {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 2px;
  width: 100%;
}

.room-extra-note {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-top: var(--sp-6);
  padding: var(--sp-4);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
}

/* -------------------------------------------------------------------------
   9. MODAL (room interest selector)
   ------------------------------------------------------------------------- */
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--color-text);
  max-width: 560px;
  width: calc(100% - var(--sp-8));
  border-radius: var(--radius-lg);
}
dialog::backdrop {
  background: var(--color-overlay);
  backdrop-filter: blur(4px);
}
.modal-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
}
.modal-card h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.modal-card .modal-room-label {
  font-size: var(--fs-sm);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--sp-6);
}

.modal-step { margin-top: var(--sp-6); }
.modal-step h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-3);
}
.modal-step.is-hidden { display: none; }

.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.radio-card {
  position: relative;
  cursor: pointer;
}
.radio-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.radio-card .radio-card-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.radio-card .radio-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--color-border-strong);
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--t-fast) var(--ease);
}
.radio-card input:checked + .radio-card-inner {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}
.radio-card input:checked + .radio-card-inner .radio-dot {
  border-color: var(--color-primary);
}
.radio-card input:checked + .radio-card-inner .radio-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--color-primary);
  border-radius: 50%;
}
.radio-card input:focus-visible + .radio-card-inner {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.modal-note {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--sp-3);
  margin-bottom: 0;
}

.channel-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
}
.channel-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  position: relative;
}
.channel-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
  transform: translateY(-1px);
}
.channel-btn .ch-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  color: #fff;
}
.channel-btn .ch-icon svg { width: 18px; height: 18px; }
.channel-btn .ch-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.channel-btn .ch-meta small {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: 400;
}
/* WhatsApp icon brand color */
.channel-btn[data-channel="whatsapp"] .ch-icon { background: #25D366; }

/* -------------------------------------------------------------------------
   10. AREA / MAP / POI
   ------------------------------------------------------------------------- */
.area-grid {
  display: grid;
  gap: var(--sp-8);
}
@media (min-width: 900px) {
  .area-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.map-frame {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  aspect-ratio: 4 / 3;
}
.map-frame iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 899px) {
  .map-frame { position: relative; top: auto; }
}

.poi-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.area-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.area-highlights li {
  position: relative;
  padding-left: 1.15rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text);
}
.area-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-primary);
}
.poi-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease), transform var(--t-fast) var(--ease);
}
.poi-item:hover { border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border)); box-shadow: var(--color-shadow); transform: translateX(3px); }
.poi-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--gradient-brand-soft);
  color: var(--color-primary-hover);
  border: 1px solid color-mix(in srgb, var(--color-primary) 16%, transparent);
  border-radius: var(--radius-md);
  transition: transform var(--t-fast) var(--ease);
}
html[data-theme="dark"] .poi-icon { color: var(--color-primary); }
.poi-item:hover .poi-icon { transform: scale(1.08); }
.poi-icon svg { width: 22px; height: 22px; }
.poi-body { min-width: 0; }
.poi-name { font-weight: 600; font-size: var(--fs-sm); margin: 0 0 2px; line-height: 1.3; }
.poi-meta {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.poi-meta strong { color: var(--color-text); font-weight: 600; }
.poi-dir {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
}
.poi-dir:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.poi-dir svg { width: 14px; height: 14px; }
@media (max-width: 480px) {
  .poi-item { grid-template-columns: 36px 1fr; }
  .poi-icon { width: 36px; height: 36px; }
  .poi-icon svg { width: 18px; height: 18px; }
  .poi-dir {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
    margin-top: var(--sp-2);
  }
}

.transport-note {
  margin-top: var(--sp-6);
  padding: var(--sp-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}
.transport-note strong { color: var(--color-text); display: block; margin-bottom: var(--sp-1); }

.area-privacy {
  margin-top: var(--sp-6);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-align: center;
}

/* -------------------------------------------------------------------------
   11. PRICES
   ------------------------------------------------------------------------- */
.prices-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .prices-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .prices-grid { grid-template-columns: repeat(5, 1fr); }
}
.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-fast) var(--ease);
}
.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--color-shadow-lg);
  border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
}
.price-card.featured {
  border-color: transparent;
  background: var(--gradient-brand-soft);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 55%, transparent), var(--glow-primary);
}
.price-card.featured::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradient-brand);
}
.price-card-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-text-muted);
}
.price-card-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-3xl);
  line-height: 1;
  color: var(--color-text);
}
.price-card.featured .price-card-value { color: var(--color-primary-hover); }
html[data-theme="dark"] .price-card.featured .price-card-value { color: var(--color-primary); }
.price-card-value small {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  margin-left: 2px;
}
.price-card-sub {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin: 0;
}
.prices-note {
  margin-top: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------------------------
   12. GALLERY
   ------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  cursor: pointer;
  text-align: center;
  padding: var(--sp-3);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.gallery-item:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.gallery-item svg { width: 36px; height: 36px; margin-bottom: var(--sp-2); }
.gallery-item .gi-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-text);
}
.gallery-item .gi-status {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-top: var(--sp-1);
}

/* Lightbox */
.lightbox-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: center;
}
.lightbox-card h3 { margin: 0 0 var(--sp-3); }
.lightbox-card .lightbox-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

/* -------------------------------------------------------------------------
   13. FAQ
   ------------------------------------------------------------------------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-list details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-3);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease), transform var(--t-fast) var(--ease);
}
.faq-list details:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border)); }
.faq-list details[open] {
  border-color: color-mix(in srgb, var(--color-primary) 55%, var(--color-border));
  box-shadow: var(--color-shadow);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-5);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease);
}
.faq-list details[open] summary::after {
  content: '−';
  background: var(--color-primary);
  color: #fff;
}
.faq-list .faq-answer {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--color-text-muted);
}
.faq-list .faq-answer p:last-child { margin: 0; }

/* -------------------------------------------------------------------------
   14. CONTACT
   ------------------------------------------------------------------------- */

/* Grid: card WhatsApp centrata, max 480 px */
.contact-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  max-width: 480px;
  margin: 0 auto;
}

/* Base channel button — layout interno con freccia a destra */
.contact-grid .channel-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  font-size: var(--fs-base);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.contact-grid .channel-btn .ch-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
}
.contact-grid .channel-btn .ch-icon svg {
  width: 22px;
  height: 22px;
}
.contact-grid .channel-btn .ch-meta {
  flex: 1;
  min-width: 0;
}
.contact-grid .channel-btn .ch-meta span {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--color-text);
}
.contact-grid .channel-btn .ch-meta small {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-weight: 400;
}
.contact-grid .channel-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--color-shadow);
}

/* Freccia decorativa */
.ch-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  opacity: 0.55;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.contact-grid .channel-btn:hover .ch-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* Badge — nascosto di default, mostrato sulla card primaria */
.ch-badge {
  display: none;
}

/* WhatsApp — card principale */
.contact-grid .channel-btn--primary {
  padding: var(--sp-6) var(--sp-8);
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.07);
  box-shadow: 0 0 0 1px #25D366, 0 6px 20px rgba(37,211,102,0.10);
  position: relative;
}
.contact-grid .channel-btn--primary .ch-meta span {
  font-size: var(--fs-lg);
}
.contact-grid .channel-btn--primary .ch-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  background: #25D366;
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.contact-grid .channel-btn--primary:hover {
  background: #25D366;
  border-color: #25D366;
  box-shadow: 0 0 0 1px #25D366, 0 12px 28px rgba(37,211,102,0.30);
}
.contact-grid .channel-btn--primary:hover .ch-meta span,
.contact-grid .channel-btn--primary:hover .ch-meta small,
.contact-grid .channel-btn--primary:hover .ch-arrow {
  color: #fff;
  opacity: 1;
}
.contact-grid .channel-btn--primary:hover .ch-badge {
  background: rgba(255,255,255,0.25);
}
html[data-theme="dark"] .contact-grid .channel-btn--primary {
  box-shadow: 0 0 0 1px #25D366, 0 6px 20px rgba(37,211,102,0.18);
}

/* Mobile: padding ridotto */
@media (max-width: 599px) {
  .contact-grid .channel-btn--primary {
    padding: var(--sp-5) var(--sp-6);
  }
  .contact-grid .channel-btn--primary .ch-meta span {
    font-size: var(--fs-md);
  }
  .ch-badge { display: none !important; }
}

.contact-response {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-top: var(--sp-6);
}

/* -------------------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--sp-12) 0 var(--sp-6);
  margin-top: var(--sp-12);
}
.footer-grid {
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.footer-col h4 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a { color: var(--color-text); font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--color-primary); }
.footer-about p {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  max-width: 360px;
}
.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-align: center;
}

/* -------------------------------------------------------------------------
   16. UTILITIES
   ------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Reveal on scroll (init by JS via IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Body lock when modal/menu open */
body.is-locked { overflow: hidden; }

/* -------------------------------------------------------------------------
   BARRA CTA FISSA (mobile)
   ------------------------------------------------------------------------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom));
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.10);
  transform: translateY(130%);
  transition: transform var(--t-med) var(--ease);
}
html[data-theme="dark"] .mobile-cta {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}
.mobile-cta.is-visible { transform: translateY(0); }
@media (min-width: 768px) {
  .mobile-cta { display: none; }
}
.mobile-cta .mobile-cta__main {
  flex: 1;
  padding: var(--sp-3) var(--sp-5);
}
.mobile-cta__wa {
  flex: 0 0 auto;
  width: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: #25D366;
  color: #fff;
  border: 0;
}
.mobile-cta__wa:hover { color: #fff; filter: brightness(1.05); }
.mobile-cta__wa svg { width: 22px; height: 22px; }

/* -------------------------------------------------------------------------
   17. MOTION PREFERENCES
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
/* ============================================================
   CAROSELLO (hero + stanze)
   ============================================================ */

.carousel {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--color-surface);
  box-shadow: 0 20px 25px -5px rgba(15,23,42,.1), 0 8px 10px -6px rgba(15,23,42,.05);
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
}

.carousel__viewport {
  overflow: hidden;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
}

.carousel.is-dragging .carousel__viewport {
  cursor: grabbing;
}

.carousel__track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel.is-dragging .carousel__track {
  transition: none;
}

.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.carousel__image-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  cursor: inherit;
  background: none;
  border: none;
  color: inherit;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.carousel__image-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.carousel__image-btn img,
.carousel__image-btn svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.carousel__caption {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 7px 14px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 9999px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.carousel__caption.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  color: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.35);
  opacity: 0;
  transition:
    opacity 220ms var(--ease),
    background-color 200ms var(--ease),
    color 200ms var(--ease),
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.carousel__arrow svg {
  width: 20px;
  height: 20px;
  position: static !important;
  inset: auto;
  flex-shrink: 0;
  color: inherit;
}

.carousel__arrow--prev { left: 14px; }
.carousel__arrow--next { right: 14px; }

.carousel:hover .carousel__arrow,
.carousel:focus-within .carousel__arrow,
.carousel.is-paused .carousel__arrow {
  opacity: 1;
}

.carousel__arrow:hover {
  background: #fff;
  color: var(--color-primary);
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 12px 28px -10px rgba(16, 185, 129, 0.45);
}

.carousel__arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.carousel__arrow:focus-visible {
  opacity: 1;
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (hover: none) {
  .carousel__arrow {
    opacity: 0.92;
    width: 40px;
    height: 40px;
  }
  .carousel__arrow--prev { left: 10px; }
  .carousel__arrow--next { right: 10px; }
}

.carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
}

.carousel__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.42);
  transition:
    width 280ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 200ms var(--ease),
    transform 200ms var(--ease);
  padding: 0;
  border: none;
  cursor: pointer;
}

.carousel__dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.15);
}

.carousel__dot.is-active {
  background-color: #fff;
  width: 26px;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.28);
}

.carousel__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.carousel__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
  overflow: hidden;
}

.carousel__progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #10B981 0%, #34D399 55%, #2DD4BF 100%);
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.55);
}

.carousel__progress-bar.is-animating {
  animation: carousel-progress var(--autoplay-ms, 5000ms) linear forwards;
}

.carousel.is-paused .carousel__progress-bar.is-animating {
  animation-play-state: paused;
}

@keyframes carousel-progress {
  to { transform: scaleX(1); }
}

.carousel__counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 5px 11px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  border-radius: 9999px;
  pointer-events: none;
}

.carousel__hint {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  opacity: 0;
  transform: scale(0.88);
  pointer-events: none;
  transition: opacity 280ms var(--ease), transform 280ms var(--ease);
}

.carousel__hint svg {
  width: 22px;
  height: 22px;
  position: static !important;
  inset: auto;
  color: inherit;
}

.carousel:hover .carousel__hint {
  opacity: 1;
  transform: scale(1);
}

.carousel.is-dragging .carousel__hint,
.carousel:has(.carousel__arrow:hover) .carousel__hint,
.carousel:has(.carousel__arrow:focus-visible) .carousel__hint {
  opacity: 0;
  transform: scale(0.88);
}

@media (hover: none) {
  .carousel__hint { display: none; }
}

/* Mini-carosello nelle stanze: più piccolo */
.room-carousel {
  margin-bottom: 16px;
  border-radius: 12px;
}


/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
}

.lightbox::backdrop {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 200ms ease;
}

.lightbox__close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.lightbox__close svg {
  width: 24px;
  height: 24px;
}

.lightbox__arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 200ms ease;
}

.lightbox__arrow:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.lightbox__arrow svg {
  width: 28px;
  height: 28px;
}

.lightbox__arrow--prev {
  left: 24px;
}

.lightbox__arrow--next {
  right: 24px;
}

.lightbox__content {
  width: 90vw;
  max-width: 1400px;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__content svg,
.lightbox__content img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.5);
}
.lightbox__content picture { display: contents; }

/* Placeholder mostrato finché non ci sono foto reali */
.lightbox__content.is-empty {
  width: min(90vw, 480px);
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-md);
  font-weight: 500;
}

/* Foto: riempiono il riquadro 4:3. Absolute evita che place-items:center
   annulli height:100% sulle portrait (bug: img 286px in box 162px). */
.gallery-item img,
.gallery-item picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item:has(img) {
  padding: 0;
  place-items: stretch;
}
.gallery-item:has(img) img,
.gallery-item:has(img) picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item:has(img) .gi-label,
.gallery-item:has(img) .gi-status { display: none; }

.lightbox__caption {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 9999px;
}

@media (max-width: 640px) {
  .lightbox__close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  .lightbox__arrow {
    width: 44px;
    height: 44px;
  }
  .lightbox__arrow--prev { left: 12px; }
  .lightbox__arrow--next { right: 12px; }
}

/* Override: hero-visual deve permettere al carosello di prendere spazio */
.hero-visual {
  width: 100%;
}

/* =============================================================================
   IMPACT ENHANCEMENTS — CTA più forti, hero, galleria d'apertura
   ============================================================================= */

/* CTA primarie con "glow" per attirare il click */
.btn-primary {
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.30);
}
.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.40);
  transform: translateY(-2px);
}
html[data-theme="dark"] .btn-primary {
  box-shadow: 0 6px 18px rgba(52, 211, 153, 0.28);
}
.btn-cta-header:hover {
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

/* Hero: titolo più incisivo + micro-animazione d'ingresso */
.hero h1 { letter-spacing: -0.03em; }
.hero .eyebrow { animation: hero-pop 500ms var(--ease) both; }
@keyframes hero-pop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-visual {
  box-shadow: var(--color-shadow-xl);
  border: 1px solid color-mix(in srgb, var(--color-primary) 12%, transparent);
}

/* Galleria d'apertura: placeholder più curati (shimmer) + hover vivo */
.gallery-item svg {
  transition: transform var(--t-med) var(--ease), color var(--t-fast) var(--ease);
}
.gallery-item:hover {
  box-shadow: var(--color-shadow);
}
.gallery-item:hover svg {
  transform: scale(1.12);
  color: var(--color-primary);
}
.gallery-item:not(:has(img))::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  background-size: 220% 100%;
  animation: gi-shimmer 2.6s var(--ease) infinite;
  pointer-events: none;
}
html[data-theme="dark"] .gallery-item:not(:has(img))::before {
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.06) 50%, transparent 65%);
  background-size: 220% 100%;
}
@keyframes gi-shimmer {
  from { background-position: 220% 0; }
  to   { background-position: -220% 0; }
}
.gallery-item > * { position: relative; z-index: 1; }

/* Banda CTA sotto la galleria — spinta alla conversione */
.gallery-cta {
  margin-top: var(--sp-8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--color-shadow);
}
.gallery-cta__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gallery-cta__text strong {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--color-text);
}
.gallery-cta__text span {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}
@media (max-width: 599px) {
  .gallery-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: var(--sp-6);
  }
  .gallery-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item:not(:has(img))::before { animation: none; }
  .hero .eyebrow { animation: none; }
}

/* =============================================================================
   HERO CAROUSEL — foto reali
   ============================================================================= */

/* Il hero-visual diventa il root del carousel: viewport e track devono
   riempire tutta l'altezza definita dall'aspect-ratio */
.hero-visual .carousel__viewport,
.hero-visual .carousel__track,
.hero-visual .carousel__slide,
.hero-visual .carousel__image-btn { height: 100%; }

/* Le immagini coprono l'intera slide + Ken Burns su .is-zooming */
.hero-visual .carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual .carousel__slide img.is-zooming {
  transform: scale(1.07);
}

.hero-visual .carousel__track {
  transition: transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-visual.is-dragging .carousel__track {
  transition: none;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(15, 23, 42, 0.18) 45%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Rimuove il gradiente decorativo SVG ora che ci sono foto reali */
.hero-visual::before { display: none; }

.hero-visual .carousel__caption,
.hero-visual .carousel__counter,
.hero-visual .carousel__dots,
.hero-visual .carousel__arrow,
.hero-visual .carousel__progress,
.hero-visual .carousel__hint {
  z-index: 5;
}
.hero-visual .carousel__caption {
  top: 12px;
  bottom: auto;
  left: 14px;
  transform: translateY(-6px);
  max-width: min(58%, 240px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-visual .carousel__caption.is-visible {
  transform: translateY(0);
}

/* Dots in basso a destra: evitano la card prezzo (angolo basso-sinistra) */
.hero-visual .carousel__dots {
  left: auto;
  right: 14px;
  transform: none;
  bottom: 14px;
}

/* Hint zoom: leggermente più in alto del centro per non coprire i dots */
.hero-visual .carousel__hint {
  margin-top: -40px;
}

@media (max-width: 899px) {
  /* Su mobile la price card è in basso a destra → dots a sinistra */
  .hero-visual .carousel__dots {
    left: 12px;
    right: auto;
    bottom: 12px;
    padding: 7px 10px;
  }
  .hero-visual .carousel__caption {
    max-width: calc(100% - 88px);
  }
  .hero-visual .carousel__arrow--prev { left: 8px; }
  .hero-visual .carousel__arrow--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .carousel__slide img {
    transition: none;
    transform: none !important;
  }
  .hero-visual .carousel__track {
    transition-duration: 0.01ms;
  }
  .carousel__progress-bar.is-animating {
    animation: none;
    transform: scaleX(1);
  }
  .carousel__hint,
  .carousel__caption {
    transition: none;
  }
}

/* =============================================================================
   GALLERY — label overlay sulle foto reali
   ============================================================================= */

/* Etichetta sempre visibile in basso sulla gallery-item con immagine */
.gallery-item:has(img) .gi-label {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px 8px;
  background: linear-gradient(to top, rgba(15,23,42,.72) 0%, transparent 100%);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.03em;
  pointer-events: none;
  z-index: 2;
}

/* Hover: leggero zoom dell'immagine per feedback visivo */
.gallery-item img {
  transition: transform 400ms var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.04);
}
