/* ============================================================
   PRAIANO SUNSET SUITES — styles.css
   Praiano Sunset Suites & Apartments v1.0
   Senior Creative Developer — Ultra-Minimal Luxury
   ============================================================ */

/* ── Google Fonts ── */
@import url(\'https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500&display=swap\');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg: #FFFFFF;
  --bg-elevated: #F4F7F9;
  --bg-dark: #002D62;
  --text-primary: #1A1A1A;
  --text-muted:    #7A7A7A;
  --accent: #E3B04B;
  --accent-light:  #F2C94C;
  --border:        rgba(26, 26, 26, 0.08);
  --border-strong: rgba(26, 26, 26, 0.16);

  --serif:  \'Cormorant Garamond\', Georgia, \'Times New Roman\', serif;
  --sans:   \'Inter\', -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.76, 0, 0.24, 1);

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;
  --space-2xl: 11rem;

  --container: 1280px;
  --gutter:    clamp(1.5rem, 5vw, 5rem);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

body.preloader-active {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: none;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   GRAIN OVERLAY
   ============================================================ */
.grain-overlay {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox=\'0 0 512 512\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cfilter id=\'n\'%3E%3CfeTurbulence type=\'fractalNoise\' baseFrequency=\'0.75\' numOctaves=\'4\' stitchTiles=\'stitch\'/%3E%3C/filter%3E%3Crect width=\'100%25\' height=\'100%25\' filter=\'url(%23n)\'/%3E%3C/svg%3E");
  background-repeat: repeat;
  animation: grain-move 0.15s steps(1) infinite;
}

@keyframes grain-move {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-2%, -3%); }
  20%  { transform: translate(3%, 1%); }
  30%  { transform: translate(-1%, 4%); }
  40%  { transform: translate(4%, -2%); }
  50%  { transform: translate(-3%, 2%); }
  60%  { transform: translate(2%, -4%); }
  70%  { transform: translate(-4%, 1%); }
  80%  { transform: translate(1%, 3%); }
  90%  { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  top: 0;
  left: 0;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
  top: 0;
  left: 0;
  transition: width 0.35s var(--ease-out-expo),
              height 0.35s var(--ease-out-expo),
              border-color 0.35s ease,
              background-color 0.35s ease,
              opacity 0.3s ease;
}

.cursor-ring.is-hovering {
  width: 60px;
  height: 60px;
  background: rgba(227, 176, 75, 0.06);
  border-color: var(--accent);
}

.cursor-ring.is-clicking {
  width: 28px;
  height: 28px;
}

@media (hover: none) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
  body {
    cursor: auto;
  }
  button { cursor: pointer; }
  a { cursor: pointer; }
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: transform 1s var(--ease-in-out);
}

#preloader.slide-out {
  transform: translateY(-100%);
}

.preloader-logo {
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: translateY(16px);
  animation: preloader-appear 0.9s var(--ease-out-expo) 0.3s forwards;
}

.preloader-tagline {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
  opacity: 0;
  text-align: center;
  max-width: 90vw;
  line-height: 1.6;
  animation: preloader-appear 0.9s var(--ease-out-expo) 0.6s forwards;
}

@keyframes preloader-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preloader-line {
  width: 1px;
  height: 0;
  background: var(--accent);
  opacity: 0.4;
  animation: line-grow 1s var(--ease-out-expo) 0.8s forwards;
}

