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

:root {
  --bg:     #0e0e0e;
  --bg2:    #161616;
  --bg3:    #1f1f1f;
  --bg4:    #252525;
  --red:    #c0392b;
  --red2:   #e74c3c;
  --gold:   #c9963a;
  --text:   #e8e8e8;
  --muted:  #888;
  --subtle: #444;
  --border: #2a2a2a;
  --gap:    2px;
  --max-w:  1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

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

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,14,14,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo-wrap { display: flex; flex-direction: column; gap: 1px; }
.logo-name { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 5px; color: var(--text); line-height: 1; }
.logo-sub  { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }

.header-social { display: flex; gap: 10px; align-items: center; }
.soc-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border); padding: 6px 13px;
  border-radius: 20px; transition: color .2s, border-color .2s; white-space: nowrap;
}
.soc-link:hover { color: var(--text); border-color: var(--subtle); }
.soc-link img { width: 14px; height: 14px; object-fit: contain; filter: brightness(0.55); transition: filter .2s; }
.soc-link:hover img { filter: brightness(1); }
.soc-link svg { width: 16px; height: 16px; flex-shrink: 0; display: block; opacity: 0.85; transition: opacity .2s; }
.soc-link:hover svg { opacity: 1; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden; height: 280px;
  display: flex; align-items: flex-end; padding: 0 40px 36px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://www.nightrain.it/assets/imgs/ns_header.jpg');
  background-size: cover; background-position: center 40%;
  filter: brightness(0.55); transform: scale(1.04);
  transition: transform 10s ease; will-change: transform;
}
.hero:hover .hero-bg { transform: scale(1.0); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(14,14,14,0.1) 0%, rgba(14,14,14,0.9) 100%); }
.hero-glow { position: absolute; top: -100px; right: -100px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(192,57,43,0.13) 0%, transparent 65%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--red2); margin-bottom: 8px; }
.hero-title { font-family: 'Bebas Neue', sans-serif; font-size: 84px; letter-spacing: 6px; line-height: 0.92; color: var(--text); }
.hero-title em { font-style: normal; color: var(--red2); }
.hero-address { position: absolute; bottom: 42px; right: 40px; z-index: 1; text-align: right; }
.hero-address p { font-size: 11px; letter-spacing: 2px; color: var(--muted); }

/* ══════════════════════════════════════
   STATS BAR
══════════════════════════════════════ */
.stats-bar { background: var(--bg2); border-bottom: 1px solid var(--border); display: flex; justify-content: space-around; align-items: stretch; }
.stat-item { flex: 1; text-align: center; padding: 20px 12px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: 'Bebas Neue', sans-serif; font-size: 36px; letter-spacing: 2px; color: var(--red2); line-height: 1; display: block; }
.stat-label  { font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); display: block; margin-top: 4px; }

/* ══════════════════════════════════════
   ANCHOR NAV
══════════════════════════════════════ */
.anchor-nav {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 0 40px; display: flex; align-items: stretch;
  position: sticky; top: 60px; z-index: 90;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.anchor-nav::-webkit-scrollbar { display: none; }
.anchor-btn {
  font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted);
  padding: 16px 22px; cursor: pointer; border: none; background: none;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
  white-space: nowrap; min-height: 48px;
}
.anchor-btn:hover { color: var(--text); }
.anchor-btn.active { color: var(--text); border-bottom-color: var(--red); }

/* Variante CTA per accedere all'area riservata (link esterno, non scroll-anchor) */
.anchor-btn-club {
  display: inline-flex; align-items: center;
  color: var(--gold);
  margin-left: auto;
  border-bottom-color: transparent;
}
.anchor-btn-club:hover { color: var(--text); border-bottom-color: var(--gold); }
.anchor-btn-club svg { color: currentColor; }

/* ══════════════════════════════════════
   LAYOUT
══════════════════════════════════════ */
.content { max-width: var(--max-w); margin: 0 auto; padding: 0 40px 120px; }
.block { margin-top: 64px; }
.section-label { font-family: 'Bebas Neue', sans-serif; font-size: 10px; letter-spacing: 4px; color: var(--red); text-transform: uppercase; margin-bottom: 6px; }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: 38px; letter-spacing: 2px; color: var(--text); padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 2px; }

