/* ==========================================================================
   SkyBNB — Landing · design system "Aegean Glass"
   Breakpoint: ≥1440 schermi grandi · ≤1100 tablet · ≤720 telefono · ≤380 telefono piccolo
   + telefono in orizzontale (altezza ≤560) · (hover:none) per dispositivi touch
   ========================================================================== */

:root {
  --sky-50: #F0F9FF; --sky-100: #E0F2FE; --sky-200: #BAE6FD; --sky-300: #7DD3FC; --sky-400: #38BDF8;
  --sky-500: #0EA5E9; --sky-600: #0284C7; --sky-700: #0369A1; --sky-800: #075985; --sky-900: #0C4A6E;
  --slate-50: #F8FAFC; --slate-100: #F1F5F9; --slate-200: #E2E8F0; --slate-400: #94A3B8;
  --slate-600: #475569; --slate-800: #1E293B; --slate-900: #0F172A;
  --coral: #FB7185; --amber: #FBBF24; --emerald: #34D399; --violet: #A78BFA;

  --bg: #FFFFFF;
  --ink: var(--slate-900);
  --muted: var(--slate-600);
  --line: var(--slate-200);

  --grad-hero: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 50%, #7DD3FC 100%);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg: 0 12px 32px rgba(14,165,233,.10), 0 4px 12px rgba(15,23,42,.06);
  --shadow-xl: 0 30px 60px -12px rgba(12,74,110,.25), 0 8px 20px rgba(15,23,42,.08);
  --glow: 0 0 0 4px rgba(14,165,233,.18);

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-2xl: 32px;
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-in-out: cubic-bezier(.76,0,.24,1);

  --f-ui: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-display: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --gutter: 16px;
  --sec: clamp(72px, 10vw, 128px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 80px; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0; font-family: var(--f-ui); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--sky-400); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sky-200); color: var(--sky-900); }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: calc(12px + var(--safe-t)); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; color: #fff;
  background: radial-gradient(120% 90% at 50% 110%, #7DD3FC 0%, #0EA5E9 45%, #0C4A6E 100%);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-in-out) .15s;
}
.pl-inner { display: grid; justify-items: center; gap: 16px; transition: opacity .4s, transform .6s var(--ease); }
.logo-mark.big { width: 64px; height: 64px; border-radius: 20px; background: rgba(255,255,255,.18); box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset; animation: plpulse 1.6s ease-in-out infinite; }
.logo-mark.big svg { width: 36px; height: 36px; }
@keyframes plpulse { 50% { transform: translateY(-6px); } }
.pl-word { font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.pl-word b { color: var(--sky-200); }
.pl-bar { width: 140px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 40%; background: #fff; border-radius: 3px; animation: plbar 1.1s var(--ease-in-out) infinite; }
@keyframes plbar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.loaded .preloader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loaded .pl-inner { opacity: 0; transform: translateY(-30px); }
.no-preload .preloader { display: none; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; background: var(--grad-hero); transform-origin: left; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* ---------- Typography ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-600); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.light { color: #fff; }
.h-display { font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 6vw, 76px); line-height: 1.02; letter-spacing: -.02em; margin: 14px 0 0; text-wrap: balance; }
.h-display em { font-style: italic; color: var(--sky-500); }
.split .sl { display: block; padding-bottom: .06em; }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 60ch; margin: 18px 0 0; text-wrap: pretty; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
section { padding: var(--sec) 0; position: relative; overflow-x: clip; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s; overflow: hidden; isolation: isolate;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--sky-500); color: #fff; box-shadow: 0 8px 20px -6px rgba(14,165,233,.55); }
/* riflesso che attraversa il bottone all'hover */
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); transition: transform .7s var(--ease); }
.btn-primary:hover { background: var(--sky-600); box-shadow: 0 14px 30px -8px rgba(2,132,199,.65); }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,.26); }
.btn-soft { background: var(--sky-50); color: var(--sky-700); border: 1px solid var(--sky-100); }
.btn-soft:hover { background: var(--sky-100); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.magnetic { will-change: transform; }

.glass { background: rgba(255,255,255,.72); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255,255,255,.5); box-shadow: var(--shadow-lg); }

/* luce che segue il puntatore sulle card (.spot) */
.spot { --mx: 50%; --my: 50%; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,.22), transparent 45%); z-index: 2; }
.spot:hover::after { opacity: 1; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding: calc(16px + var(--safe-t)) 0 16px; transition: background .35s, box-shadow .35s, padding .35s, transform .45s var(--ease); }
.nav .wrap { display: flex; align-items: center; gap: 24px; }
.nav.scrolled { background: rgba(255,255,255,.8); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%); box-shadow: 0 1px 0 rgba(15,23,42,.06); padding: calc(10px + var(--safe-t)) 0 10px; }
.nav.hidden { transform: translateY(-110%); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: #fff; transition: color .3s; flex: none; }
.nav.scrolled .logo, .menu-open .nav .logo { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--grad-hero); display: grid; place-items: center; box-shadow: 0 6px 16px -4px rgba(14,165,233,.6); flex: none; }
.logo-mark svg { width: 20px; height: 20px; }
.logo b { color: var(--sky-300); font-weight: 800; }
.nav.scrolled .logo b, .menu-open .nav .logo b { color: var(--sky-500); }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { position: relative; padding: 8px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.92); transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(255,255,255,.15); }
.nav-links a.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 9px; background: currentColor; }
.nav.scrolled .nav-links a { color: var(--slate-600); }
.nav.scrolled .nav-links a:hover, .nav.scrolled .nav-links a.active { background: var(--sky-50); color: var(--sky-700); }
.nav-cta { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.nav-links + .nav-cta { margin-left: 0; }

.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; border: 1px solid rgba(255,255,255,.35); transition: background .2s, border-color .2s; }
.lang-btn:hover { background: rgba(255,255,255,.14); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-btn .chev { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.lang.open .chev { transform: rotate(180deg); }
.nav.scrolled .lang-btn, .menu-open .lang-btn { color: var(--slate-600); border-color: var(--line); }
.nav.scrolled .lang-btn:hover { background: var(--sky-50); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); list-style: none; margin: 0; padding: 6px; border-radius: 16px; min-width: 180px; color: var(--ink); opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top right; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); background: rgba(255,255,255,.92); }
.lang.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; text-align: left; }
.lang-menu button:hover { background: var(--sky-50); }
.lang-menu button small { font-family: var(--f-mono); font-size: 11px; color: var(--slate-400); }
.lang-menu button[aria-selected="true"] { background: var(--sky-500); color: #fff; }
.lang-menu button[aria-selected="true"] small { color: var(--sky-100); }

.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 14px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: #fff; transition: transform .45s var(--ease), top .45s var(--ease), background .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.nav.scrolled .burger span, .menu-open .burger span { background: var(--ink); }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(96px + var(--safe-t)) 24px calc(24px + var(--safe-b));
  background: linear-gradient(180deg, #fff 0%, var(--sky-50) 100%);
  clip-path: circle(0% at calc(100% - 38px) 38px); transition: clip-path .7s var(--ease-in-out), visibility 0s .7s; visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 38px) 38px); visibility: visible; transition: clip-path .7s var(--ease-in-out); }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 14px; font-family: var(--f-display); font-size: clamp(30px, 8vw, 44px); line-height: 1.2; padding: 8px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease); }