@keyframes line-grow {
  from { height: 0; opacity: 0; }
  to   { height: 40px; opacity: 0.4; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 7000;
  padding: 1.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s ease,
              backdrop-filter 0.5s ease,
              padding 0.4s ease,
              box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  transform: translateZ(0); /* Fix per il lag */
  padding-top: 1rem;
  padding-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.navbar-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.navbar-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.navbar-name .label {
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.navbar-name .name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-cta {
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--border-strong);
  transition: color 0.4s ease, border-color 0.4s ease;
  display: none;
}

.navbar-cta::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

@media (min-width: 900px) {
  .navbar-cta { display: inline-block; }
}

.navbar-cta:hover {
  color: #fff;
  border-color: var(--accent);
}

.navbar-cta:hover::before {
  width: 100%;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: none;
}

.hamburger span {
  display: block;
  height: 1px;
  background: var(--text-primary);
  transition: all 0.4s var(--ease-out-expo);
}

.hamburger span:nth-child(1) { width: 28px; }
.hamburger span:nth-child(2) { width: 20px; }
.hamburger span:nth-child(3) { width: 24px; }

.hamburger:hover span { width: 28px !important; }

.hamburger.is-open span:nth-child(1) {
  width: 28px;
  transform: translateY(6px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open span:nth-child(3) {
  width: 28px;
  transform: translateY(-6px) rotate(-45deg);
}

#nav-menu {
  position: fixed;
  inset: 0;
  z-index: 6500;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-in-out),
              visibility 0.5s var(--ease-in-out);
}

#nav-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-menu-item {
  overflow: hidden;
}

.nav-menu-link {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  line-height: 1.2;
  transform: translateY(100%);
  transition: transform 0.7s var(--ease-out-expo), color 0.3s ease;
}

#nav-menu.is-open .nav-menu-link {
  transform: translateY(0);
}

#nav-menu.is-open .nav-menu-item:nth-child(1) .nav-menu-link { transition-delay: 0.05s; }
#nav-menu.is-open .nav-menu-item:nth-child(2) .nav-menu-link { transition-delay: 0.10s; }
#nav-menu.is-open .nav-menu-item:nth-child(3) .nav-menu-link { transition-delay: 0.15s; }
#nav-menu.is-open .nav-menu-item:nth-child(4) .nav-menu-link { transition-delay: 0.20s; }
#nav-menu.is-open .nav-menu-item:nth-child(5) .nav-menu-link { transition-delay: 0.25s; }
#nav-menu.is-open .nav-menu-item:nth-child(6) .nav-menu-link { transition-delay: 0.30s; }

.nav-menu-link:hover {
  color: var(--accent);
}

.nav-menu-footer {
  margin-top: 3rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.5s ease 0.4s;
}

#nav-menu.is-open .nav-menu-footer {
  opacity: 1;
}

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: \'\';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.01em;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease-out-expo),
              transform 1.2s var(--ease-out-expo);
}

[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.94); }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }
[data-reveal-delay="6"] { transition-delay: 0.6s; }
[data-reveal-delay="7"] { transition-delay: 0.7s; }
[data-reveal-delay="8"] { transition-delay: 0.8s; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-media img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center 30%;
  transform: translateY(var(--parallax-y, 0px));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 20, 16, 0.72) 0%,
    rgba(20, 20, 16, 0.2) 50%,
    rgba(20, 20, 16, 0.05) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) var(--space-xl);
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: \'\';
  display: block;
  width: 36px;
  height: 1px;
  background: rgba(255,255,255,0.4);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}

.hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: #fff;
  padding: 1rem 2.2rem;
  display: inline-block;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: none;
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: none;
  transition: color 0.3s ease;
}

.btn-ghost svg {
  transition: transform 0.4s var(--ease-out-expo);
}

.btn-ghost:hover { color: #fff; }
.btn-ghost:hover svg { transform: translateX(6px); }

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
}

.hero-scroll-indicator span {
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, #fff, transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   ANIMA
   ============================================================ */
#anima {
  padding: var(--space-2xl) 0;
  background: var(--bg);
}

.anima-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

@media (max-width: 900px) {
  .anima-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.anima-text { max-width: 520px; }

.anima-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 1.2rem 0 2rem;
}

