/* ============================================================
   Borghese Magnolia Luxury Suite — foglio di stile
   Palette presa dal biglietto da visita
   ============================================================ */

:root {
  --verde:        #4a6262;   /* fondo principale (biglietto) */
  --verde-scuro:  #3a4e4e;   /* header, footer, sezioni scure */
  --verde-notte:  #2d3e3e;
  --oro:          #d3b87a;   /* ornamenti, titoli */
  --oro-chiaro:   #e6d4a3;
  --avorio:       #efe9dc;   /* testo su fondo scuro */
  --crema:        #f4efe4;   /* sezioni chiare */
  --crema-scura:  #e6dfcf;
  --inchiostro:   #2f3d3d;   /* testo su fondo chiaro */

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body:    "Jost", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --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: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--avorio);
  background: var(--verde);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  color: var(--oro);
}

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- eyebrow / etichetta piccola in maiuscoletto ------ */
.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--oro);
  margin: 0 0 1rem;
}

/* ---------- separatore ornamentale -------------------------- */
.ornament {
  display: flex; align-items: center; gap: 1rem;
  color: var(--oro); justify-content: center;
  margin: 1.5rem 0;
}
.ornament::before, .ornament::after {
  content: ""; flex: 0 0 64px; height: 1px; background: currentColor; opacity: .6;
}
.ornament svg { width: 22px; height: 22px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(58, 78, 78, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(211,184,122,.25);
}
.site-header .container {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; min-height: 92px;
}
.brand { justify-self: center; text-align: center; text-decoration: none; }
.brand img { height: 64px; width: auto; margin-inline: auto; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--oro); line-height: 1; white-space: nowrap; display: block;
}
.brand-text small {
  display: block; font-family: var(--font-body); font-size: .58rem;
  letter-spacing: .38em; margin-top: .45rem; color: var(--oro-chiaro);
}

.nav { display: flex; gap: 2.4rem; white-space: nowrap; list-style: none; margin: 0 0 0 2rem; padding: 0; }
.nav a {
  text-decoration: none; font-size: .78rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--avorio);
  padding-bottom: .25rem; border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--oro); border-bottom-color: var(--oro); }

.header-cta { justify-self: end; white-space: nowrap; }

.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-body); font-size: .74rem; letter-spacing: .24em;
  text-transform: uppercase; padding: .9rem 1.6rem;
  border: 1px solid var(--oro); color: var(--oro); background: transparent;
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--oro); color: var(--verde-notte); }
.btn--solid { background: var(--oro); color: var(--verde-notte); }
.btn--solid:hover { background: var(--oro-chiaro); }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 0;
}
.menu-toggle span {
  display: block; width: 28px; height: 1px; background: var(--oro);
  margin: 7px auto;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 88vh; display: grid; place-items: end start;
  background: var(--verde-scuro);
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .85;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,62,62,.15) 0%, rgba(45,62,62,.05) 40%, rgba(45,62,62,.85) 100%);
}
.hero__content {
  position: relative; z-index: 1;
  padding: 0 0 clamp(3rem, 7vw, 6rem);
  max-width: 760px;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: .06em; text-transform: uppercase; font-weight: 400;
}
.hero .sub {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--avorio);
  margin: .6rem 0 1.8rem;
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--oro-chiaro);
}

/* ============================================================
   SEZIONI
   ============================================================ */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--light { background: var(--crema); color: var(--inchiostro); }
.section--light h2, .section--light h3 { color: var(--verde-scuro); }
.section--light .eyebrow { color: #8b7440; }
.section--dark { background: var(--verde-scuro); }

.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 400; }
.section-head p { font-size: 1.1rem; }

.two-col {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.two-col h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 400; margin-bottom: 1.2rem; }
.lead { font-size: 1.2rem; line-height: 1.6; }

.frame {
  position: relative; padding: 14px;
}
.frame::before {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--oro);
  pointer-events: none;
}
.frame img { width: 100%; height: auto; display: block; }

/* ---------- l'appartamento: scheda tecnica --------------- */
.specs {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0 2rem; margin-top: 3.5rem;
  border-top: 1px solid rgba(211,184,122,.35);
}
.spec { padding: 1.6rem 1.25rem 1.6rem 0; border-bottom: 1px solid rgba(211,184,122,.35); }
.spec dt {
  font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--oro); margin-bottom: .4rem;
}
.section--light .spec dt { color: #8b7440; }
.section--light .specs, .section--light .spec { border-color: rgba(58,78,78,.25); }
.spec dd { margin: 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }

/* ---------- dotazioni: due liste ------------------------- */
.amenities {
  columns: 2; column-gap: 3rem; list-style: none; padding: 0; margin: 2rem 0 0;
}
.amenities li {
  break-inside: avoid; padding: .55rem 0 .55rem 1.6rem; position: relative;
  border-bottom: 1px solid rgba(211,184,122,.2);
}
.amenities li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 6px; height: 6px; transform: rotate(45deg); background: var(--oro);
}
.section--light .amenities li { border-color: rgba(58,78,78,.18); }
.section--light .amenities li::before { background: #8b7440; }

/* ============================================================
   GALLERIA
   ============================================================ */
.gallery-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 210px;
}
.gallery-grid figure { margin: 0; overflow: hidden; position: relative; cursor: zoom-in; }
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), filter .6s var(--ease);
}
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .7rem 1rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--oro-chiaro);
  background: linear-gradient(0deg, rgba(45,62,62,.85), transparent);
  opacity: 0; transition: opacity .4s var(--ease);
}
.gallery-grid figure:hover figcaption { opacity: 1; }
/* pattern di griglia: 3 formati ripetuti */
.gallery-grid figure:nth-child(6n+1) { grid-column: span 7; grid-row: span 2; }
.gallery-grid figure:nth-child(6n+2) { grid-column: span 5; }
.gallery-grid figure:nth-child(6n+3) { grid-column: span 5; }
.gallery-grid figure:nth-child(6n+4) { grid-column: span 4; }
.gallery-grid figure:nth-child(6n+5) { grid-column: span 4; }
.gallery-grid figure:nth-child(6n+6) { grid-column: span 4; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(45,62,62,.96); place-items: center; padding: 2rem;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 84vh; object-fit: contain; }
.lightbox__caption {
  position: absolute; bottom: 2rem; left: 0; right: 0; text-align: center;
  font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--oro-chiaro);
}
.lightbox button {
  position: absolute; background: none; border: 1px solid var(--oro); color: var(--oro);
  width: 48px; height: 48px; cursor: pointer; font-size: 1.4rem; font-family: var(--font-display);
}
.lightbox .lb-close { top: 1.5rem; right: 1.5rem; }
.lightbox .lb-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox button:hover { background: var(--oro); color: var(--verde-notte); }