.mobile-menu nav a small { font-family: var(--f-mono); font-size: 12px; color: var(--sky-500); }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(1) { transition-delay: .18s; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .23s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .28s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .33s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .38s; }
.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: .43s; }
.mm-foot { display: grid; gap: 16px; opacity: 0; transition: opacity .5s .45s; }
.menu-open .mm-foot { opacity: 1; }
.mm-langs { display: flex; gap: 6px; flex-wrap: wrap; }
.mm-langs button { height: 40px; min-width: 52px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 13px; }
.mm-langs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(120px + var(--safe-t)) 0 140px; color: #fff; overflow: clip; isolation: isolate; }
.hero-slides { position: absolute; inset: -4% 0 0; z-index: -3; background: var(--sky-900); will-change: transform; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease; }
.hero-slide.active { opacity: 1; animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1.18) translate(-1.5%, -1%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(12,74,110,.55) 0%, rgba(12,74,110,.12) 40%, rgba(12,74,110,.5) 78%, rgba(12,74,110,.72) 100%),
              radial-gradient(80% 60% at 15% 40%, rgba(3,105,161,.55), transparent 70%); }
/* bagliore di sole che si muove lentamente */
.hero-glow { position: absolute; z-index: -1; width: 60vmax; height: 60vmax; right: -18vmax; top: -22vmax; border-radius: 50%; background: radial-gradient(circle, rgba(255,241,200,.45), rgba(125,211,252,.12) 40%, transparent 65%); mix-blend-mode: screen; animation: glow 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes glow { to { transform: translate(-8vmax, 6vmax) scale(1.15); } }
.hero-wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: end; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13.5px; font-weight: 500; opacity: 0; }
.loaded .hero-badge { animation: fade-up .9s .05s var(--ease) forwards; }
.hero-badge .dot { width: 22px; height: 22px; flex: none; border-radius: 999px; background: var(--emerald); display: grid; place-items: center; }
.hero-badge .dot::after { content: ""; width: 8px; height: 8px; border-radius: 99px; background: #fff; animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); } 100% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }
.hero h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 8.2vw, 112px); line-height: .96; letter-spacing: -.025em; margin: 24px 0 0; text-shadow: 0 2px 30px rgba(12,74,110,.35); }
.hero h1 em { font-style: italic; color: var(--sky-200); }
.hero h1 .line { display: block; overflow: clip; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%) rotate(3deg); transform-origin: left bottom; }
.loaded .hero h1 .line > span { animation: rise 1.2s var(--ease) forwards; }
.loaded .hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.loaded .hero h1 .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes rise { to { transform: none; } }
.hero-sub { font-size: clamp(16px, 1.45vw, 20px); max-width: 54ch; color: rgba(255,255,255,.9); margin: 24px 0 0; opacity: 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; opacity: 0; }
.loaded .hero-sub { animation: fade-up 1s .45s var(--ease) forwards; }
.loaded .hero-actions { animation: fade-up 1s .6s var(--ease) forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-floats { position: relative; display: grid; gap: 14px; justify-items: end; }
.float-card { color: var(--ink); border-radius: var(--r-lg); padding: 14px 16px; width: min(320px, 100%); opacity: 0; }
.loaded .float-card { animation: card-in 1s var(--ease) forwards, bob 6s 1s ease-in-out infinite; }
.loaded .float-card:nth-child(1) { animation-delay: .8s, 1.8s; }
.loaded .float-card:nth-child(2) { animation-delay: .95s, 2.6s; margin-right: 36px; }
.loaded .float-card:nth-child(3) { animation-delay: 1.1s, 3.4s; }
@keyframes card-in { from { opacity: 0; transform: translateX(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.fc-row { display: flex; align-items: center; gap: 12px; }
.fc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.fc-ico svg { width: 22px; height: 22px; }
.fc-title { font-size: 13px; color: var(--muted); font-weight: 500; }
.fc-val { font-weight: 700; font-size: 15px; }
.fc-temp { font-family: var(--f-display); font-size: 40px; line-height: 1; margin-left: auto; }
.fc-dates { display: flex; gap: 6px; margin-top: 10px; }
.fc-dates span { flex: 1; text-align: center; font-size: 11.5px; padding: 6px 0; border-radius: 8px; background: var(--sky-50); color: var(--sky-700); font-weight: 600; white-space: nowrap; }

.search { margin-top: 56px; display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr auto; gap: 6px; padding: 8px; border-radius: 22px; color: var(--ink); opacity: 0; }
.loaded .search { animation: fade-up 1s .75s var(--ease) forwards; }
.search .field { padding: 10px 16px; border-radius: 16px; transition: background .2s; position: relative; min-width: 0; }
.search .field:hover, .search .field:focus-within { background: rgba(255,255,255,.85); }
.search label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-600); }
.search input, .search select { width: 100%; min-width: 0; border: 0; background: transparent; outline: 0; font-weight: 600; font-size: 16px; padding: 2px 0 0; appearance: none; -webkit-appearance: none; }
.search .field + .field::before { content: ""; position: absolute; left: -3px; top: 22%; height: 56%; width: 1px; background: var(--line); }
.search .btn { min-height: 56px; border-radius: 16px; padding: 0 26px; }

.hero-scroll { position: absolute; left: 50%; bottom: 96px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 99px; z-index: 2; }
.hero-scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.hero-dots { position: absolute; right: max(24px, calc((100vw - var(--wrap)) / 2)); bottom: 100px; display: flex; gap: 8px; z-index: 2; }
.hero-dots button { width: 28px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); overflow: hidden; position: relative; padding: 0; }
.hero-dots button::before { content: ""; position: absolute; inset: -10px 0; }
.hero-dots button.active::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: progress 7s linear forwards; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.waves { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(50px, 8vw, 110px); z-index: 1; pointer-events: none; }
.wave-parallax > use { animation: wave 22s cubic-bezier(.55,.5,.45,.5) infinite; }
.wave-parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 9s; }
.wave-parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 13s; }
.wave-parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 17s; }
.wave-parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 24s; }
@keyframes wave { 0% { transform: translate3d(-90px,0,0); } 100% { transform: translate3d(85px,0,0); } }

