@font-face { font-family: "Pinyon Script"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/pinyon-script.woff2") format("woff2"); }
/* Ricamificio Mauriello Sposa — tema 1.0 */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --blush: #f1e6dc;
  --ink: #26211e;
  --muted: #655c56;
  --accent: #7d5f34;
  --accent-soft: #b08d57;
  --line: #e6ddd2;
  --font-display: "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-script: "Pinyon Script", "Lucida Calligraphy", "Lucida Handwriting", "Apple Chancery", "URW Chancery L", cursive;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 2px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: 0.005em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
p { margin: 0 0 1.1em; }
.eyebrow { display: block; margin-bottom: 14px; font: 500 .78rem/1.4 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 46ch; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--blush { background: var(--blush); }
.section--ink { background: var(--ink); color: #f4ede4; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .eyebrow { color: var(--accent-soft); }
.section__head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: .8em 1.7em; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 500 .82rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; border-radius: var(--radius); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .97); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; line-height: 1; text-decoration: none; color: var(--ink); }
.brand__mark { width: auto; height: 44px; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font: 500 clamp(.8rem, 1.45vw, 1.02rem)/1.15 var(--font-display); letter-spacing: .2em; text-transform: lowercase; white-space: nowrap; }
.brand__tag { margin-top: 6px; font: 500 .62rem/1 var(--font-body); letter-spacing: .42em; text-transform: uppercase; color: var(--accent); }
.footer-logo img { width: min(280px, 70vw); height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: clamp(16px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav a { white-space: nowrap; color: var(--ink); text-decoration: none; font: 500 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; padding-block: 10px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav .current-menu-item > a, .nav a[aria-current="page"] { border-bottom-color: var(--accent-soft); color: var(--ink); }
.nav .btn { color: #fff; border-bottom: 1px solid var(--ink); padding: .8em 1.4em; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; padding: 0; color: var(--ink); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 24px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .25s, background .25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1279px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 24px var(--gutter) 40px; background: var(--bg); transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; overflow-y: auto; }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav ul a { display: block; padding: 20px 0; font-size: .9rem; border-bottom: 0; }
  .nav .btn { margin-top: 28px; }
}

/* Hero */
.hero { position: relative; display: grid; align-items: end; min-height: min(86vh, 820px); isolation: isolate; color: #fff; background: #3a322d; }
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 15, 12, .15) 0%, rgba(20, 15, 12, .35) 45%, rgba(20, 15, 12, .78) 100%); }
.hero__inner { padding-block: clamp(80px, 12vw, 140px) clamp(40px, 6vw, 72px); max-width: 780px; }
.hero h1 { color: #fff; font-weight: 400; margin-bottom: .35em; }
.hero h1 em { font: 400 1.32em/1 var(--font-script); color: #f3e2c4; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero .eyebrow { color: #ecd9bb; }
.hero p { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 52ch; color: #f4ede4; }
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.trust { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 0; padding: 22px 0; list-style: none; font: 500 .74rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); justify-content: center; border-bottom: 1px solid var(--line); }
.trust li::before { content: "◆"; margin-right: 12px; color: var(--accent-soft); font-size: .6em; vertical-align: .15em; }

/* Split / intro */
.split > * { min-width: 0; }
.split { display: grid; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__media { position: relative; }
.split__media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--accent-soft); z-index: -1; }
@media (max-width: 859px) { .split__media::before { inset: 12px -8px -12px 8px; } }

/* Cards (servizi) */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); flex: 1; }
.card a.more { font: 500 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--accent-soft); align-self: flex-start; padding-bottom: 6px; }

/* Gallery grid */
.mm-gallery { display: grid; gap: clamp(8px, 1.2vw, 16px); grid-template-columns: repeat(2, 1fr); margin: 0 0 2em; padding: 0; list-style: none; }
@media (min-width: 640px) { .mm-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .mm-gallery { grid-template-columns: repeat(4, 1fr); } }
.mm-gallery--feature { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .mm-gallery--feature { grid-template-columns: repeat(4, 1fr); } }
.mm-gallery__item { margin: 0; background: var(--blush); overflow: hidden; }
.mm-gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.mm-gallery__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
.mm-gallery__btn:hover img { transform: scale(1.04); }

