:root {
  --navy: #0d2f73;
  --navy-deep: #071a42;
  --ink: #1c1916;
  --muted: #5e574f;
  --paper: #f6f2eb;
  --paper-2: #efe8dc;
  --white: #fffcf8;
  --line: #e3dacd;
  --heart: #c5363f;
  --shadow: 0 18px 50px rgba(13, 47, 115, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
button, input, textarea { font: inherit; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: white;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }

.topbar {
  background: var(--navy-deep);
  color: #efe7da;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}
.topbar .wrap, .wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: white; }

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 252, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav a, .nav summary {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}
.nav a:hover, .nav a[aria-current="page"], .nav summary:hover {
  background: var(--paper-2);
  color: var(--navy);
}
.nav details { position: relative; }
.nav summary { list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: " ▾"; font-size: 0.75em; }
.nav details ul {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.nav details[open] ul, .nav details:hover ul, .nav details:focus-within ul { display: block; }
.nav details li a { display: block; border-radius: 10px; }
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 560px;
  background: var(--navy-deep);
  color: white;
}
.hero-copy {
  padding: 4.5rem 6vw 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f0c9a0;
  margin: 0 0 0.8rem;
}
.hero h1, .page-hero h1 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
}
.hero h1 { font-size: clamp(3rem, 6vw, 5.2rem); }
.hero p { max-width: 38rem; color: #efe8de; font-size: 1.15rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-photo { min-height: 360px; background: #12305f center/cover no-repeat; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.invite {
  background: var(--navy);
  color: #f7f1e8;
}
.invite h2, .invite p { color: #f7f1e8; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-light { background: white; color: var(--navy); }
.btn-line { border-color: rgba(255,255,255,0.45); color: white; }
.btn-navy { background: var(--navy); color: white; }
.btn-line-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn:hover { transform: translateY(-1px); }

.section { padding: 4.5rem 0; }
.section h2, .prose h2, .page-hero h1 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.panel img { border-radius: 18px; width: 100%; }
.muted { color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card:hover { border-color: #c9bba8; }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--paper-2); }
.card div { padding: 1rem 1.1rem 1.2rem; }
.card h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.quote {
  background: var(--navy);
  color: #f7f1e8;
  border-radius: 22px;
  padding: 1.4rem;
}
.quote:nth-child(2) { background: #16356d; }
.quote:nth-child(3) { background: var(--navy-deep); }
.quote h3 { font-family: var(--serif); font-weight: 520; margin: 0 0 0.7rem; font-size: 1.45rem; }
.quote p { margin: 0 0 1rem; }
.quote span { font-weight: 600; letter-spacing: 0.03em; }

.news-list { display: grid; gap: 1rem; }
.news-grid { grid-template-columns: repeat(3, 1fr); }
.news-grid .news-item { grid-template-columns: 1fr; }
.news-grid .news-item img { height: 190px; min-height: 0; }
.news-grid .news-item div { padding: 0.15rem 1rem 1.1rem; }
.news-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.news-item img { width: 100%; height: 100%; object-fit: cover; min-height: 150px; background: var(--paper-2); }
.news-item div { padding: 1.1rem 1.2rem 1.2rem 0; }
.date { color: var(--heart); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase; }
.page-hero {
  background:
    radial-gradient(circle at top right, rgba(197, 54, 63, 0.18), transparent 32%),
    var(--navy);
  color: white;
  padding: 3.5rem 0 3rem;
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0; }
.page-hero p { max-width: 40rem; color: #efe6da; }

.prose { max-width: 46rem; }
.about-lead { max-width: none; }
.about-lead h2:first-child { margin-top: 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.4rem;
  align-items: stretch;
}
.about-grid h2 { margin: 0 0 0.85rem; font-size: 1.7rem; }
.about-grid ul { margin: 0; }
.about-grid li + li { margin-top: 0.7rem; }
.about-actions { margin: 1.6rem 0 0; }
.prose h2 { font-size: 2rem; margin: 2rem 0 0.6rem; }
.prose h3 { margin: 1.4rem 0 0.4rem; }
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1.5rem 0;
}
.facts-4 { grid-template-columns: repeat(4, 1fr); }
.officine-lead { margin-top: 0; }
.officine-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 2.2rem;
  align-items: start;
}
.officine-cols p { margin: 0; }
.officine-cols-3 { grid-template-columns: repeat(3, 1fr); margin-top: 0.4rem; }
.fact {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}
.fact strong { display: block; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.8rem;
}
.gallery button {
  padding: 0;
  border: 0;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--line);
}
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.wrap.wide { width: min(1520px, calc(100% - 2rem)); }
.gallery-wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 36, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(100%, 1100px); max-height: 88vh; object-fit: contain; border-radius: 8px; }
.lightbox button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: white;
  border: 0;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

form {
  display: grid;
  gap: 0.8rem;
}
label { font-weight: 600; font-size: 0.95rem; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; line-height: 1.45; }
.check input { width: auto; flex: none; margin-top: 0.25rem; }
.check span { flex: 1; }
.note { font-size: 0.92rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-size: 0.95rem; }
.form-status.ok { color: #1d6b3a; }
.form-status.err { color: var(--heart); }
.hp { position: absolute; left: -10000px; height: 0; overflow: hidden; }
.btn:disabled { opacity: 0.65; cursor: wait; }

.footer {
  background: var(--navy-deep);
  color: #efe8de;
  padding: 3rem 0 1.4rem;
}
.footer a { color: inherit; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.footer h2 { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 0.6rem; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin: 0.25rem 0; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.88rem;
  color: #c9c0b4;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--navy);
  color: #f7f1e8;
  box-shadow: 0 -12px 40px rgba(7, 26, 66, 0.22);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.banner p { margin: 0; max-width: 68rem; }
.banner a { color: white; }
.banner[hidden] { display: none; }

@media (max-width: 900px) {
  .hero, .split, .cards, .quotes, .footer-grid, .about-grid, .officine-cols, .officine-cols-3, .facts-4 { grid-template-columns: 1fr; }
  .news-item, .news-grid { grid-template-columns: 1fr; }
  .news-item div { padding: 0.2rem 1rem 1rem; }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
  }
  .nav.open { display: flex; }
  .nav details ul { position: static; box-shadow: none; display: none; }
  .nav details[open] ul { display: block; }
  .facts { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.5rem 1.2rem; }
  .banner { flex-direction: column; align-items: stretch; }
}
