/* ===================================================================
   Élite Holiday Apartments — Catanzaro
   Token system: nero profondo, marmo, venatura oro. Vedi commenti.
   =================================================================== */

:root{
  --bg:            #0c0b0a;
  --bg-elevated:   #17140f;
  --bg-elevated-2: #1e1a14;
  --gold:          #c9a24d;
  --gold-bright:   #e6c877;
  --gold-line:     rgba(201,162,77,.32);
  --ivory:         #f3ede1;
  --muted:         #a89c85;
  --muted-dim:     #6f6558;
  --hairline:      rgba(243,237,225,.12);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Segoe UI', sans-serif;

  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible{
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.grain{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.eyebrow{
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.section-title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
  color: var(--ivory);
}

.body-text{
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 2rem;
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-gold{
  background: var(--gold);
  color: #17140f;
}
.btn-gold:hover{ background: var(--gold-bright); }
.btn-ghost{
  border-color: var(--hairline);
  color: var(--ivory);
  background: transparent;
}
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold); }
.btn-full{ width: 100%; }

/* ---------- header ---------- */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: linear-gradient(to bottom, rgba(12,11,10,.75), transparent);
  transition: background .3s var(--ease), padding .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.is-scrolled{
  background: rgba(12,11,10,.92);
  backdrop-filter: blur(10px);
  padding: .7rem 0;
  border-bottom: 1px solid var(--hairline);
}
.header-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand{
  display: flex;
  align-items: center;
  gap: .65rem;
}
.brand-mark{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.brand-name{
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .03em;
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name em{
  font-style: normal;
  font-family: var(--font-body);
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav{
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.nav-link{
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-bottom: 4px;
  transition: color .25s var(--ease);
}
.nav-link::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right .3s var(--ease);
}
.nav-link:hover{ color: var(--ivory); }
.nav-link:hover::after{ right: 0; }
.nav-link.is-active{ color: var(--gold); }

.nav-cta{
  border: 1px solid var(--gold-line);
  padding: .55rem 1.3rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-cta:hover{ background: var(--gold); color: #17140f; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 1px;
  background: var(--ivory);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}
.hero-scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8,7,6,.96) 0%, rgba(8,7,6,.55) 45%, rgba(8,7,6,.25) 70%, rgba(8,7,6,.45) 100%),
    linear-gradient(to right, rgba(8,7,6,.55) 0%, rgba(8,7,6,.05) 55%);
}
.hero-content{
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 6.5rem;
  width: 100%;
}
.hero-title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.04;
  margin: 0 0 1.25rem;
  max-width: 16ch;
}
.hero-lede{
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 42ch;
  margin: 0 0 2.25rem;
}
.hero-actions{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.scroll-cue{
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 1px;
  height: 52px;
  z-index: 1;
}
.scroll-cue span{
  display: block;
  width: 1px;
  height: 100%;
  background: var(--gold-line);
  position: relative;
  overflow: hidden;
}
.scroll-cue span::after{
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold-bright);
  animation: cue-drip 2.2s var(--ease) infinite;
}
@keyframes cue-drip{
  0%{ top: -100%; }
  60%, 100%{ top: 100%; }
}

/* ---------- gold vein divider (signature element) ---------- */
.vein-divider{
  display: block;
  width: 100%;
  height: 40px;
  overflow: visible;
}
.vein-divider path{
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  opacity: .55;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.vein-divider.is-visible path{
  stroke-dashoffset: 0;
}

/* ---------- generic section ---------- */
.section{
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  background: var(--bg);
}
.section-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section-head{
  max-width: 60ch;
  margin: 0 0 3.5rem;
}
.section-intro{
  max-width: 56ch;
}

.badge-row{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.5rem 0 0;
  padding: 0;
}
.badge-row li{
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .5rem 1rem;
}

.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- philosophy ---------- */
.philosophy{ background: var(--bg-elevated); }
.philosophy-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.philosophy-media img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--hairline);
}
.stat-row{
  list-style: none;
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 2.5rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--hairline);
}
.stat-num{
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-label{
  display: block;
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--muted-dim);
  line-height: 1.4;
}