.lightbox { width: min(96vw, 1100px); max-height: 94vh; padding: 0; border: 0; background: transparent; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgba(14, 10, 8, .92); }
.lightbox__img { max-height: 88vh; width: auto; margin: auto; object-fit: contain; }
.lightbox__btn { position: fixed; top: 50%; width: 52px; height: 52px; margin-top: -26px; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.35); color: #fff; font-size: 1.4rem; cursor: pointer; border-radius: 50%; }
.lightbox__btn:hover { background: #fff; color: var(--ink); }
.lightbox__prev { left: 12px; } .lightbox__next { right: 12px; }
.lightbox__close { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border: 0; background: transparent; color: #fff; font-size: 2rem; cursor: pointer; }
.lightbox__count { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; font-size: .85rem; letter-spacing: .1em; }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: center; margin: 0; padding: 0; list-style: none; }
.badges img { height: 88px; width: auto; object-fit: contain; }

/* Contact block */
.contact-grid { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }
.nap { font-style: normal; }
.nap p { margin-bottom: .6em; }
.nap strong { display: block; font: 500 .72rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-soft); }
.section--ink .nap a { color: #fff; }
.map-card { position: relative; min-height: 360px; background: #2f2824; border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; text-align: center; padding: 32px; }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font: 500 clamp(1.25rem, 2.2vw, 1.5rem)/1.25 var(--font-display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 1.8rem/1 var(--font-body); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 66ch; }

/* Pages / prose */
.page-hero { padding-block: clamp(48px, 8vw, 96px) clamp(24px, 4vw, 48px); text-align: center; background: var(--blush); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .2em; }
.page-hero .lead { margin-inline: auto; }
.breadcrumbs { font-size: .8rem; letter-spacing: .08em; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.prose { max-width: 740px; margin-inline: auto; }
.prose--wide { max-width: var(--wrap); }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.prose h3 { margin-top: 1.4em; }
.prose img { margin-block: 1.5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .aligncenter { margin-inline: auto; }
.prose iframe { width: 100%; border: 0; }
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* Forms (Contact Form 7) */
.wpcf7 label { display: block; font: 500 .74rem/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="date"], .wpcf7 textarea, .wpcf7 select { display: block; width: 100%; margin-top: 8px; padding: 14px 16px; border: 1px solid #cfc4b7; background: #fff; font: 400 1rem/1.4 var(--font-body); color: var(--ink); border-radius: var(--radius); letter-spacing: 0; text-transform: none; }
.wpcf7 textarea { min-height: 140px; }
.wpcf7 input[type="submit"] { min-height: 52px; padding: .9em 2.2em; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 500 .82rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; border-radius: var(--radius); }
.wpcf7 input[type="submit"]:hover { background: var(--accent); border-color: var(--accent); }
.wpcf7-not-valid-tip { color: #a3261c; font-size: .85rem; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 14px 16px; border-width: 1px; }

/* Footer */
.site-footer { background: #1e1a17; color: #d9cfc3; padding-block: clamp(48px, 7vw, 88px) 28px; font-size: .95rem; }
.site-footer a { color: #f4ede4; text-decoration: none; }
.site-footer a:hover { color: var(--accent-soft); }
.site-footer h2 { font: 500 .74rem/1.4 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 18px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand p { max-width: 38ch; margin-top: 18px; color: #bfb3a5; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .82rem; color: #9d9185; }

/* Instagram (plugin Smash Balloon) */
.insta-section #sb_instagram { padding: 0 !important; }
.insta-section #sb_instagram #sbi_images { padding: 0 !important; }
.insta-fallback { text-align: center; }

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

/* Floating call button (mobile) */
.call-fab { position: fixed; right: 14px; bottom: 14px; z-index: 40; display: none; align-items: center; gap: 10px; padding: 14px 20px; background: var(--ink); color: #fff; text-decoration: none; font: 500 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 6px 20px rgba(0,0,0,.25); border-radius: 999px; }
@media (max-width: 700px) { .call-fab { display: inline-flex; } body { padding-bottom: 72px; } }

/* 404 */
.notfound { text-align: center; padding-block: clamp(80px, 14vw, 180px); }
.notfound h1 { font-size: clamp(4rem, 14vw, 9rem); color: var(--accent-soft); }

/* Novità: Instagram + Facebook */
.social { display: grid; gap: clamp(32px, 5vw, 56px); }
@media (min-width: 960px) { .social { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.social__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.social__head h3 { margin: 0; }
.social__head a { font: 500 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.social-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); text-align: center; }
.social-card__name { font: 500 1.4rem/1.2 var(--font-display); color: var(--accent); }
.social__col #sb_instagram, .social__col #cff { max-width: 100%; }
.social__col #cff .cff-item { border-radius: 0 !important; }

/* Scritte calligrafiche */
.script { font-family: var(--font-script); font-weight: 400; font-size: 1.22em; color: var(--accent); }
.section__head .eyebrow, .eyebrow { font-family: var(--font-body); }
.cta-band h2 .script, .section--ink h2 .script { color: var(--accent-soft); }
.card .more { }
.site-header { }

/* Icone social */
.icon { flex: none; vertical-align: -.2em; }
.nav__social { display: flex; align-items: center; gap: 14px; }
.nav__social a { display: inline-flex; padding: 8px 4px; border-bottom: 0; color: var(--ink); }
.nav__social a:hover { color: var(--accent); }
@media (max-width: 1279px) { .nav__social { margin-top: 24px; gap: 22px; } }
.social__head h3 { display: flex; align-items: center; gap: 10px; }
.social-card__icon { display: inline-flex; color: var(--accent); margin-bottom: 8px; }
.social-card .btn { gap: 10px; }
.footer-list .social-link { display: inline-flex; align-items: center; gap: 10px; }

/* Su misura */
.page-hero--tall { padding-block: clamp(64px, 10vw, 128px) clamp(40px, 6vw, 72px); }
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero h1 .script { font-size: 1.2em; }
.trio { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio__item { margin: 0; background: var(--surface); border: 1px solid var(--line); }
.trio__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.trio__item figcaption { padding: 24px 24px 28px; }
.trio__item h3 { margin-bottom: .3em; }
.trio__item p { margin: 0; color: var(--muted); }

/* Intestazione: più spazio e niente sovrapposizioni */
.site-header .wrap { width: min(100% - 2 * var(--gutter), 1400px); }
.site-header__inner { gap: 20px; }
.nav { gap: 22px; }
.nav ul { gap: clamp(14px, 1.6vw, 26px); }
.brand { flex: none; }
.brand__name { letter-spacing: .15em; }
@media (min-width: 1280px) and (max-width: 1599px) { .nav__social { display: none; } }

/* Orari */
.hours { list-style: none; margin: 0 0 1.2em; padding: 0; max-width: 320px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hours li.is-closed span:last-child { color: var(--muted); font-style: italic; }
.site-footer .hours li, .section--ink .hours li { border-bottom-color: rgba(255, 255, 255, .14); }
.hours-title { margin-top: 22px; }
.prose .hours { max-width: 360px; }