/* Palazzo Vasarri — palette presa dagli interni: pietra, resina grigia, rovere, bronzo dell'insegna */
:root {
  --ink: #2b2622;
  --ink-soft: #5d554e;
  --stone: #f4f0ea;
  --stone-2: #e9e3da;
  --paper: #fbf9f6;
  --bronze: #a8844f;
  --bronze-dark: #84673b;
  --line: rgba(43, 38, 34, .14);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --max: 1180px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }
.eyebrow {
  font-size: .75rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--bronze-dark); margin-bottom: 1em; font-weight: 400;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .95em 2em; border: 1px solid var(--bronze);
  background: var(--bronze); color: #fff; text-decoration: none;
  font-family: var(--sans); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 400; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
  border-radius: var(--radius);
}
.btn:hover { background: var(--bronze-dark); border-color: var(--bronze-dark); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-small { padding: .6em 1.3em; font-size: .72rem; }
.btn-full { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px); color: #fff;
  transition: background .35s, color .35s, box-shadow .35s;
}
.nav.scrolled { background: rgba(251, 249, 246, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.brand { position: relative; display: flex; align-items: center; text-decoration: none; height: 100%; }
.brand-logo { height: 46px; width: auto; transition: opacity .35s; }
.brand-logo-dark { position: absolute; opacity: 0; }
.nav.scrolled .brand-logo-light, .nav.menu-open .brand-logo-light { opacity: 0; }
.nav.scrolled .brand-logo-dark, .nav.menu-open .brand-logo-dark { opacity: 1; }
.menu { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.menu a { text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; }
.menu a:not(.btn) { position: relative; padding: .3em 0; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .3s; }
.menu a:not(.btn):hover::after { right: 0; }
.menu .btn { color: #fff; }
/* Selettore lingua */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; font-size: .78rem; letter-spacing: .16em; font-weight: 400; padding: .3em .2em; display: flex; align-items: center; gap: .35em; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: ""; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 10px); list-style: none; margin: 0; padding: 8px 0; min-width: 170px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -20px rgba(0,0,0,.35); }
.menu .lang-switch li a { display: grid; grid-template-columns: 2.2em 6.5em; justify-content: center; align-items: baseline; padding: .55em 1.2em; font-size: .9rem; letter-spacing: 0; text-transform: none; text-decoration: none; }
.lang-switch li a span { font-size: .72rem; letter-spacing: .12em; color: var(--bronze-dark); }
.lang-switch li a:hover { background: var(--stone); }
.lang-switch li a[aria-current] { font-weight: 500; }
.menu .lang-switch a::after { display: none; }

/* Invito a cambiare lingua */
.lang-suggest { position: fixed; left: 20px; bottom: 20px; z-index: 45; display: flex; align-items: center; gap: 6px; background: var(--ink); color: #f4efe7; border-radius: 99px; padding: 6px 6px 6px 18px; font-size: .9rem; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); max-width: calc(100vw - 110px); }
.lang-suggest a { color: #e7d3ae; text-decoration: none; }
.lang-suggest button { background: none; border: 0; color: #f4efe7; font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 6px 10px; opacity: .7; }
.lang-suggest button:hover { opacity: 1; }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; color: inherit; }
.nav-toggle span { display: block; height: 1px; background: currentColor; margin: 7px 0; transition: transform .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; max-height: 1000px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-out forwards; }
.hero-overlay { background: linear-gradient(180deg, rgba(20,16,12,.55) 0%, rgba(20,16,12,.25) 40%, rgba(20,16,12,.65) 100%); }
.hero-content { position: relative; padding: 0 16px; max-width: 820px; }
.hero-crest { width: 84px; height: auto; margin: 0 auto 22px; opacity: .92; }
/* Stessa scritta del logo: maiuscolo, alto contrasto, lettere spaziate */
.hero h1 {
  font-family: "Old Standard TT", var(--serif);
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 7.4vw, 5.6rem); letter-spacing: .12em; line-height: 1.05;
  margin: 0 -.12em .3em 0; /* compensa la spaziatura dopo l'ultima lettera, così resta centrato */
}
.hero .eyebrow { color: #e7d3ae; }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin-bottom: 2em; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; width: 24px; height: 40px; margin-left: -12px; border: 1px solid rgba(255,255,255,.7); border-radius: 12px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 2px; height: 8px; margin-left: -1px; background: #fff; border-radius: 1px; animation: scroll 1.8s infinite; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); color: #f4efe7; }
.fact { padding: 28px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: #e7d3ae; }
.fact span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 130px) clamp(16px, 4vw, 40px); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child { color: var(--ink-soft); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split.reverse .split-text { order: 2; }
.split-text p { color: var(--ink-soft); }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink) !important; border-left: 2px solid var(--bronze); padding-left: 1em; }
.stack { position: relative; margin: 0; aspect-ratio: 4/5; }
.stack img { position: absolute; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); border-radius: var(--radius); }
.stack-a { width: 68%; height: 88%; top: 0; left: 0; }
.stack-b { width: 55%; height: 45%; right: 0; bottom: 0; border: 8px solid var(--paper); }
.rounded { border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* Band */
.band { position: relative; height: 70vh; min-height: 420px; max-height: 760px; display: grid; place-items: center; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(25,20,16,.45); }
.band blockquote { position: relative; z-index: 1; margin: 0; padding: 0 16px; text-align: center; color: #fff; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.35; }

/* ---------- Suites ---------- */
.suites { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; }
.suite { grid-column: span 3; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s, box-shadow .35s; }
.suite-featured { grid-column: span 6; display: grid; grid-template-columns: 1.4fr 1fr; }
.suite-featured .suite-img { aspect-ratio: auto; min-height: 380px; }
.suite-featured .suite-img img { object-position: center top; }
.suite-featured .suite-body { padding: clamp(28px, 4vw, 52px); align-self: center; }
.suite-featured h3 { font-size: 2.4rem; }
.suite-kicker { font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--bronze-dark); margin: 0 0 .2em !important; }
.suite h3 { font-size: 1.9rem; margin-bottom: .3em; }
.suites-note { text-align: center; color: var(--ink-soft); font-size: .95rem; margin-top: 36px; }

/* ---------- Timeline ---------- */
.timeline-wrap { padding-top: 0; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 132px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 112px 1fr; gap: 41px; padding: 0 0 36px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 128px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--bronze); box-shadow: 0 0 0 5px var(--paper); }
.timeline .when { font-family: var(--serif); font-size: 1.35rem; color: var(--bronze-dark); text-align: right; line-height: 1.3; }
.timeline h3 { font-size: 1.4rem; margin-bottom: .25em; }
.timeline p { color: var(--ink-soft); margin: 0; }
.suite:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(0,0,0,.35); }
.suite-img { aspect-ratio: 3/2; overflow: hidden; }
.suite-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.suite:hover .suite-img img { transform: scale(1.05); }
.suite-body { padding: 26px 26px 28px; }
.suite-body p { color: var(--ink-soft); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line); padding: .35em .8em; border-radius: 99px; color: var(--ink-soft); }