.panel { background: var(--bg2); padding: 28px 32px; }
.panel + .panel { margin-top: var(--gap); }
.panel h3 { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 2px; color: var(--text); margin-bottom: 16px; }
.panel p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.panel p strong { color: var(--text); font-weight: 500; }
.panel.accent-left { border-left: 3px solid var(--red); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: stretch; }
.two-col .panel { display: flex; flex-direction: column; }
.two-col .panel > .cta-stack,
.two-col .panel > .struttura-badge { margin-top: auto; }

/* ══════════════════════════════════════
   ORARI
══════════════════════════════════════ */
.orari-table { width: 100%; border-collapse: collapse; }
.orari-table tr { border-bottom: 1px solid var(--border); }
.orari-table tr:last-child { border-bottom: none; }
.orari-table td { padding: 11px 0; font-size: 13px; }
.orari-table .day { color: var(--muted); }
.orari-table .time { color: var(--text); font-weight: 500; text-align: right; }
.orari-table .closed { color: var(--red); font-weight: 500; text-align: right; }

.cta-phone,
.cta-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; color: white;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  border-radius: 2px; transition: background .2s;
  height: 48px; box-sizing: border-box; line-height: 1;
}
.cta-phone { background: var(--red); margin-top: 20px; }
.cta-phone:hover { background: var(--red2); }
.cta-whatsapp { background: #25D366; }
.cta-whatsapp:hover { background: #1ebe5d; }
.cta-phone svg,
.cta-whatsapp svg { width: 18px; height: 18px; flex-shrink: 0; display: block; }

.cta-stack {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  margin-top: 20px; width: 100%; max-width: 280px;
}
.cta-stack .cta-phone,
.cta-stack .cta-whatsapp { width: 100%; height: 42px; padding: 10px 18px; font-size: 11px; }
.cta-stack .cta-phone { margin-top: 0; }
.cta-stack .cta-phone svg,
.cta-stack .cta-whatsapp svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════
   PERCHÉ SCEGLIERCI
══════════════════════════════════════ */
.perche-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: var(--gap); }
.perche-card { background: var(--bg2); padding: 24px 20px; text-align: center; transition: background .2s; }
.perche-card:hover { background: var(--bg3); }
.perche-icon { font-size: 26px; display: block; margin-bottom: 12px; line-height: 1; }
.perche-title { font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: 2px; color: var(--text); margin-bottom: 8px; }
.perche-desc { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ══════════════════════════════════════
   MAPPA
══════════════════════════════════════ */
.map-strip { background: var(--bg2); margin-top: var(--gap); }
.map-meta { padding: 16px 28px; display: flex; gap: 28px; flex-wrap: wrap; }
.map-meta-item { font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.map-meta-item strong { color: var(--subtle); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 3px; }
.map-frame { width: 100%; height: 240px; border: none; display: block; filter: grayscale(100%) invert(90%) contrast(85%); opacity: 0.7; }

/* ══════════════════════════════════════
   REDWOOD
══════════════════════════════════════ */
.redwood-strip { background: var(--bg2); border: 1px solid var(--border); padding: 18px 28px; display: flex; align-items: center; gap: 24px; margin-top: 32px; transition: border-color .2s; }
.redwood-strip:hover { border-color: var(--subtle); }
.redwood-strip img { height: 32px; width: auto; object-fit: contain; opacity: 0.65; transition: opacity .2s; flex-shrink: 0; }
.redwood-strip:hover img { opacity: 1; }
.redwood-strip p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.redwood-strip strong { color: var(--text); }

/* ══════════════════════════════════════
   SALE ORARIE
══════════════════════════════════════ */
.sale-scroll-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sale-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.sale-card { background: var(--bg2); padding: 28px; transition: background .2s; display: flex; flex-direction: column; }
.sale-card:hover { background: var(--bg3); }
.sala-tag { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); border: 1px solid var(--red); padding: 3px 8px; border-radius: 2px; align-self: flex-start; margin-bottom: 16px; }
.sala-name { font-family: 'Bebas Neue', sans-serif; font-size: 52px; letter-spacing: 4px; color: var(--text); line-height: 1; margin-bottom: 4px; }
.sala-size { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.sala-price { font-family: 'Bebas Neue', sans-serif; font-size: 56px; color: var(--red2); line-height: 1; }
.sala-price-unit { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--muted); font-weight: 300; }
.sala-desc { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 14px; flex: 1; }
.sala-desc strong { color: var(--text); }
.sala-tariffe { font-size: 11px; color: var(--subtle); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); line-height: 1.85; }
.sala-tariffe strong { color: var(--muted); }
.sala-gallery-btn { margin-top: 20px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); cursor: pointer; background: none; border: none; text-align: left; transition: color .2s; padding: 8px 0; min-height: 44px; display: flex; align-items: center; gap: 6px; }
.sala-gallery-btn:hover { color: var(--text); }
.sala-gallery-btn::after { content: '→'; }