/* ---------- gallery ---------- */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: .6rem;
}
.gallery-item{
  position: relative;
  grid-column: span 1;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  background: var(--bg-elevated);
}
.gallery-item.span-2{ grid-column: span 2; }
.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .6s var(--ease);
  filter: saturate(.9) brightness(.92);
}
.gallery-item:hover img{
  transform: scale(1.06);
  filter: saturate(1) brightness(1);
}
.gallery-caption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .9rem 1rem;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--ivory);
  background: linear-gradient(to top, rgba(8,7,6,.85), transparent);
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- lightbox ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6,5,4,.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.lightbox.is-open{
  opacity: 1;
  visibility: visible;
}
.lightbox img{
  max-width: min(92vw, 1100px);
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--hairline);
}
.lightbox-caption{
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .05em;
}
.lightbox-close{
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 300;
}
.lightbox-close:hover{ color: var(--gold); }

/* ---------- services ---------- */
.services-grid{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.service-item{
  background: var(--bg);
  padding: 2.25rem 1.5rem;
}
.service-icon{
  width: 30px;
  height: 30px;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.service-item h3{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
  color: var(--ivory);
}

/* ---------- location ---------- */
.location-section{ background: var(--bg-elevated); }
.location-grid{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.address-block{
  font-style: normal;
  color: var(--ivory);
  border-left: 2px solid var(--gold-line);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  line-height: 1.7;
}
.hours-list{
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  gap: 2.5rem;
}
.hours-list li{
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.location-map{
  aspect-ratio: 4 / 3.4;
  border: 1px solid var(--hairline);
  filter: grayscale(.4) invert(.92) contrast(.9);
  overflow: hidden;
}
.location-map iframe{
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.contact-list{
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-list li{
  display: flex;
  flex-direction: column;
  gap: .3rem;
  align-items: flex-start;
}
.contact-label{
  display: block;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: .05rem;
}
.contact-list a{
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ivory);
  transition: color .25s var(--ease);
}
.contact-list a:hover{ color: var(--gold); }

.booking-card{
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  align-self: start;
}
.booking-card-lede{
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 1.75rem;
}
.booking-facts{
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.booking-facts li{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: .92rem;
  color: var(--ivory);
}
.booking-facts .contact-label{ margin: 0; }

/* ---------- footer ---------- */
.site-footer{
  background: var(--bg-elevated);
  border-top: 1px solid var(--hairline);
  padding: 3rem 0;
}
.footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand-footer .brand-name{ font-size: 1.05rem; }
.footer-nav{
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.footer-nav a{
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.footer-nav a:hover{ color: var(--gold); }
.footer-info{
  width: 100%;
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}
.footer-copy{
  width: 100%;
  margin: 0;
  font-size: .74rem;
  color: var(--muted-dim);
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1100px){
  .services-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px){
  .nav{
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    height: 100svh;
    background: var(--bg-elevated);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 2rem var(--gutter);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    border-left: 1px solid var(--hairline);
  }
  .nav.is-open{ transform: translateX(0); }
  .nav-link{ font-size: 1rem; }
  .nav-toggle{ display: flex; }

  .philosophy-grid,
  .location-grid,
  .contact-grid{
    grid-template-columns: 1fr;
  }
  .philosophy-media{ order: -1; }

  .services-grid{ grid-template-columns: repeat(2, 1fr); }

  .gallery-grid{
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .gallery-item.span-2{ grid-column: span 2; }
}

@media (max-width: 560px){
  .hero-content{ padding-bottom: 4.5rem; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .services-grid{ grid-template-columns: 1fr; }
  .stat-row{ flex-wrap: wrap; row-gap: 1.5rem; }
  .hours-list{ flex-wrap: wrap; row-gap: .75rem; }
  .gallery-grid{ grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery-item.span-2{ grid-column: span 1; }
}