/* ---------- Services ---------- */
.services-wrap { max-width: none; background: var(--stone); }
.services { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--stone); padding: 34px 26px; }
.service svg { width: 34px; height: 34px; fill: none; stroke: var(--bronze); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.service h3 { font-size: 1.25rem; margin-bottom: .3em; }
.service p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ---------- Gallery ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -24px 0 36px; }
.filter { background: none; border: 1px solid var(--line); border-radius: 99px; padding: .5em 1.3em; font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; color: var(--ink-soft); transition: all .25s; }
.filter:hover { border-color: var(--bronze); color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { columns: 4 240px; column-gap: 12px; }
.gallery button { all: unset; display: block; width: 100%; margin-bottom: 12px; break-inside: avoid; cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.gallery button:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
.gallery img { width: 100%; height: auto; transition: transform .6s, opacity .3s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery button[hidden] { display: none; }
.gallery-more-wrap { text-align: center; margin-top: 28px; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-outline[hidden] { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,12,10,.94); display: grid; place-items: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox figcaption { color: #d9cfc2; font-size: .9rem; margin-top: 14px; text-align: center; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; padding: 10px 16px; opacity: .75; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Dintorni ---------- */
.distances { list-style: none; padding: 0; margin: 1.5em 0 0; }
.distances li { display: flex; justify-content: space-between; gap: 16px; padding: .7em 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.distances em { font-style: normal; color: var(--bronze-dark); white-space: nowrap; }

/* ---------- Reviews ---------- */
.reviews { text-align: center; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote { margin: 0; padding: 36px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.quote blockquote { margin: 0 0 1em; font-family: var(--serif); font-size: 1.35rem; font-style: italic; line-height: 1.4; }
.quote figcaption { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-dark); }
.scores { margin-top: 40px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 40px; color: var(--ink-soft); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.scores strong { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin-left: .4em; font-weight: 500; }

/* ---------- Info ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { padding: 28px; border-top: 2px solid var(--bronze); background: var(--stone); }
.info-card h3 { font-size: 1.2rem; margin-bottom: .2em; }
.info-card p { margin: 0; font-size: 1.05rem; }
.info-card small { display: block; margin-top: .5em; color: var(--ink-soft); font-size: .85rem; line-height: 1.5; }

/* ---------- Booking ---------- */
.booking { max-width: none; background: var(--ink); color: #f4efe7; }
.booking-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.booking .eyebrow { color: #e7d3ae; }
.booking-text p { color: #cfc5b8; }
.contacts { list-style: none; padding: 0; margin: 2em 0 0; }
.contacts li { padding: .9em 0; border-bottom: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.contacts span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #a99c8c; padding-top: .3em; }
.contacts a { text-decoration: none; }
.contacts a:hover { color: #e7d3ae; }
.booking-form { background: var(--paper); color: var(--ink); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); }
.booking-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.booking-form label { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.booking-form label small { text-transform: none; letter-spacing: 0; }
.booking-form input, .booking-form select, .booking-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: .75em .9em; font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none;
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(168,132,79,.18); }
.form-note { font-size: .8rem; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }
.form-error { color: #9b2c1f; font-size: .9rem; margin: 0 0 12px; }

.map iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.6) contrast(.95); }

/* ---------- Footer ---------- */
.footer { background: #1f1b18; color: #bfb4a6; padding: 48px clamp(16px, 4vw, 48px); display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; font-size: .9rem; }
.footer-brand img { width: 120px; height: auto; opacity: .9; }
.footer a { color: #e7d3ae; text-decoration: none; }
.footer .small { font-size: .8rem; }
.todo { background: rgba(231, 211, 174, .15); padding: 0 .3em; }

/* WhatsApp FAB */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); transition: transform .25s; }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; fill: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img, .scroll-hint span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .suites { grid-template-columns: repeat(2, 1fr); }
  .suite { grid-column: span 1; }
  .suite-featured { grid-column: span 2; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-toggle { display: block; }
  .menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); color: var(--ink); padding: 8px 16px 24px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
    transform: translateY(-120%); transition: transform .35s; z-index: -1;
  }
  .menu.open { transform: none; }
  .menu a:not(.btn) { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 16px; }
  .lang-switch { width: 100%; margin-top: 12px; }
  .lang-switch summary { padding: 10px 0; }
  .lang-switch ul { position: static; box-shadow: none; border: 0; background: transparent; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
  .menu .lang-switch li a { padding: .6em 0; justify-content: start; }
  .lang-switch li a:hover { background: none; }
  .nav.menu-open { background: var(--paper); color: var(--ink); }
  .split, .booking-inner { grid-template-columns: 1fr; }
  .split.reverse .split-text { order: 0; }
  .quotes { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .footer { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-logo { height: 38px; }
  .hero-crest { width: 64px; margin-bottom: 16px; }
  .suites, .services, .info-grid { grid-template-columns: 1fr; }
  .suite-featured { grid-column: span 1; grid-template-columns: 1fr; }
  .suite-featured .suite-img { aspect-ratio: 3/2; min-height: 0; }
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; }
  .timeline li::before { left: 2px; }
  .timeline .when { text-align: left; }
  .booking-form .row { grid-template-columns: 1fr; gap: 0; }
  .gallery { columns: 2; column-gap: 8px; }
  .gallery button { margin-bottom: 8px; }
  .contacts li { grid-template-columns: 1fr; gap: 2px; }
  .lightbox { padding: 48px 8px; }
}