/* ══════════════════════════════════════
   PHOTO GRID
══════════════════════════════════════ */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: var(--gap); }
.photo-thumb { aspect-ratio: 4/3; overflow: hidden; cursor: pointer; background: var(--bg3); position: relative; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, filter .4s ease; filter: brightness(0.75) saturate(0.6); }
.photo-thumb:hover img { transform: scale(1.05); filter: brightness(1) saturate(1); }
.photo-thumb-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; background: rgba(0,0,0,0.25); }
.photo-thumb:hover .photo-thumb-overlay { opacity: 1; }
.photo-thumb-overlay span { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: white; }

/* ══════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════ */
.lightbox { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.94); align-items: center; justify-content: center; flex-direction: column; touch-action: none; }
.lightbox.open { display: flex; }
.lightbox-img-wrap { max-width: 92vw; max-height: 78vh; display: flex; align-items: center; justify-content: center; user-select: none; }
.lightbox-img { max-width: 92vw; max-height: 78vh; object-fit: contain; display: block; pointer-events: none; }
.lightbox-close { position: fixed; top: 16px; right: 20px; font-size: 32px; color: var(--muted); cursor: pointer; background: none; border: none; line-height: 1; transition: color .2s; padding: 8px; min-width: 48px; min-height: 48px; display: flex; align-items: center; justify-content: center; z-index: 1001; }
.lightbox-close:hover { color: var(--text); }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.06); border: none; color: var(--text); font-size: 20px; padding: 24px 18px; cursor: pointer; transition: background .2s; min-height: 80px; z-index: 1001; }
.lightbox-nav:hover { background: rgba(255,255,255,0.12); }
.lightbox-prev { left: 0; border-radius: 0 2px 2px 0; }
.lightbox-next { right: 0; border-radius: 2px 0 0 2px; }
.lightbox-meta { margin-top: 16px; text-align: center; }
.lightbox-counter { font-size: 11px; letter-spacing: 3px; color: var(--subtle); }
.lightbox-label { margin-top: 5px; font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 4px; color: var(--muted); }

/* ══════════════════════════════════════
   EQUIPMENT BANNER
══════════════════════════════════════ */
.equipment-banner { background: var(--bg2); border-left: 3px solid var(--gold); padding: 20px 28px; margin-top: var(--gap); }
.eq-label { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.equipment-banner p { font-size: 12px; color: var(--muted); line-height: 2; }
.equipment-banner strong { color: var(--text); font-weight: 500; }

/* ══════════════════════════════════════
   MENSILI
══════════════════════════════════════ */
.mensili-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.mensile-card { background: var(--bg2); padding: 24px 14px; text-align: center; transition: background .2s; }
.mensile-card:hover { background: var(--bg3); }
.m-number { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--subtle); margin-bottom: 10px; }
.m-name   { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 2px; color: var(--muted); line-height: 1; margin-bottom: 4px; }
.m-size   { font-size: 10px; letter-spacing: 1px; color: var(--subtle); margin-bottom: 18px; }
.m-price  { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--text); line-height: 1; }
.m-unit   { font-size: 10px; color: var(--muted); letter-spacing: 1px; margin-top: 3px; }