.anima-body {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.anima-body-plain {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.anima-signature {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.anima-signature-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
}

.anima-signature-role {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.anima-image-main {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 200px 200px 0 0;
  overflow: hidden;
  background: var(--bg-elevated);
}

.anima-image-wrap { position: relative; }

.anima-image-accent {
  position: absolute;
  bottom: -3rem;
  left: -3rem;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 200px 200px 0 0;
  overflow: hidden;
  border: 6px solid var(--bg);
  background: var(--bg-elevated);
}

/* ============================================================
   PISCINA
   ============================================================ */
#piscina {
  padding: var(--space-2xl) 0;
  background: var(--bg-elevated);
  overflow: hidden;
}

.piscina-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .piscina-inner { grid-template-columns: 1fr; gap: 3rem; }
}

.piscina-text { max-width: 460px; }

.piscina-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  margin: 1.2rem 0 1.8rem;
}

.piscina-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.piscina-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.piscina-stat-number {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

.piscina-stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.piscina-media { position: relative; }

.piscina-image-main {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 200px 200px 0 0;
  overflow: hidden;
  will-change: transform;
  background: var(--bg);
}

.piscina-image-main img {
  height: 110%;
  transform: translateY(var(--parallax-y-pool, 0px));
}

.piscina-badge {
  position: absolute;
  top: 3rem;
  left: -2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1.2rem 1.6rem;
  min-width: 160px;
}

.piscina-badge-value {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-primary);
}

.piscina-badge-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   CAMERE
   ============================================================ */
#camere {
  padding: var(--space-2xl) 0;
  background: var(--bg);
}

.camere-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.camere-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-top: 1rem;
}

.camere-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
  max-width: 300px;
  line-height: 1.7;
}

.camere-track-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow-x: scroll;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-top: 4rem;
  padding-bottom: 2rem;
  cursor: grab;
}

.camere-track-wrap::-webkit-scrollbar { display: none; }

.camere-track {
  display: flex;
  gap: 1.5rem;
  padding-inline: var(--gutter);
  width: max-content;
  padding-bottom: 0.5rem;
}

.camera-card {
  position: relative;
  flex-shrink: 0;
  width: clamp(280px, 28vw, 400px);
  scroll-snap-align: start;
  overflow: hidden;
  cursor: none;
  background: var(--bg-elevated);
}

.camera-card-media {
  aspect-ratio: 4/5;
  overflow: hidden;
}

.camera-card-media img {
  transition: transform 0.9s var(--ease-out-expo);
}

.camera-card:hover .camera-card-media img {
  transform: scale(1.06);
}

.camera-card-body {
  padding: 1.8rem 1.6rem;
  border-top: 1px solid var(--border);
}

.camera-card-number {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.camera-card-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.camera-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.camera-card-features {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.camera-tag {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
}

.camera-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ============================================================
   TERRITORIO (Horizontal Scroll)
   ============================================================ */
#territorio {
  padding: var(--space-2xl) 0 0;
  background: var(--bg-elevated);
  overflow: hidden;
}

.territorio-header { padding-bottom: 3rem; }

.territorio-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  margin-top: 1rem;
}

.territorio-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.7;
  margin-top: 1rem;
}

.territorio-track-wrap {
  overflow-x: scroll;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: var(--space-xl);
  cursor: none;
}

.territorio-track-wrap::-webkit-scrollbar { display: none; }

.territorio-track {
  display: flex;
  gap: 1.5rem;
  padding-inline: var(--gutter);
  width: max-content;
  padding-bottom: 0.5rem;
}

.territorio-card {
  flex-shrink: 0;
  width: clamp(220px, 22vw, 300px);
  cursor: none;
}

.territorio-card-media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 1.2rem;
}

.territorio-card-media img {
  transition: transform 0.9s var(--ease-out-expo);
}

.territorio-card:hover .territorio-card-media img {
  transform: scale(1.07);
}