/* ---------- Channels ---------- */
.channels { padding: 22px 0 28px; background: #fff; border-bottom: 1px solid var(--line); }
.channels .wrap { display: flex; align-items: center; gap: 36px; }
.channels p { margin: 0; font-size: 13px; font-weight: 600; color: var(--slate-400); white-space: nowrap; }
.marquee { overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--slate-400); white-space: nowrap; transition: color .3s; }
.marquee-track span:hover { color: var(--sky-600); }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* ---------- Stats ---------- */
.stats { padding: clamp(56px, 7vw, 88px) 0 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { position: relative; padding: 28px; border-radius: var(--r-xl); background: linear-gradient(180deg, var(--sky-50), #fff); border: 1px solid var(--sky-100); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.stat::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(56,189,248,.25), transparent 70%); transition: transform .8s var(--ease); }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat:hover::before { transform: scale(1.6); }
.stat .num { position: relative; font-family: var(--f-display); font-size: clamp(42px, 5vw, 64px); line-height: 1; color: var(--sky-800); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .num small { font-size: .5em; color: var(--sky-500); }
.stat p { position: relative; margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Bento ---------- */
.pillars { padding-top: clamp(48px, 6vw, 72px); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 18px; }
.tile { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate; box-shadow: var(--shadow-md); }
.tile .bg { position: absolute; inset: -12% 0; z-index: -2; background-size: cover; background-position: center; transition: scale 1.2s var(--ease); will-change: transform; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,74,110,.05) 25%, rgba(12,74,110,.88)); }
.tile:hover .bg { scale: 1.06; }
.tile h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 2.8vw, 36px); margin: 0; line-height: 1.05; }
.tile p { margin: 8px 0 0; color: rgba(255,255,255,.86); max-width: 42ch; font-size: 15px; }
.tile .tag { position: absolute; top: 20px; left: 20px; padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.3); }
.tile-go { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 99px; background: #fff; color: var(--sky-700); display: grid; place-items: center; transform: scale(.4) rotate(-45deg); opacity: 0; transition: transform .5s var(--ease), opacity .3s; }
.tile-go svg { width: 20px; height: 20px; }
.tile:hover .tile-go, .tile:focus-visible .tile-go { transform: none; opacity: 1; }
.t-a { grid-column: span 3; grid-row: span 2; }
.t-b, .t-c { grid-column: span 3; }

/* ---------- Filtro con indicatore che scorre ---------- */
.chips { position: relative; display: flex; gap: 4px; padding: 5px; border-radius: 99px; background: var(--slate-100); flex-wrap: wrap; }
.chip { position: relative; z-index: 1; height: 38px; padding: 0 16px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--slate-600); transition: color .35s; white-space: nowrap; flex: none; }
.chip:hover { color: var(--ink); }
.chip.active { color: #fff; }
.chip-pill { position: absolute; z-index: 0; top: 5px; left: 0; height: 38px; width: 0; border-radius: 99px; background: var(--slate-900); box-shadow: var(--shadow-md); transition: transform .5s var(--ease), width .5s var(--ease), top .5s var(--ease); pointer-events: none; }

/* ---------- Properties ---------- */
.homes { padding-top: clamp(24px, 4vw, 48px); }
.props { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); }
.prop { position: relative; border-radius: var(--r-xl); cursor: pointer; }
.prop.hide { display: none; }
.prop-media { position: relative; aspect-ratio: 4 / 3.2; border-radius: var(--r-xl); overflow: hidden; background: var(--sky-100); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .5s var(--ease), clip-path 1.2s var(--ease); clip-path: inset(0 round var(--r-xl)); }
.js .prop.reveal:not(.in) .prop-media { clip-path: inset(14% 10% 14% 10% round var(--r-xl)); }
.prop:hover .prop-media { box-shadow: var(--shadow-xl); }
.prop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.js .prop.reveal:not(.in) .prop-media img { transform: scale(1.3); }
.prop:hover .prop-media img { transform: scale(1.06); }
.prop-media .glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.28), transparent 45%); opacity: 0; transition: opacity .4s; z-index: 1; }
.prop:hover .glare { opacity: 1; }
.prop-weather { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--ink); max-width: calc(100% - 80px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-weather svg { width: 16px; height: 16px; flex: none; }
.prop-fav { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; background: rgba(255,255,255,.88); color: var(--slate-600); transition: transform .25s var(--ease), color .2s; }
.prop-fav svg { width: 18px; height: 18px; }
.prop-fav.on { color: var(--coral); }
.prop-fav.on svg { fill: currentColor; animation: heart .5s var(--ease); }
@keyframes heart { 40% { transform: scale(1.4); } }
.prop-fav:active { transform: scale(.85); }
.prop-badge { position: absolute; bottom: 14px; left: 14px; z-index: 2; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--sky-500); color: #fff; }
.prop-body { padding: 16px 4px 4px; }
.prop-top { display: flex; justify-content: space-between; gap: 12px; }
.prop-top > div { min-width: 0; }
.prop h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.prop .loc { color: var(--muted); font-size: 14px; margin-top: 2px; }
.rating { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.rating svg { width: 15px; height: 15px; color: var(--amber); fill: currentColor; }
.rating span { color: var(--muted); font-weight: 500; }
.prop .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.prop .meta span { display: flex; align-items: center; gap: 5px; }
.prop .meta svg { width: 15px; height: 15px; }
.prop .price { margin-top: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.prop .price b { font-size: 20px; }
.prop .price span { color: var(--muted); font-size: 14px; }
.prop .price .go { font-size: 14px; font-weight: 700; color: var(--sky-600); position: relative; white-space: nowrap; }
.prop .price .go::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.prop:hover .price .go::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Experiences ---------- */
.exp-section { background: linear-gradient(180deg, #fff, var(--sky-50) 25%, var(--sky-50) 75%, #fff); }
.carousel-nav { display: flex; gap: 8px; }
.round { width: 48px; height: 48px; flex: none; border-radius: 99px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; transition: all .25s var(--ease); }
.round:hover { border-color: var(--sky-400); color: var(--sky-600); box-shadow: var(--glow); transform: scale(1.05); }
.round:disabled { opacity: .4; pointer-events: none; }
.round svg { width: 20px; height: 20px; }
.carousel-outer { --pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 28vw, 350px); gap: 22px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding: 8px var(--pad) 28px; scrollbar-width: none; cursor: grab; }
.carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel.dragging * { pointer-events: none; user-select: none; }
.carousel::-webkit-scrollbar { display: none; }
.exp { scroll-snap-align: start; border-radius: var(--r-xl); overflow: hidden; background: #fff; box-shadow: var(--shadow-md); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; position: relative; }
.exp:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.exp-img { aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.exp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); -webkit-user-drag: none; }
.exp:hover .exp-img img { transform: scale(1.08); }
.exp-img .dur { position: absolute; bottom: 12px; left: 12px; padding: 5px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.exp-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.exp-body .cat { font-size: 12px; font-weight: 700; color: var(--sky-600); text-transform: uppercase; letter-spacing: .08em; }
.exp-body h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.exp-body p { margin: 0; font-size: 14.5px; color: var(--muted); flex: 1; }
.exp-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line); }
.exp-foot b { font-size: 18px; }
.exp-foot small { color: var(--muted); font-weight: 500; }
.exp-foot .btn[disabled] { background: #D1FAE5; color: #047857; border-color: #A7F3D0; }
.slots { display: flex; gap: 6px; flex-wrap: wrap; }
.slots span { font-size: 12px; font-weight: 600; font-family: var(--f-mono); padding: 4px 8px; border-radius: 6px; background: var(--sky-50); color: var(--sky-700); }
.slots span.low { background: #FFF1F2; color: #BE123C; }
.car-progress { height: 3px; border-radius: 3px; background: var(--sky-100); overflow: hidden; max-width: 240px; }
.car-progress i { display: block; height: 100%; width: 30%; background: var(--sky-500); border-radius: 3px; transition: transform .15s linear, width .3s; }

/* ---------- Rentals ---------- */
.rentals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rent { position: relative; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 12px; background: #fff; transition: border-color .3s, box-shadow .4s, transform .4s var(--ease); display: flex; flex-direction: column; overflow: hidden; }
.rent:hover { border-color: var(--sky-200); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.rent-img { aspect-ratio: 1.3; border-radius: var(--r-lg); overflow: hidden; background: var(--sky-50); }
.rent-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.rent:hover .rent-img img { transform: scale(1.07); }
.rent-body { padding: 14px 8px 6px; display: flex; flex-direction: column; flex: 1; }
.rent h3 { margin: 8px 0 0; font-size: 17px; }
.rent .specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.rent .specs span { font-size: 12px; padding: 4px 9px; border-radius: 99px; background: var(--slate-100); color: var(--slate-600); font-weight: 600; }
.rent .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.rent .row b { font-size: 18px; }
.rent .row small { color: var(--muted); }
.rent .round.added { background: var(--sky-500); border-color: var(--sky-500); color: #fff; }
.avail { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #047857; }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--emerald); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: ping-g 2s infinite; }
@keyframes ping-g { 100% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } }
.avail.busy { color: #B45309; }
.avail.busy::before { background: var(--amber); animation: none; }

/* ---------- Live area ---------- */
.live { background: var(--slate-900); color: #fff; }
.live::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; background: radial-gradient(circle, rgba(56,189,248,.25), transparent 60%); pointer-events: none; animation: glow 16s ease-in-out infinite alternate; }
.live .eyebrow { color: var(--sky-300); }
.live .lead { color: var(--slate-400); }
.live .h-display em { color: var(--sky-300); }
.area-tabs { position: relative; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.area-tabs button { position: relative; z-index: 1; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--slate-400); transition: color .3s; white-space: nowrap; flex: none; }
.area-tabs button:hover { color: #fff; }
.area-tabs button.active { color: #fff; }
.area-tabs .chip-pill { background: var(--sky-500); box-shadow: 0 6px 16px -4px rgba(14,165,233,.6); }
.live-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.panel { border-radius: var(--r-xl); background: rgba(255,255,255,.04); border: 1px solid rgba(56,189,248,.14); padding: 24px; position: relative; overflow: hidden; transition: border-color .4s; }
.panel:hover { border-color: rgba(56,189,248,.35); }
.panel > * { position: relative; }
.panel h4 { margin: 0 0 16px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400); font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.src { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--sky-300); background: rgba(56,189,248,.1); padding: 3px 8px; border-radius: 6px; font-weight: 500; }
.p-weather { grid-column: span 7; background: linear-gradient(135deg, rgba(14,165,233,.35), rgba(12,74,110,.2)); }
.p-weather[data-sky="rain"], .p-weather[data-sky="storm"] { background: linear-gradient(135deg, rgba(71,85,105,.55), rgba(15,23,42,.3)); }
.p-weather[data-sky="snow"] { background: linear-gradient(135deg, rgba(186,230,253,.3), rgba(71,85,105,.3)); }
.p-cam { grid-column: span 5; padding: 0; min-height: 320px; }
.p-news { grid-column: span 5; }
.p-near { grid-column: span 7; }
.swap { transition: opacity .35s, transform .45s var(--ease), filter .35s; }
.swap.out { opacity: 0; transform: translateY(8px); filter: blur(4px); }

/* effetti meteo animati nel pannello */
.wfx { position: absolute !important; inset: 0; pointer-events: none; overflow: hidden; }
.wfx .ray { position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,241,200,.16) 0 8deg, transparent 8deg 24deg); mask-image: radial-gradient(circle, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); animation: spin 40s linear infinite; }
.wfx .sunball { position: absolute; right: 30px; top: 30px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, rgba(255,236,170,.9), rgba(255,200,90,.2) 60%, transparent 70%); filter: blur(2px); animation: glowpulse 4s ease-in-out infinite; }
@keyframes glowpulse { 50% { transform: scale(1.15); opacity: .8; } }
@keyframes spin { to { transform: rotate(360deg); } }
.wfx .drop { position: absolute; top: -20px; width: 1.5px; height: 18px; border-radius: 2px; background: linear-gradient(transparent, rgba(186,230,253,.8)); animation: fall linear infinite; }
@keyframes fall { to { transform: translate(-30px, 620px); } }
.wfx .flake { position: absolute; top: -10px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.85); animation: snow linear infinite; }
@keyframes snow { 50% { transform: translate(14px, 300px); } 100% { transform: translate(-6px, 620px); } }
.wfx .puff { position: absolute; left: 0; height: 60px; border-radius: 60px; background: rgba(255,255,255,.08); filter: blur(10px); animation: puff linear infinite; }
@keyframes puff { from { transform: translateX(-100%); } to { transform: translateX(1000px); } }
.wfx .flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: flash 6s infinite; }
@keyframes flash { 0%, 92%, 100% { opacity: 0; } 93% { opacity: .18; } 94% { opacity: 0; } 95% { opacity: .12; } }

.w-now { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.w-temp { font-family: var(--f-display); font-size: clamp(72px, 8vw, 104px); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.w-icon svg { width: 84px; height: 84px; animation: bob 5s ease-in-out infinite; }
.w-desc b { display: block; font-size: 20px; }
.w-desc span { color: var(--sky-100); font-size: 14px; }
.w-extra { margin-left: auto; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 22px; font-size: 13.5px; color: var(--sky-100); }
.w-extra b { color: #fff; }
.w-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 26px; }
.w-day { text-align: center; padding: 12px 4px; border-radius: 14px; background: rgba(255,255,255,.07); font-size: 13px; transition: background .3s, transform .3s var(--ease); }
.w-day:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }
.w-day svg { width: 28px; height: 28px; margin: 6px auto; display: block; }
.w-day b { display: block; font-size: 15px; }
.w-day span { color: var(--slate-400); }
.w-hint { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.08); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.w-hint svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--sky-300); }

.cam { position: absolute !important; inset: 0; background-size: cover; background-position: center; animation: campan 30s ease-in-out infinite alternate; transition: opacity .6s; }
@keyframes campan { from { background-position: 30% 50%; transform: scale(1.05); } to { background-position: 70% 50%; transform: scale(1.12); } }
.cam-scan { position: absolute !important; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); }
.cam-scan::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; background: linear-gradient(transparent, rgba(255,255,255,.07), transparent); animation: scan 5s linear infinite; }
@keyframes scan { from { top: -40%; } to { top: 100%; } }
.cam-ui { position: absolute !important; inset: 0; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 55%, rgba(0,0,0,.65)); }
.cam-top { display: flex; justify-content: space-between; align-items: center; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; background: #E11D48; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.cam-clock { font-family: var(--f-mono); font-size: 13px; background: rgba(0,0,0,.4); padding: 4px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.cam-bottom b { display: block; font-size: 18px; }
.cam-bottom span { font-size: 13px; color: rgba(255,255,255,.8); }
.cam-list { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.cam-list button { font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 99px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s; }
.cam-list button.active { background: #fff; color: var(--ink); }

.news { display: flex; flex-direction: column; gap: 4px; }
.news-item { display: flex; gap: 14px; padding: 12px; border-radius: 14px; transition: background .25s, transform .3s var(--ease); }
.news-item:hover { background: rgba(255,255,255,.05); transform: translateX(4px); }
.news-emo { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(52,211,153,.14); color: var(--emerald); }
.news-emo svg { width: 20px; height: 20px; }
.news-item b { display: block; font-size: 15px; line-height: 1.35; font-weight: 600; }
.news-item span { font-size: 12.5px; color: var(--slate-400); }

.near-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.near-tabs button { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.06); color: var(--slate-400); transition: background .2s, color .2s; }
.near-tabs button:hover { color: #fff; }
.near-tabs button.active { background: rgba(56,189,248,.18); color: var(--sky-200); }
.near-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-height: 250px; align-content: start; }
.near { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.05); animation: near-in .5s var(--ease) backwards; transition: background .25s; }
.near:hover { background: rgba(255,255,255,.08); }
@keyframes near-in { from { opacity: 0; transform: translateY(10px); } }
.near .ic { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: rgba(56,189,248,.14); color: var(--sky-300); }
.near .ic svg { width: 18px; height: 18px; }
.near b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.near span { font-size: 12.5px; color: var(--slate-400); }
.near > div { min-width: 0; }
.skel { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 14px; height: 62px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Guest Hub ---------- */
.hub-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hub-list { display: grid; gap: 8px; margin-top: 30px; }
.hub-feat { position: relative; display: flex; gap: 16px; padding: 16px; border-radius: var(--r-lg); transition: background .3s; }
.hub-feat:hover { background: var(--sky-50); }
.hub-feat .ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--sky-100); color: var(--sky-700); transition: transform .4s var(--ease), background .3s, color .3s; }
.hub-feat:hover .ic { transform: rotate(-8deg) scale(1.08); background: var(--sky-500); color: #fff; }
.hub-feat .ic svg { width: 22px; height: 22px; }
.hub-feat b { display: block; font-size: 16px; }
.hub-feat p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }

.phone-stage { position: relative; display: grid; place-items: center; padding: 30px 0; perspective: 1400px; }
.phone-stage::before { content: ""; position: absolute; width: min(460px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--grad-hero); filter: blur(50px); opacity: .35; animation: glowpulse 6s ease-in-out infinite; }
.phone { position: relative; width: 330px; height: 670px; border-radius: 50px; background: #0B1220; padding: 12px; box-shadow: var(--shadow-xl), inset 0 0 0 2px #1E293B, 0 0 0 1px rgba(255,255,255,.1); will-change: transform; }
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, transparent 30%); }
.phone-screen { width: 100%; height: 100%; border-radius: 38px; overflow: hidden auto; background: var(--slate-50); position: relative; scrollbar-width: none; overscroll-behavior: contain; }
.phone-screen::-webkit-scrollbar { display: none; }
.notch { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 100px; height: 28px; border-radius: 99px; background: #0B1220; z-index: 3; }
.ph-hero { height: 210px; background-size: cover; background-position: center; position: relative; color: #fff; padding: 60px 18px 16px; display: flex; flex-direction: column; justify-content: flex-end; }
.ph-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,74,110,.2), rgba(12,74,110,.85)); }
.ph-hero > * { position: relative; }
.ph-hero small { font-size: 12px; opacity: .88; }
.ph-hero b { font-family: var(--f-display); font-size: 28px; font-weight: 400; line-height: 1.05; }
.ph-body { padding: 14px; display: grid; gap: 10px; }
.ph-card { background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--slate-100); }
.ph-card .lbl { font-size: 11px; font-weight: 700; color: var(--slate-400); letter-spacing: .08em; text-transform: uppercase; }
.countdown { display: flex; gap: 8px; margin-top: 8px; }
.countdown div { flex: 1; text-align: center; background: var(--sky-50); border-radius: 10px; padding: 6px 0; }
.countdown b { display: block; font-family: var(--f-display); font-size: 24px; font-weight: 400; color: var(--sky-800); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 10px; color: var(--muted); }
.ph-wifi { display: flex; gap: 12px; align-items: center; }
.ph-wifi > div:nth-child(2) { min-width: 0; }
.qr { width: 64px; height: 64px; flex: none; border-radius: 8px; background: #fff; padding: 4px; border: 1px solid var(--slate-200); display: grid; grid-template-columns: repeat(11, 1fr); }
.qr i { display: block; }
.qr i.on { background: var(--slate-900); }
.ph-wifi b, .ph-code b { font-family: var(--f-mono); font-size: 13.5px; }
.copy { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--sky-600); padding: 6px 10px; border-radius: 8px; background: var(--sky-50); flex: none; transition: background .2s; }
.copy:hover { background: var(--sky-100); }
.ph-code { display: flex; align-items: center; gap: 10px; }
.ph-code .dig { display: flex; gap: 4px; }
.ph-code .dig span { width: 30px; height: 36px; border-radius: 8px; background: var(--slate-900); color: #fff; font-family: var(--f-mono); font-weight: 700; display: grid; place-items: center; }
.ph-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-actions button { background: #fff; border: 1px solid var(--slate-100); border-radius: 14px; padding: 12px 8px; font-size: 12.5px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .2s, border-color .2s; }
.ph-actions button:hover { border-color: var(--sky-200); transform: translateY(-2px); }
.ph-actions button svg { width: 20px; height: 20px; color: var(--sky-600); }
.ph-actions button.warn svg { color: var(--coral); }
.ph-upsell { display: flex; gap: 10px; align-items: center; }
.ph-upsell img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.ph-upsell b { font-size: 13.5px; display: block; }
.ph-upsell span { font-size: 12px; color: var(--muted); }
.ph-float { position: absolute; border-radius: 16px; padding: 12px 14px; font-size: 13px; display: flex; align-items: center; gap: 10px; z-index: 4; animation: bob 5s ease-in-out infinite; }
.ph-float .fc-ico { width: 32px; height: 32px; border-radius: 10px; }
.ph-float .fc-ico svg { width: 18px; height: 18px; }
.ph-float.a { left: 0; top: 16%; }
.ph-float.b { right: 0; bottom: 18%; animation-delay: -2.5s; }

/* ---------- Manage booking ---------- */
.manage-sec { padding-top: 20px; }
.manage { position: relative; background: var(--grad-hero); color: #fff; border-radius: var(--r-2xl); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); overflow: hidden; isolation: isolate; }
.manage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px circle at var(--mx, 80%) var(--my, 20%), rgba(255,255,255,.25), transparent 50%); }
.manage::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; bottom: -260px; border-radius: 50%; border: 80px solid rgba(255,255,255,.1); }
.manage .h-display { font-size: clamp(34px, 4.4vw, 58px); }
.manage .h-display em { color: #fff; }
.manage .lead { color: rgba(255,255,255,.92); }
.demo-hint { font-size: 14px; margin-top: 22px; opacity: .9; }
.manage-form { position: relative; z-index: 1; background: #fff; color: var(--ink); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow-xl); display: grid; gap: 14px; align-content: start; }
.input { display: grid; gap: 6px; min-width: 0; }
.input label { font-size: 13px; font-weight: 600; color: var(--slate-600); }
.input input, .input select { width: 100%; min-width: 0; height: 50px; border-radius: 12px; border: 1px solid var(--line); padding: 0 14px; outline: 0; transition: border-color .2s, box-shadow .2s; background: #fff; font-size: 16px; }
.input input:focus, .input select:focus { border-color: var(--sky-400); box-shadow: var(--glow); }
.manage-form .hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.bk-result { display: none; border: 1px solid var(--sky-100); background: var(--sky-50); border-radius: 16px; padding: 16px; }
.bk-result.show { display: block; animation: fade-up .5s var(--ease); }
.bk-result .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #D1FAE5; color: #047857; }
.bk-steps { display: flex; gap: 6px; margin: 14px 0 10px; }
.bk-steps i { flex: 1; height: 5px; border-radius: 4px; background: var(--sky-200); }
.bk-steps i.done { background: var(--sky-500); animation: grow .8s var(--ease) backwards; transform-origin: left; }
.bk-steps i.done:nth-child(2) { animation-delay: .15s; }
@keyframes grow { from { transform: scaleX(0); } }
.bk-result dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; }
.bk-result dt { color: var(--muted); }
.bk-result dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.bk-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.review { position: relative; padding: 28px; border-radius: var(--r-xl); border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 18px; transition: transform .4s var(--ease), box-shadow .4s; overflow: hidden; }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review::before { content: "“"; position: absolute; right: 18px; top: -10px; font-family: var(--f-display); font-size: 140px; line-height: 1; color: var(--sky-100); }
.review.featured::before { color: rgba(56,189,248,.18); }
.review > * { position: relative; }
.review blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(21px, 1.9vw, 25px); line-height: 1.25; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: 99px; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--grad-hero); flex: none; }
.review .who b { display: block; font-size: 15px; }
.review .who span { font-size: 13px; color: var(--muted); }
.stars { display: flex; gap: 2px; color: var(--amber); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.review.featured { background: var(--slate-900); color: #fff; border-color: var(--slate-900); }
.review.featured .who span { color: var(--slate-400); }
.review.featured::after { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(56,189,248,.18), transparent 45%); }

/* ---------- FAQ ---------- */
.faq-sec { padding-top: 20px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 600; font-size: clamp(16px, 1.3vw, 17.5px); transition: color .2s; }
.faq summary:hover { color: var(--sky-700); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 99px; background: var(--sky-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230284C7' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .45s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--sky-100); }
.faq details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq .ans p { margin: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: clamp(96px, 12vw, 150px) 0; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--sky-50) 55%, var(--sky-100) 100%); isolation: isolate; }
.cta .h-display { font-size: clamp(42px, 7vw, 96px); }
.cta .lead { margin-inline: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.cloud { position: absolute; z-index: -1; color: #fff; filter: drop-shadow(0 20px 30px rgba(14,165,233,.18)); pointer-events: none; }
.cloud.c1 { width: 260px; top: 12%; left: -280px; animation: drift 46s linear infinite; }
.cloud.c2 { width: 180px; top: 58%; left: -200px; animation: drift 60s linear infinite -24s; opacity: .8; }
.cloud.c3 { width: 320px; bottom: 6%; left: -340px; animation: drift 75s linear infinite -50s; opacity: .9; }
@keyframes drift { to { transform: translateX(calc(100vw + 400px)); } }
.sun { position: absolute; z-index: -2; width: 340px; aspect-ratio: 1; left: 50%; top: 58%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(253,230,138,.55), rgba(125,211,252,.2) 50%, transparent 70%); animation: glowpulse 7s ease-in-out infinite; }

/* ---------- Footer ---------- */
footer { background: var(--slate-900); color: var(--slate-400); padding: 72px 0 calc(32px + var(--safe-b)); font-size: 14.5px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-about { margin: 16px 0 0; max-width: 36ch; }
footer h5 { color: #fff; font-size: 14px; margin: 0 0 14px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer li a { transition: color .2s, padding .3s var(--ease); }
footer li a:hover { color: var(--sky-300); padding-left: 4px; }
footer .logo { color: #fff; }
.foot-big { font-family: var(--f-display); font-size: clamp(80px, 21vw, 300px); line-height: .8; letter-spacing: -.04em; text-align: center; margin-top: 56px; background: linear-gradient(180deg, rgba(56,189,248,.35), rgba(56,189,248,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; }
.foot-bottom { margin-top: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.newsletter { display: flex; gap: 6px; margin-top: 18px; max-width: 380px; }
.newsletter input { flex: 1; min-width: 0; height: 44px; border-radius: 99px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); padding: 0 16px; color: #fff; outline: 0; font-size: 16px; }
.newsletter input:focus { border-color: var(--sky-400); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: rgba(15,23,42,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box { width: min(900px, 100%); max-height: calc(100svh - 32px); overflow: auto; overscroll-behavior: contain; background: #fff; border-radius: var(--r-2xl); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); transform: scale(.94) translateY(16px); transition: transform .55s var(--ease); box-shadow: var(--shadow-xl); }
.modal.open .modal-box { transform: none; }
.modal-media { background-size: cover; background-position: center; min-height: 340px; position: relative; }
.modal-media .close { position: absolute; top: 14px; left: 14px; width: 42px; height: 42px; border-radius: 99px; background: rgba(255,255,255,.92); display: grid; place-items: center; transition: transform .3s var(--ease); }
.modal-media .close:hover { transform: rotate(90deg); }
.modal-media .close svg { width: 20px; height: 20px; }
.modal-body { padding: 30px; display: grid; gap: 16px; align-content: start; }
.sheet-grip { display: none; }
.modal-body h3 { font-family: var(--f-display); font-weight: 400; font-size: 34px; margin: 0; line-height: 1.05; }
.modal-body .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.breakdown { display: grid; gap: 8px; font-size: 14.5px; padding: 16px; border-radius: 14px; background: var(--slate-50); }
.breakdown div { display: flex; justify-content: space-between; gap: 12px; }
.breakdown .tot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-weight: 800; font-size: 17px; }
.breakdown .tot span:last-child { font-variant-numeric: tabular-nums; }
.addons { display: grid; gap: 8px; }
.addon { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.addon:has(input:checked) { border-color: var(--sky-400); background: var(--sky-50); }
.addon input { accent-color: var(--sky-500); width: 18px; height: 18px; flex: none; }
.addon span { margin-left: auto; font-weight: 700; white-space: nowrap; }

/* ---------- Toast ---------- */
.toasts { position: fixed; right: 16px; bottom: calc(16px + var(--safe-b)); z-index: 200; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; min-width: 280px; max-width: 380px; font-size: 14px; animation: toast-in .5s var(--ease); }
.toast.out { animation: toast-out .35s var(--ease) forwards; }
.toast .fc-ico { width: 34px; height: 34px; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px) scale(.95); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px); } }

/* ---------- Reveal (fallback senza GSAP) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- View Transitions (cambio lingua, filtri) ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-height: 960px) { .hero-scroll { display: none; } }

/* Schermi grandi */
@media (min-width: 1440px) {
  :root { --wrap: 1320px; }
  body { font-size: 17px; }
}
@media (min-width: 1920px) {
  :root { --wrap: 1480px; }
  .bento { grid-auto-rows: 300px; }
}

/* Laptop piccoli */
@media (max-width: 1240px) {
  .nav-links a { padding: 8px 10px; font-size: 14px; }
  .nav-book { display: none; }
}

/* Tablet */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-book { display: inline-flex; }
  .nav-links + .nav-cta { margin-left: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-floats { display: none; }
  .search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search .field + .field::before { display: none; }
  .search .btn { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .props { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rentals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-weather, .p-cam, .p-news, .p-near { grid-column: span 12; }
  .hub-grid, .manage, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .reviews { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .modal-box { width: min(760px, 100%); }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .hub-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .phone-stage { position: sticky; top: 90px; }
  .phone { width: 290px; height: 590px; }
  .ph-float { display: none; }
}

/* Telefono */
@media (max-width: 720px) {
  .nav-book { display: none; }
  .lang-btn .chev { display: none; }
  .hero { padding-bottom: 110px; align-items: flex-end; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 64px); }
  .hero-badge { font-size: 12.5px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 36px; border-radius: 20px; }
  .search .field:first-child { grid-column: 1 / -1; }
  .hero-scroll, .hero-dots { display: none; }
  .channels .wrap { flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
  .marquee-track span { font-size: 17px; }
  .stats-grid { gap: 12px; }
  .stat { padding: 20px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 230px; }
  .t-a, .t-b, .t-c { grid-column: auto; grid-row: auto; }
  .t-a { min-height: 300px; }
  .tile { padding: 22px; }
  .tile-go { opacity: 1; transform: none; width: 38px; height: 38px; }
  .chips, .area-tabs { max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar, .area-tabs::-webkit-scrollbar { display: none; }
  .props, .rentals { grid-template-columns: minmax(0, 1fr); }
  .carousel { grid-auto-columns: 82%; gap: 14px; }
  .carousel-nav { display: none; }
  .panel { padding: 20px; }
  .w-days { grid-template-columns: repeat(7, minmax(58px, 1fr)); overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
  .w-days::-webkit-scrollbar { display: none; }
  .w-extra { margin-left: 0; width: 100%; grid-auto-flow: column; grid-template-rows: auto auto; grid-template-columns: none; justify-content: space-between; }
  .w-extra span { font-size: 12px; }
  .w-icon svg { width: 64px; height: 64px; }
  .near-list { grid-template-columns: minmax(0, 1fr); }
  .p-cam { min-height: 260px; }
  .phone { width: min(300px, 86vw); height: 600px; border-radius: 44px; }
  .ph-float { display: none; }
  .manage { border-radius: var(--r-xl); }
  .review { padding: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .toasts { left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); }
  .toast { min-width: 0; max-width: none; }
  /* modale come bottom sheet */
  .modal { place-items: end center; padding: 0; }
  .modal-box { grid-template-columns: minmax(0, 1fr); border-radius: 28px 28px 0 0; max-height: 92svh; transform: translateY(100%); transition: transform .6s var(--ease); }
  .modal-media { min-height: 180px; }
  .modal-body { padding: 20px 20px calc(24px + var(--safe-b)); }
  .modal-body h3 { font-size: 28px; }
  .sheet-grip { display: block; justify-self: center; width: 44px; height: 5px; border-radius: 5px; background: var(--slate-200); margin: -6px 0 -4px; }
}

/* Telefoni piccoli (iPhone SE, Android compatti, pieghevoli chiusi) */
@media (max-width: 380px) {
  :root { --gutter: 12px; }
  .logo { font-size: 18px; }
  .logo-mark { width: 30px; height: 30px; }
  .lang-btn { padding: 0 9px; }
  .hero h1 { font-size: 40px; }
  .search { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .stat { display: flex; align-items: center; gap: 16px; }
  .stat p { margin: 0; }
  .prop .meta { font-size: 12.5px; }
  .ph-actions button { font-size: 11.5px; }
  .countdown b { font-size: 20px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Telefono in orizzontale: poco spazio in altezza */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: auto; padding: calc(90px + var(--safe-t)) 0 100px; }
  .hero h1 { font-size: clamp(40px, 7vw, 64px); }
  .hero-sub { font-size: 15px; margin-top: 14px; }
  .search { margin-top: 28px; }
  .hero-scroll { display: none; }
  .mobile-menu { padding-top: calc(76px + var(--safe-t)); overflow-y: auto; }
  .mobile-menu nav { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .mobile-menu nav a { font-size: 26px; }
  .modal-box { max-height: 96svh; }
  .modal-media { min-height: 120px; }
  .phone-stage { position: static; }
  .wrap { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* Dispositivi touch: niente effetti che dipendono dal mouse */
@media (hover: none) {
  .spot::after, .prop-media .glare { display: none; }
  .tile-go { opacity: 1; transform: none; }
  .carousel { cursor: auto; }
  .exp:hover, .rent:hover, .review:hover, .stat:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .hero-sub, .hero-actions, .search, .hero-badge, .float-card { opacity: 1 !important; transform: none !important; }
  .hero h1 .line > span { transform: none; }
  .wfx, .cloud { display: none; }
}

@media print {
  .nav, .preloader, .progress, .toasts, .modal, .waves, .hero-slides { display: none !important; }
  .hero { color: var(--ink); min-height: auto; }
}
