:root {
  --ink: #0e3c5f;
  --ink-2: #1b5a86;
  --stone: #fbefe6;
  --sand: #f8ebdd;
  --paper: #fffaf4;
  --gold: #b4471f;
  --gold-bright: #f2926a;
  --text: #1d2a38;
  --muted: #55606b;
  --line: #ecd7c6;
  --danger: #b3261e;
  --ok: #1f6b45;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 60, 95, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; z-index: 200; }
.skip:focus { left: 8px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 10px max(16px, calc((100% - 1120px) / 2)); color: #fff; transition: background .25s var(--ease), box-shadow .25s var(--ease); }
.nav.scrolled { background: rgba(14, 60, 95, .96); box-shadow: 0 2px 16px rgba(0,0,0,.25); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; text-decoration: none; min-height: 44px; }
.brand-logo { height: 40px; width: auto; filter: brightness(0) invert(1); }
.menu { display: flex; align-items: center; gap: 6px; }
.menu a { text-decoration: none; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; font-size: .95rem; border-radius: 8px; transition: color .2s; }
.menu a:not(.btn):hover { color: var(--gold-bright); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .25s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; background: var(--gold-bright); color: var(--ink); font: 600 1rem var(--sans); border: 2px solid var(--gold-bright); border-radius: 999px; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { background: #f6a581; box-shadow: 0 6px 18px rgba(242, 146, 106, .45); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.btn-small { min-height: 44px; padding: 8px 20px; margin-left: 6px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Hero */
.hero { position: relative; min-height: min(100dvh, 820px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--ink); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,36,60,.72) 0%, rgba(8,36,60,.35) 45%, rgba(8,36,60,0) 75%); }
.hero-content { position: relative; padding: 120px 0 64px; }
.eyebrow { font: 600 .8rem var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--gold-bright); margin-bottom: 18px; }
.eyebrow.dark { color: var(--gold); }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); font-weight: 600; max-width: 12ch; }
.hero h1 em { color: #ffc3a6; font-weight: 500; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 52ch; color: #f1f5f9; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px 44px; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font: 600 1.7rem var(--serif); color: var(--gold-bright); }
.hero-facts span { font-size: .9rem; color: #e1ebf3; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-sand { background: var(--sand); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }

/* Photos */
.card-photo { margin: -32px -28px 22px; height: 190px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-photo img { transform: scale(1.05); }
.photo { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption { font-size: .8rem; color: var(--muted); padding: 10px 14px; background: #fff; }
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin-top: 48px; }
.gallery img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: var(--radius); }
.gallery figure { margin: 0; }
.credits { font-size: .78rem; opacity: .8; margin: 14px 0 0; }
.credits a { text-decoration: underline; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-featured { border-color: var(--gold-bright); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; left: 28px; background: var(--ink); color: var(--gold-bright); font: 600 .75rem var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.card-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--stone); color: var(--gold); display: grid; place-items: center; margin-bottom: 20px; }
.card-icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); }
.meta { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: auto 0 20px; }
.meta li { font-size: .82rem; background: var(--stone); padding: 4px 12px; border-radius: 999px; }
.card-link { font-weight: 600; text-decoration: none; color: var(--gold); min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { text-decoration: underline; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { border-top: 1px solid rgba(255,255,255,.2); padding-top: 22px; }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gold-bright); color: var(--gold-bright); font: 600 1.2rem var(--serif); margin-bottom: 14px; }
.steps p { color: #d3e2ee; margin: 0; }

/* Storia */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split p { color: var(--muted); max-width: 58ch; }
.stats { margin: 0; display: grid; gap: 16px; }
.stats div { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px 26px; display: flex; align-items: baseline; gap: 16px; }
.stats strong { font: 600 2.2rem var(--serif); color: var(--gold-bright); min-width: 5.5ch; }
.stats span { color: #d3e2ee; }

/* Info */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info { background: var(--paper); border-radius: var(--radius); padding: 24px; }
.info h3 { font-size: 1.35rem; }
.info p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Booking */
.book { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.book-text p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 10px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg) scale(.9); }
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.req { color: var(--danger); }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; font: 1rem var(--sans); color: var(--text); background: var(--paper); border: 1.5px solid #cdb7a3; border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 146, 106, .4); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.error { font-size: .88rem; color: var(--danger); margin: 6px 0 0; min-height: 0; }
.error:empty { display: none; }
.success { margin: 16px 0 0; padding: 14px 16px; border-radius: 10px; background: #e5f3ea; color: var(--ok); font-weight: 500; }

/* FAQ */
details { background: var(--paper); border-radius: 12px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 600; min-height: 56px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold); transition: transform .2s var(--ease); }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Footer */
.footer { background: var(--ink); color: #d3e2ee; padding: 48px 0; text-align: center; }
.brand-foot { font: 600 1.8rem var(--serif); color: #fff; margin-bottom: 4px; }
.small { font-size: .82rem; opacity: .75; margin: 14px 0 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .cards, .info-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split, .book { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .burger { display: block; order: 3; }
  .langs { order: 2; margin-left: auto; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: rgba(14,60,95,.98); padding: 8px 16px 20px; display: none; }
  .menu.open { display: flex; }
  .btn-small { margin: 8px 0 0; justify-content: center; }
  .cards, .info-grid, .steps, .row, .gallery { grid-template-columns: 1fr; }
  .hero-overlay { background: linear-gradient(180deg, rgba(8,36,60,.7), rgba(8,36,60,.55)); }
  .form { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Visita */
.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.visit-photo img { aspect-ratio: 4 / 5; }
.visit p { color: var(--muted); }
.days { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.day { background: var(--ink); color: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.slot-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.slot-group h3 { font-size: 1.25rem; margin-bottom: 10px; }
.slot-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.slot-group li { background: var(--stone); color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; padding: 6px 10px; border-radius: 999px; }
.visit .hint { margin-top: 12px; }
.cta-box { text-align: center; background: var(--stone); border-radius: 22px; padding: clamp(32px, 6vw, 56px) 24px; }
.cta-box p { color: var(--muted); }
.cta-box .hint { margin-top: 14px; }
@media (max-width: 960px) { .visit { grid-template-columns: 1fr; gap: 32px; } .visit-photo img { aspect-ratio: 4 / 3; } }
@media (max-width: 480px) { .slots { grid-template-columns: 1fr; } }

/* Come arrivare */
.arrive { background: var(--gold-bright); color: var(--ink); padding: 36px 0; }
.arrive-in { display: flex; align-items: center; gap: 24px; }
.arrive-icon { flex: none; width: 76px; height: 76px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.arrive-icon svg { width: 40px; height: 40px; }
.arrive h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 6px; }
.arrive p { margin: 0; max-width: 62ch; font-size: 1.05rem; }
@media (max-width: 560px) { .arrive-in { flex-direction: column; align-items: flex-start; } }
.arrive-note { margin-top: 8px; }

/* Stanza del Papa */
.section-feature { background: var(--sand); }
.feature .eyebrow { color: var(--gold); }
.feature .photo img { aspect-ratio: 10 / 7; }
.foot-contacts { font-style: normal; margin-top: 12px; }
.foot-contacts p { margin: 4px 0; }
.foot-contacts a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.langs a.lang { padding: 10px 12px; min-height: 44px; }
.langs a.lang .flag { display: block; width: 30px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.55); }
.langs a.lang:hover { color: var(--gold-bright); }
.langs { display: inline-flex; align-items: center; }
.langs a.lang.is-current .flag { opacity: .45; }
.langs a.lang { padding: 10px 6px; display: inline-flex; align-items: center; min-height: 44px; }

/* Pagina Storia */
.nav.solid { background: rgba(14, 60, 95, .96); box-shadow: 0 2px 16px rgba(0,0,0,.25); }
.page-head { background: var(--ink); color: #fff; padding: 150px 0 64px; }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); margin-bottom: 18px; }
.page-head h1 em { color: var(--gold-bright); }
.page-lead { font-size: 1.2rem; color: #d3e2ee; max-width: 56ch; margin: 0; }
.prose h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 2.2em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); font-size: 1.06rem; }
.story-photo { margin: 2.4em 0; }
.timeline { list-style: none; margin: 0 0 1em; padding: 0 0 0 22px; border-left: 2px solid var(--gold-bright); }
.timeline li { position: relative; padding: 0 0 22px 20px; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-bright); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--gold-bright); }
.tl-year { display: block; font: 600 1.5rem var(--serif); color: var(--gold); }
.timeline p { margin: 2px 0 0; }
.story-quote { margin: 2.4em 0; padding: 22px 26px; background: var(--sand); border-left: 4px solid var(--gold-bright); border-radius: 0 var(--radius) var(--radius) 0; font: italic 600 1.6rem/1.3 var(--serif); color: var(--ink); }
.story-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost-dark:hover { background: rgba(14,60,95,.08); box-shadow: none; }
.story-link { margin-top: 8px; }