.territorio-card-distance {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.territorio-card-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.territorio-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.territorio-drag-hint {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-inline: var(--gutter);
  padding-bottom: 3rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.territorio-drag-hint::after {
  content: \'\';
  display: block;
  height: 1px;
  flex: 1;
  background: var(--border-strong);
}

/* ============================================================
   SERVIZI
   ============================================================ */
#servizi {
  padding: var(--space-2xl) 0;
  background: var(--bg);
}

.servizi-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}

@media (max-width: 900px) {
  .servizi-inner { grid-template-columns: 1fr; gap: 3rem; }
}



.servizi-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-top: 1.5rem;
  max-width: 340px;
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.servizio-item {
  padding: 2.5rem 2rem;
  background: var(--bg);
  transition: background 0.35s ease;
  height: 100%;
}

.servizio-item:hover { background: var(--bg-elevated); }

.servizio-icon {
  margin-bottom: 1.2rem;
  color: var(--accent);
}

.servizio-icon svg { width: 28px; height: 28px; }

.servizio-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.servizio-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(20, 20, 16, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: none;
  transition: color 0.3s ease;
  background: none;
  border: none;
  font-family: var(--sans);
}

.lightbox-close:hover { color: #fff; }

.lightbox-close-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  transition: border-color 0.3s ease;
}

.lightbox-close:hover .lightbox-close-icon { border-color: rgba(255,255,255,0.6); }

.lightbox-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2rem;
  max-width: 100%;
  align-items: center;
}

.lightbox-track::-webkit-scrollbar { display: none; }

.lightbox-img-wrap {
  flex-shrink: 0;
  height: 80vh;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.lightbox-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.lightbox-caption h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 300;
  color: #fff;
}

.lightbox-caption p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  width: calc(100% - 4rem);
  left: 2rem;
  pointer-events: none;
}

.lightbox-btn {
  pointer-events: all;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
  cursor: none;
  border-radius: 50%;
}

.lightbox-btn:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

/* ============================================================
   CTA
   ============================================================ */
#cta {
  padding: var(--space-2xl) 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.cta-bg-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.cta-bg-text span {
  font-family: var(--serif);
  font-size: clamp(8rem, 20vw, 20rem);
  font-weight: 300;
  color: rgba(255,255,255,0.03);
  white-space: nowrap;
  letter-spacing: -0.02em;
  user-select: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.cta-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  margin-bottom: 3rem;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: #fff;
  padding: 1.1rem 2.6rem;
  cursor: none;
}

.btn-wa svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand-logo {
  filter: brightness(0) invert(1);
  opacity: 0.8;
  width: 140px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.footer-brand-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.75;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s ease;
}

.footer-links a:hover { color: #fff; }

.footer-contact-item {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.55);
  transition: color 0.3s ease;
}

.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.05em;
}

.footer-legal { display: flex; gap: 1.5rem; }

.footer-legal a {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  transition: color 0.3s ease;
  letter-spacing: 0.05em;
}

.footer-legal a:hover { color: rgba(255,255,255,0.5); }

/* ============================================================
   PLACEHOLDERS
   ============================================================ */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e5e0 0%, #d5d0c8 50%, #c8c2b8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
}

.img-placeholder-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.3);
}

/* ============================================================
   RESPONSIVE MISC
   ============================================================ */
@media (max-width: 640px) {
  .hero-cta-group { flex-direction: column; align-items: flex-start; }
  .camere-header { flex-direction: column; align-items: flex-start; }
  .camere-meta { text-align: left; }
  .anima-image-accent { display: none; }
  .piscina-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .servizi-grid {
    grid-template-columns: 1fr;
  }
  .servizio-item {
    padding: 1.5rem 1.5rem;
  }
}

.vietri-pattern {
  position: relative;
}
.vietri-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('ASSETS/TERRITORIO/pattern_vietri.png');
  background-size: 300px;
  background-repeat: repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}
.vietri-pattern > * {
  position: relative;
  z-index: 1;
}

#territorio {
  position: relative;
}
#territorio::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('ASSETS/TERRITORIO/pattern_vietri.png');
  background-size: 200px;
  background-repeat: repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}