.mensili-note { background: var(--bg2); padding: 18px 28px; margin-top: var(--gap); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mensili-note p { font-size: 12px; color: var(--muted); line-height: 1.7; }
.mensili-note strong { color: var(--text); }

/* ══════════════════════════════════════
   RECENSIONI
══════════════════════════════════════ */
.reviews-wrap { margin-top: var(--gap); }
.reviews-widget {
  background: var(--bg2);
  border-left: 3px solid var(--gold);
  padding: 28px 32px;
  min-height: 180px;
}
.reviews-widget > *:not(.reviews-fallback) { width: 100%; }

.reviews-fallback {
  text-align: center;
  padding: 20px 8px;
  color: var(--muted);
}
.reviews-fallback-stars {
  font-size: 22px;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 14px;
  line-height: 1;
}
.reviews-fallback p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.reviews-fallback a {
  color: var(--gold);
  border-bottom: 1px solid var(--subtle);
  transition: color .2s, border-color .2s;
}
.reviews-fallback a:hover {
  color: var(--text);
  border-bottom-color: var(--gold);
}

/* Badge "La struttura" — versione compatta del widget Trustindex */
.struttura-badge {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.struttura-badge-label {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}
.struttura-badge-widget {
  min-height: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  zoom: 0.78;
  -moz-transform: scale(0.78);
  -moz-transform-origin: left top;
}
.struttura-badge-widget > * { max-width: 100%; }

/* ══════════════════════════════════════
   MOBILE CTA FISSO
══════════════════════════════════════ */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--red); color: white; text-align: center; padding: 16px 20px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; border-top: 2px solid rgba(255,255,255,0.08); min-height: 56px; transition: background .2s, opacity .3s; align-items: center; justify-content: center; gap: 8px; }
.mobile-cta:hover { background: var(--red2); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 48px 40px 28px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 32px; }
.footer-col h4 { font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: 3px; color: var(--subtle); margin-bottom: 16px; }
.footer-col p, .footer-col a { font-size: 12px; color: var(--muted); line-height: 2.2; display: block; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 10px; letter-spacing: 1.5px; color: var(--subtle); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .perche-grid { grid-template-columns: repeat(2, 1fr); }
  .mensili-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .site-header { padding: 0 16px; height: 56px; }
  .anchor-nav { top: 56px; padding: 0 8px; }
  .content { padding: 0 16px 96px; }
  .block { margin-top: 48px; }
  .hero { height: 220px; padding: 0 16px 24px; }
  .hero-title { font-size: 56px; letter-spacing: 4px; }
  .hero-address { display: none; }
  .hero-glow { display: none; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .stat-number { font-size: 30px; }
  .two-col { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .map-meta { padding: 12px 16px; gap: 16px; }
  .map-frame { height: 200px; }
  .perche-grid { grid-template-columns: repeat(2, 1fr); }
  .perche-card { padding: 18px 14px; }
  .sale-scroll-wrap { margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .sale-scroll-wrap::-webkit-scrollbar { display: none; }
  .sale-grid { grid-template-columns: repeat(3, 76vw); min-width: max-content; }
  .sale-card { padding: 20px; }
  .sala-name { font-size: 42px; }
  .sala-price { font-size: 46px; }
  .photo-grid { gap: 1px; }
  .mensili-grid { grid-template-columns: repeat(2, 1fr); }
  .mensili-note { flex-direction: column; align-items: flex-start; }
  .reviews-widget { padding: 20px; }
  .reviews-fallback-stars { font-size: 18px; letter-spacing: 4px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding: 32px 16px 80px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .soc-link span { display: none; }
  .soc-link { padding: 6px 10px; }
  .mobile-cta { display: flex; }
  .redwood-strip { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-title { font-size: 30px; }
  .lightbox-nav { padding: 20px 14px; font-size: 18px; }
}

@media (max-width: 390px) {
  .hero { height: 180px; padding: 0 14px 20px; }
  .hero-title { font-size: 46px; }
  .sale-grid { grid-template-columns: repeat(3, 82vw); }
  .anchor-btn { padding: 14px 14px; font-size: 9px; letter-spacing: 1.5px; }
}
