/* Sito Maison Augusto (maisonaugusto.com): home, Sposa, Opere, Su di noi, Contatto.
   Il gestionale (/gestionale) resta sul suo modello. Niente Bootstrap: solo questo file. */

:root {
  --ink: #1d1d1b;
  --muted: #6b6862;
  --soft: #4a4843;
  --line: #d9d4cc;
  --paper: #ffffff;
  --stone: #f7f5f1;
  --ivory: #fbf9f5;
  --sand: #efe9df;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.ivory { background: var(--ivory); }
img { max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.eyebrow { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.link { display: inline-block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 5px; font-weight: 400; }
.btn { display: inline-block; background: var(--ink); color: var(--ivory); border: 0; font: inherit; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; padding: 18px 34px; font-weight: 400; cursor: pointer; min-height: 44px; }
.btn:hover { color: var(--ivory); background: #000; }
.center { text-align: center; }
.archi { width: 40px; display: block; margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* L'arco del logo: semicerchio vero a qualsiasi larghezza (raggio enorme che il browser riduce
   a metà larghezza), proporzione fissa 4:5, la foto riempie senza deformarsi */
.arch { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 9999px 9999px 0 0; background: var(--sand); }
.arch-empty { display: flex; align-items: center; justify-content: center; }
.arch-empty img { width: 22%; opacity: .25; }

/* Intestazione */
.top { position: relative; z-index: 10; }
.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; max-width: 1360px; margin: 0 auto; padding: 28px 40px; }
.top nav, .top .side { display: flex; flex-wrap: wrap; gap: 28px; flex: 1 1 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; align-items: center; }
.top .side { justify-content: flex-end; }
.top .logo { flex: 0 0 auto; display: block; }
.top .logo img { height: 54px; display: block; }
.top a[aria-current] { border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.top .muted { color: var(--muted); }
.langs { display: inline-flex; gap: 8px; align-items: center; }
.langs a { color: var(--muted); }
.langs a.active { color: inherit; border-bottom: 1px solid currentColor; }
.langs span { opacity: .5; }
.top.light { position: absolute; left: 0; right: 0; top: 0; color: #fff; }
.top.light a, .top.light .langs a.active { color: #fff; }
.top.light .langs a, .top.light .muted { color: rgba(255, 255, 255, .75); }
.burger { display: none; background: transparent; border: 0; padding: 10px; margin: -10px; cursor: pointer; color: inherit; min-width: 44px; min-height: 44px; }
.burger span { display: block; width: 24px; height: 1px; background: currentColor; margin: 6px 0; }
.mobile-only { display: none !important; }

@media (max-width: 1100px) {
  .top .bar { padding: 20px 24px; }
  .top nav, .top .side .hide-m { display: none; }
  .burger { display: block; }
  .top .bar > .logo { order: -1; }
  .top .side { flex: 0 0 auto; }
  .top.open nav { display: flex; position: fixed; inset: 0; z-index: 20; background: var(--ivory); color: var(--ink); flex-direction: column; justify-content: center; align-items: center; gap: 30px; font-size: 15px; }
  .top.open nav a { color: var(--ink); }
  .top.open nav .langs a { color: var(--muted); }
  .top.open nav .langs a.active { color: var(--ink); }
  .top.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .top.open .burger span:nth-child(2) { opacity: 0; }
  .top.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .top.open nav .mobile-only { display: inline-flex !important; }
  .top.open .burger { position: fixed; top: 20px; right: 24px; z-index: 21; color: var(--ink); }
  .top .logo img { height: 44px; }
}

/* Copertina (video) */
.hero { position: relative; height: 100vh; min-height: 560px; max-height: 1000px; overflow: hidden; background: var(--ink); color: #fff; }
.hero video, .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); }
.hero .in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 0 24px; }
.hero .eyebrow { color: #fff; font-size: 12px; letter-spacing: .32em; }
.hero h1 { font-size: clamp(46px, 7vw, 104px); line-height: 1; letter-spacing: .06em; }
.hero .link { color: #fff; margin-top: 18px; }

/* Sezioni */
.quote { max-width: 860px; margin: 0 auto; padding: 150px 32px 130px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.45; }
.quote .sign { font-size: 12px; letter-spacing: .4em; text-transform: uppercase; font-weight: 400; }

.worlds { padding: 0 0 160px; }
.worlds .row { display: flex; flex-wrap: wrap; gap: 80px 96px; justify-content: center; }
.world { flex: 1 1 380px; max-width: 500px; display: flex; flex-direction: column; gap: 28px; text-align: center; }
.world .txt { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.world h2 { font-size: 46px; letter-spacing: .04em; }
.world p { font-size: 16px; line-height: 1.7; max-width: 360px; }
.world .link { margin-top: 8px; }
.world:hover { color: var(--ink); }

.block { padding: 140px 0 150px; }
.block.stone { background: var(--stone); }
.block.white { background: var(--paper); }
.head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-bottom: 72px; }
.head h1, .head h2 { font-size: clamp(40px, 4vw, 54px); }
.head p { font-size: 16px; line-height: 1.7; max-width: 540px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 56px 48px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 14px; text-align: center; }
.card .name { font-family: var(--serif); font-size: 26px; margin-top: 6px; }
.card .for { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.card p { font-size: 15px; line-height: 1.7; color: var(--soft); }
.more { text-align: center; margin-top: 72px; }

.split { display: flex; flex-wrap: wrap; gap: 64px 96px; align-items: center; }
.split > .pic { flex: 1 1 400px; max-width: 520px; }
.split > .txt { flex: 1 1 380px; display: flex; flex-direction: column; gap: 26px; }
.split h2 { font-size: clamp(40px, 4vw, 52px); }
.split p { font-size: 17px; line-height: 1.8; max-width: 480px; }
.split.reverse { flex-direction: row-reverse; }

.list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.list li span:first-child { font-family: var(--serif); font-size: 24px; }
.list li span:last-child { font-size: 14px; color: var(--muted); align-self: center; text-align: right; }

.band { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--ink); color: #fff; text-align: center; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; opacity: .6; }
.band .in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 80px 24px; max-width: 760px; }
.band h2 { font-size: clamp(36px, 4vw, 56px); }
.band p { font-size: 17px; line-height: 1.8; color: rgba(255, 255, 255, .88); }
.band a, .band .eyebrow { color: #fff; }

.dark { background: var(--ink); color: var(--ivory); }
.dark .eyebrow { color: #b9b2a6; }
.dark a { color: var(--ivory); }
.dark .arch { background: #2c2b28; }

.prose { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; font-size: 17px; line-height: 1.9; }
.prose h2, .prose h3 { margin-top: 12px; }
.prose blockquote { border-left: 1px solid var(--ink); margin: 0; padding-left: 20px; font-style: italic; }

.page-head { padding: 90px 0 70px; }
.page-head .head { margin-bottom: 0; }

/* Il percorso (Sposa) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--ink); }
.steps li { padding: 32px 28px 36px; display: flex; flex-direction: column; gap: 14px; }
.steps li:first-child { padding-left: 0; }
.steps .n { font-family: var(--serif); font-size: 40px; color: #8c857a; line-height: 1; }
.steps h3 { font-weight: 500; font-size: 24px; }
.steps p { font-size: 15px; line-height: 1.7; color: var(--soft); }
.steps li.key { background: #f1ebe1; padding-left: 28px; }
.steps li.key .n { color: var(--ink); }
.note { font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 720px; margin-top: 40px; }

/* Moduli */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px 48px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #b9b2a6; padding: 10px 0; min-height: 44px; border-radius: 0; width: 100%; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--soft); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: 0 0 auto; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 18px 22px; font-size: 15px; line-height: 1.6; margin-bottom: 36px; border: 1px solid var(--line); }
.alert.ok { border-color: #7c8f6a; background: #f2f5ee; }
.alert.err { border-color: #b4644f; background: #fbf1ee; }

.contact-info { display: flex; flex-direction: column; gap: 26px; }
.contact-info h3 { font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 400; color: var(--muted); margin-bottom: 6px; }
.contact-info p { font-size: 17px; }

/* Piede */
.foot { max-width: var(--wrap); margin: 0 auto; padding: 120px 32px 48px; display: flex; flex-direction: column; gap: 72px; }
.foot .cols { display: flex; flex-wrap: wrap; gap: 48px 80px; justify-content: space-between; }
.foot .brand { flex: 1 1 260px; max-width: 360px; display: flex; flex-direction: column; gap: 20px; }
.foot .brand img { width: 190px; }
.foot .brand p { font-size: 15px; line-height: 1.7; color: var(--soft); }
.foot nav, .foot .contacts { display: flex; flex-direction: column; gap: 14px; }
.foot nav { flex: 0 1 200px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; }
.foot .contacts { flex: 0 1 260px; font-size: 15px; }
.foot .contacts .t { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; }
.foot .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; font-size: 13px; color: var(--muted); }
.foot .muted { color: var(--muted); }

@media (max-width: 700px) {
  .wrap { padding: 0 20px; }
  .quote { padding: 100px 20px 90px; }
  .block { padding: 96px 0 100px; }
  .worlds { padding-bottom: 100px; }
  .head { margin-bottom: 52px; }
  .steps li, .steps li:first-child, .steps li.key { padding: 26px 20px 28px; }
  .foot { padding: 90px 20px 40px; }
  .hero { max-height: 760px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Certificato dell'opera (/c/{codice}) */
.cert { max-width: 760px; margin: 0 auto; }
.cert .head { margin-bottom: 48px; }
.cert .num { font-family: var(--sans); font-size: 12px; letter-spacing: .3em; color: var(--muted); }
.cert .verified { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.cert .verified svg { width: 18px; height: 18px; }
.cert .list li span:first-child { font-family: var(--sans); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); align-self: center; }
.cert .list li span:last-child { font-family: var(--serif); font-size: 21px; color: var(--ink); text-align: right; white-space: pre-line; }
.cert .text { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.6; text-align: center; margin: 56px auto 0; max-width: 620px; white-space: pre-line; }
.cert .mono { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 72px; }
.cert .mono .m { width: 180px; aspect-ratio: 4 / 5; border-radius: 9999px 9999px 0 0; background: var(--sand); display: flex; align-items: center; justify-content: center; overflow: hidden; font-family: var(--serif); font-size: 44px; letter-spacing: .12em; }
.cert .mono .m img { width: 78%; height: 78%; object-fit: contain; }
.cert .photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 240px)); justify-content: center; gap: 14px; margin-top: 40px; }
.cert .photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--sand); }
.cert h2.small { font-size: 32px; text-align: center; margin: 80px 0 8px; }
.cert .care li span:first-child { min-width: 120px; }
.cert .wip { text-align: center; font-family: var(--serif); font-size: 24px; line-height: 1.6; max-width: 560px; margin: 0 auto; }
.cert .private { text-align: center; font-size: 13px; color: var(--muted); margin-top: 72px; }
@media (max-width: 640px) {
  .cert .photos { grid-template-columns: repeat(2, 1fr); }
  .cert .list li { flex-direction: column; gap: 4px; }
  .cert .list li span:last-child { text-align: left; }
}