#territorio > * {
  position: relative;
  z-index: 1;
}

#preloader::before,
#nav-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('ASSETS/TERRITORIO/pattern_vietri.png');
  background-size: 200px;
  background-repeat: repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}
#preloader > *,
#nav-menu > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   PORTAL (HUB & SPOKE)
   ============================================================ */
.portal-container {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-dark);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.portal-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  pointer-events: none;
}
.portal-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.portal-grid {
  display: flex;
  height: 100%;
  width: 100%;
}
.portal-panel {
  flex: 1;
  position: relative;
  border-right: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 3rem 2rem;
  text-decoration: none;
  color: #fff;
  transition: flex 0.6s var(--ease-out-expo);
  background-size: cover;
  background-position: center;
  background-color: var(--bg-dark);
}
.portal-panel:last-child {
  border-right: none;
}
.portal-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,45,98,0.95) 0%, rgba(0,45,98,0.4) 50%, rgba(0,45,98,0.2) 100%);
  transition: background 0.6s ease;
  z-index: 1;
}
.portal-panel:hover {
  flex: 1.5;
}
.portal-panel:hover::before {
  background: linear-gradient(to top, rgba(0,45,98,0.85) 0%, rgba(0,45,98,0.2) 50%, transparent 100%);
}
.portal-panel-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.portal-panel-subtitle {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}
.portal-panel-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 300;
  line-height: 1.1;
}

@media (max-width: 900px) {
  .portal-grid {
    flex-direction: column;
  }
  .portal-panel {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 1.5rem;
  }
}

/* ============================================================
   RECENSIONI (REVIEWS)
   ============================================================ */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 45, 98, 0.1);
}
.reviews-score {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.reviews-details h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--bg-dark);
  font-family: 'Cormorant Garamond', serif;
}
.reviews-details p {
  color: var(--text-muted);
  font-size: 1rem;
}
.reviews-track-wrap {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2rem;
  scrollbar-width: none;
  cursor: grab;
}
.reviews-track-wrap::-webkit-scrollbar {
  display: none;
}
.reviews-track-wrap:active {
  cursor: grabbing;
}
.reviews-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding-right: 2rem;
}
.review-card {
  width: 320px;
  background: var(--bg-elevated);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  white-space: normal;
  display: flex;
  flex-direction: column;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.review-avatar {
  width: 45px;
  height: 45px;
  background: var(--bg-dark);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
}
.review-meta h4 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--bg-dark);
}
.review-meta p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-muted);
}
.review-stars {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.review-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  flex-grow: 1;
  font-style: italic;
}

/* ============================================================
   RECENSIONI - STELLE & BOTTONE
   ============================================================ */