/* ============================================================
   CALENDARIO DISPONIBILITÀ
   ============================================================ */
.calendar-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.cal-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; grid-column: 1 / -1; }
.cal-controls button {
  background: none; border: 1px solid var(--oro); color: var(--oro); width: 42px; height: 42px;
  cursor: pointer; font-size: 1.1rem; transition: background .3s, color .3s;
}
.cal-controls button:hover { background: var(--oro); color: var(--verde-notte); }

.cal-month { }
.cal-month h3 {
  font-size: 1.6rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 400;
  margin-bottom: 1rem; text-align: center;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow {
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; text-align: center;
  color: var(--oro); padding-bottom: .5rem;
}
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.05rem;
  border: 1px solid rgba(211,184,122,.22); color: var(--avorio);
}
.cal-day.is-empty { border: 0; }
.cal-day.is-past { opacity: .28; }
.cal-day.is-busy {
  color: rgba(239,233,220,.45);
  background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(211,184,122,.18) 5px 6px);
  text-decoration: line-through;
}
.cal-day.is-free { background: rgba(211,184,122,.09); }
.cal-day.is-today { outline: 1px solid var(--oro); outline-offset: -1px; }

.cal-legend { display: flex; gap: 2rem; margin-top: 1.5rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; grid-column: 1 / -1; }
.cal-legend span { display: inline-flex; align-items: center; gap: .6rem; }
.cal-legend i { width: 18px; height: 18px; border: 1px solid rgba(211,184,122,.4); }
.cal-legend .free { background: rgba(211,184,122,.15); }
.cal-legend .busy { background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(211,184,122,.25) 5px 6px); }
.cal-status { grid-column: 1 / -1; font-size: .85rem; color: var(--oro-chiaro); margin-top: .5rem; min-height: 1.4em; }

/* ============================================================
   POSIZIONE
   ============================================================ */
.map-placeholder {
  aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center;
  border: 1px solid rgba(58,78,78,.3); background: var(--crema-scura); padding: 2rem;
}
.map-embed { aspect-ratio: 16 / 9; width: 100%; border: 0; filter: saturate(.75); }
.distances { list-style: none; padding: 0; margin: 2rem 0 0; }
.distances li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(58,78,78,.18); }
.distances li span:last-child { font-family: var(--font-display); font-size: 1.15rem; white-space: nowrap; }

/* ============================================================
   CONTATTI
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid rgba(211,184,122,.25); }
.contact-list svg { width: 22px; height: 22px; flex: none; stroke: var(--oro); fill: none; stroke-width: 1.4; margin-top: .25rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--oro); }
.contact-list .label { display: block; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--oro); margin-bottom: .15rem; }

.form { display: grid; gap: 1.2rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form label { display: grid; gap: .35rem; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--oro); }
.form input, .form textarea, .form select {
  font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none;
  background: rgba(239,233,220,.04); border: 1px solid rgba(211,184,122,.4);
  color: var(--avorio); padding: .85rem 1rem; width: 100%;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--oro); outline-offset: 1px; border-color: var(--oro); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hint { font-size: .8rem; color: rgba(239,233,220,.7); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--verde-notte); padding: 3.5rem 0 2rem;
  font-size: .85rem; color: rgba(239,233,220,.75);
}
.site-footer .container { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; font-family: var(--font-body); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .25rem 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--oro); }
.footer-legal {
  grid-column: 1 / -1; margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(211,184,122,.2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .72rem; letter-spacing: .12em;
}

/* ============================================================
   ANIMAZIONE D'INGRESSO (solo classe .reveal)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .site-header .container { grid-template-columns: auto 1fr auto; min-height: 76px; }
  .brand { justify-self: start; }
  .brand img { height: 48px; }
  .nav {
    position: fixed; inset: 76px 0 0 0; background: var(--verde-scuro);
    flex-direction: column; align-items: center; justify-content: center; gap: 2.2rem;
    display: none;
  }
  .nav.is-open { display: flex; margin-left: 0; }
  .nav a { font-size: 1rem; }
  .menu-toggle { display: block; justify-self: end; }
  .header-cta { display: none; }

  .two-col, .contact-grid, .calendar-wrap { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  .amenities { columns: 1; }
  .gallery-grid { grid-auto-rows: 160px; }
  .gallery-grid figure:nth-child(n) { grid-column: span 6; grid-row: span 1; }
  .gallery-grid figure:nth-child(6n+1) { grid-column: span 12; grid-row: span 2; }
}
@media (max-width: 560px) {
  .form .row { grid-template-columns: 1fr; }
  .gallery-grid figure:nth-child(n) { grid-column: span 12; }
  .hero { min-height: 78vh; }
}