.reviews-summary-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 45, 98, 0.1);
  flex-wrap: wrap;
  gap: 2rem;
}
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  border: none;
}
.btn-reviews {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  background-color: var(--bg-dark);
  color: var(--bg);
  border: 1px solid var(--bg-dark);
  border-radius: 30px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-reviews:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
}
.review-stars {
  display: flex;
  gap: 4px;
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.star-anim {
  opacity: 0;
  transform: scale(0.3) rotate(-20deg);
}
.is-revealed .star-anim {
  animation: popStar 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popStar {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-20deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* ============================================================
   ENHANCED ANIMATIONS & HOVERS
   ============================================================ */
/* Img Zooms */
.camera-card-media img, .territorio-card-media img {
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.camera-card:hover .camera-card-media img, 
.territorio-card:hover .territorio-card-media img {
  transform: scale(1.08);
}
.camera-card, .territorio-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.camera-card:hover, .territorio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 45, 98, 0.08);
}

/* Button Pulse */
@keyframes pulseSoft {
  0% { box-shadow: 0 0 0 0 rgba(227, 176, 75, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(227, 176, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 176, 75, 0); }
}
.btn-wa {
  position: relative;
  overflow: hidden;
  z-index: 1;
  animation: pulseSoft 2.5s infinite;
  transition: transform 0.3s ease, color 0.4s ease, gap 0.4s var(--ease-out-expo);
}
.btn-wa::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}
.btn-wa:hover {
  transform: translateY(-3px) scale(1.02);
  color: #fff;
  animation: none;
  box-shadow: 0 10px 20px rgba(227, 176, 75, 0.3);
  gap: 1.2rem;
}
.btn-wa:hover::before {
  width: 100%;
}

/* Star Animation */
.review-stars {
  display: flex;
  gap: 3px;
}
.review-stars .star {
  display: inline-block;
  opacity: 0;
  transform: scale(0.2) rotate(-30deg);
  color: var(--accent);
}
.is-visible.review-stars .star,
.is-visible .review-stars .star,
.review-stars.is-visible .star {
  animation: starPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--i) * 0.1s + 0.1s);
}
@keyframes starPop {
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

/* Button outline */
.btn-outline {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid var(--bg-dark);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  transition: all 0.4s ease;
  background: transparent;
  cursor: pointer;
  margin-top: 2rem;
}
.btn-outline:hover {
  background: var(--bg-dark);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 45, 98, 0.15);
}
.reviews-summary-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Modal Reviews */
.reviews-modal-overlay {
  position: fixed; top:0; left:0; width:100%; height:100%;
  background: rgba(0, 45, 98, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0; visibility: hidden;
  transition: all 0.4s ease;
  display: flex; justify-content: center; align-items: center;
}
.reviews-modal-overlay.is-open {
  opacity: 1; visibility: visible;
}
.reviews-modal-content {
  background: var(--bg);
  width: 95%; max-width: 700px;
  height: 85vh;
  border-radius: 16px;
  padding: 3rem;
  overflow-y: auto;
  transform: translateY(50px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.reviews-modal-overlay.is-open .reviews-modal-content {
  transform: translateY(0) scale(1);
}
.reviews-modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; font-size: 2.5rem;
  line-height: 1;
  cursor: pointer; color: var(--text-muted);
  transition: color 0.3s;
}
.reviews-modal-close:hover { color: var(--text-primary); }

.modal-review-item {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.modal-review-item:last-child { border-bottom: none; }
.modal-review-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem;
}
.modal-review-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--bg-dark); color: var(--bg);
  display: flex; justify-content: center; align-items: center;
  font-weight: 600; font-size: 1.2rem;
}
.modal-review-meta h4 { margin: 0; font-size: 1.2rem; color: var(--bg-dark); }
.modal-review-meta p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.modal-review-text {
  font-size: 1rem; line-height: 1.6; color: var(--text-primary);
  margin-top: 1rem;
}

.reviews-modal-overlay.is-open .review-stars .star {
  animation: starPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--i) * 0.1s + 0.3s);
}

/* Logo floating animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}
.header-logo img {
  animation: float 4s ease-in-out infinite;
}

/* Nav links hover glow */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ============================================================
   RECENSIONI RE-DESIGN
   ============================================================ */
.reviews-detailed-box {
  background: var(--bg-elevated);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

@media (min-width: 900px) {
  .reviews-detailed-box {
    flex-direction: row;
    gap: 4rem;
    align-items: center;
    padding: 3rem;
  }
  .reviews-left {
    flex: 0 0 250px;
    border-right: 1px solid rgba(0,0,0,0.05);
    padding-right: 3rem;
    text-align: center;
    margin-bottom: 0 !important;
  }
}

.reviews-left {
  text-align: center;
  margin-bottom: 2rem;
}

.reviews-big-number {
  font-family: var(--serif);
  font-size: 6rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.reviews-subtitle {
  font-size: 1.5rem;
  color: var(--bg-dark);
  margin-bottom: 0.5rem;
}

.reviews-count {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.reviews-right {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-stat-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-label {
  flex: 0 0 130px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.stat-bar-bg {
  flex-grow: 1;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}

.stat-bar-fg {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

.stat-val {
  flex: 0 0 40px;
  text-align: right;
  font-weight: 600;
  font-size: 1rem;
  color: var(--bg-dark);
}

/* Star Animation */
@keyframes starPop {
  0% { transform: scale(0) rotate(-45deg); opacity: 0; }
  50% { transform: scale(1.3) rotate(10deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.review-stars .star {
  color: #ffc107;
  font-size: 1.3rem;
  opacity: 0;
}

.is-revealed .review-stars .star,
.reviews-track-wrap.is-revealed .star {
  animation: starPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}


.review-card-modal {
  background: var(--bg-elevated);
  padding: 2rem;
  border-radius: 0;
  border: 1px solid rgba(0,0,0,0.05);
}
.review-stars-modal {
  color: #ffc107;
  font-size: 1.2rem;
  margin-left: auto;
  letter-spacing: 2px;
}

/* Section Title specific to Inspo */
.section-subtitle {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.title-separator {
  width: 40px;
  height: 2px;
  background-color: var(--accent);
  margin: 1.5rem auto 3rem auto;
}

/* Fix Modal dialog display in Safari */
dialog

dialog.reviews-modal[open] {
  display: flex !important;
  flex-direction: column !important;
}

/* Fix spacing for the button container */
.reviews-btn-wrap {
  margin-top: 3rem;
  margin-bottom: 3rem;
  text-align: center;
}

/* BULLETPROOF MODAL CSS */
dialog#reviews-modal {
  margin: auto !important;
  padding: 0 !important;
  width: 90vw !important;
  max-width: 800px !important;
  height: 85vh !important;
  max-height: 85vh !important;
  border: none !important;
  border-radius: 0 !important;
  background: var(--bg) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  
  /* Proper centering without transform conflict */
  position: fixed !important;
  inset: 0 !important;
  
  /* Fix cursor issue (top layer blocks custom cursor) */
  cursor: auto !important;
}

dialog#reviews-modal *, dialog#reviews-modal::backdrop {
  cursor: auto !important;
}



dialog#reviews-modal::backdrop {
  background: rgba(0,0,0,0.6) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

dialog#reviews-modal[open] {
  display: flex !important;
  flex-direction: column !important;
}

.rm-content {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

.rm-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 1.5rem 2rem !important;
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  background: var(--bg) !important;
  flex-shrink: 0 !important;
}

.rm-header h3 {
  font-family: var(--serif) !important;
  font-size: 1.8rem !important;
  color: var(--bg-dark) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.rm-close {
  background: none !important;
  border: none !important;
  font-size: 2.5rem !important;
  cursor: pointer !important;
  color: var(--text-muted) !important;
  line-height: 1 !important;
  padding: 0 !important;
}
.rm-close:hover {
  color: var(--accent) !important;
}

.rm-body {
  padding: 2rem !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  flex-grow: 1 !important;
}

/* =========================================
   RE-DESIGNED INFO & AMENITIES SECTION
   ========================================= */
.info-section {
  padding: 6rem 0;
  background-color: var(--bg);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}
.info-col-title {
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.info-block {
  margin-bottom: 2.5rem;
}
.info-block h4 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 0.8rem;
}
.info-block p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.info-block p:last-child {
  margin-bottom: 0;
}

.amenity-highlight-badge {
  display: inline-block;
  background: var(--bg-dark);
  color: var(--bg);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.amenities-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}
.amenities-highlights li {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.amenities-highlights li svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  flex-shrink: 0;
}

/* Modal Specifics */
dialog#amenities-modal {
  margin: auto !important;
  padding: 0 !important;
  width: 90vw !important;
  max-width: 900px !important;
  height: 85vh !important;
  max-height: 85vh !important;
  border: none !important;
  border-radius: 0 !important;
  background: var(--bg) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  position: fixed !important;
  inset: 0 !important;
  cursor: auto !important;
}

dialog#amenities-modal *, dialog#amenities-modal::backdrop {
  cursor: auto !important;
}

dialog#amenities-modal[open] {
  display: flex !important;
  flex-direction: column !important;
}

.amenities-modal-body {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 2rem !important;
  align-content: start !important;
}
.amenity-category {
  margin-bottom: 1rem;
}
.amenity-category h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--bg-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.amenity-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.amenity-category li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  position: relative;
  padding-left: 1rem;
}
.amenity-category li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}


/* Responsive Preloader */
.preloader-logo img {
  height: 85px !important;
  width: auto !important;
  max-width: 90vw;
}
@media (max-width: 768px) {
  .preloader-logo img {
    height: 50px !important;
  }
  .preloader-line {
    height: 30px;
  }
  .preloader-tagline {
    font-size: 0.55rem;
    letter-spacing: 0.25em;
  }
}

/* ============================================================
   LANGUAGE BUTTON & MODAL OVERLAY (FINESTRA SOVRAPPOSTA)
   ============================================================ */
.lang-btn {
  display: inline-block !important;
  background: transparent;
  cursor: pointer;
  line-height: 1;
  text-align: center;
}

.lang-btn:hover {
  color: #fff !important;
  border-color: var(--accent) !important;
}

.lang-btn:hover::before {
  width: 100% !important;
}

#intro-overlay,
.intro-layer,
.intro-blue,
.intro-yellow {
  pointer-events: none !important;
}

.index-lang-btn {
  position: absolute;
  top: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
}

@media (max-width: 600px) {
  .lang-btn {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.15em !important;
  }
  .index-lang-btn {
    top: 1.2rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

/* Modal Overlay Window */
.lang-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 25, 60, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999999 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.lang-modal-overlay.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

/* Fix cursor issue in language modal (overlay blocks custom cursor, restore standard cursor) */
.lang-modal-overlay,
.lang-modal-overlay * {
  cursor: default !important;
}

.lang-modal-close,
.lang-modal-close *,
.lang-modal-option,
.lang-modal-option * {
  cursor: pointer !important;
}

body.lang-modal-active {
  overflow: hidden;
}

body.lang-modal-active .cursor-dot,
body.lang-modal-active .cursor-ring {
  display: none !important;
  opacity: 0 !important;
}

.lang-modal-window {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  box-shadow: 0 25px 60px rgba(0, 45, 98, 0.25);
  padding: 2.2rem 2.2rem 2rem;
  box-sizing: border-box;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-modal-overlay.is-open .lang-modal-window {
  transform: translateY(0) scale(1);
}

.lang-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.lang-modal-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--bg-dark);
  margin: 0;
}

.lang-modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  margin: -0.4rem -0.4rem 0 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.lang-modal-close:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.lang-modal-subtitle {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 1.6rem 0;
  line-height: 1.4;
}

.lang-modal-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lang-modal-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.3rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-strong);
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.lang-modal-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.lang-modal-option:hover {
  border-color: var(--accent);
  color: #fff;
  padding-left: 1.6rem;
}

.lang-modal-option:hover::before {
  width: 100%;
}

.lang-modal-option span {
  position: relative;
  z-index: 1;
}

.lang-modal-option.is-active {
  border-color: var(--accent);
  background: rgba(227, 176, 75, 0.1);
  color: var(--accent);
  font-weight: 600;
}

.lang-modal-option.is-active:hover {
  color: #fff;
}

.lang-opt-badge {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-transform: uppercase;
}

.lang-modal-option:hover .lang-opt-badge {
  border-color: #fff;
  color: #fff;
}

@media (max-width: 600px) {
  .lang-modal-window {
    padding: 1.8rem 1.4rem 1.6rem;
    max-width: 92vw;
  }
  .lang-modal-title {
    font-size: 1.2rem;
  }
  .lang-modal-option {
    padding: 0.8rem 1rem;
    font-size: 0.7rem;
  }
}
