/* Pendaglio's Man — design system (blu notte, avorio, oro; titoli serif, etichette rigide) */

@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-italic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #141B2D;
  --ink-soft: #353C4E;
  --muted: #5C6272;
  --bg: #F7F5F1;
  --bg-alt: #EFEBE4;
  --bg-warm: #EEE6D8;
  --white: #FFFFFF;
  --line: #E3DED5;
  --gold: #B8924A;
  --gold-text: #7A5C24;
  --gold-light: #D9B56C;
  --night: #141B2D;
  --night-2: #1C2438;
  --teal: #0F6E6E;
  --teal-deep: #0C4952;
  --teal-logo: #1F9EA6;
  /* oro "vivo": sfumatura metallica per pulsanti e dettagli */
  --gold-grad: linear-gradient(120deg, #A2732B 0%, #C9A04F 28%, #EED596 50%, #C9A04F 72%, #A2732B 100%);
  --gold-text-grad: linear-gradient(110deg, #7A521C 0%, #B4842F 45%, #7A521C 100%);
  --gold-light-grad: linear-gradient(110deg, #D9B56C 0%, #F6E3AE 45%, #D9B56C 100%);
  --ig-grad: linear-gradient(45deg, #FFD600 0%, #FF7A00 25%, #FF0069 50%, #D300C5 75%, #7638FA 100%);
  --danger: #B42318;
  --success: #2E7D4F;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* grana leggera tipo carta: toglie l'effetto "piatto" senza appesantire */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .1 0 0 0 0 .17 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --radius-sm: 2px;
  --radius: 2px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 2px rgba(20, 27, 45, .06);
  --shadow: 0 8px 24px rgba(20, 27, 45, .08);
  --shadow-lg: 0 30px 70px -28px rgba(20, 27, 45, .32);
  --shadow-card: 0 1px 2px rgba(20, 27, 45, .05), 0 0 0 1px rgba(20, 27, 45, .05);
  --shadow-hover: 0 24px 48px -20px rgba(20, 27, 45, .3), 0 0 0 1px rgba(20, 27, 45, .04);
  --header-h: 76px;
  --h-control: 52px;      /* pulsanti e campi */
  --h-control-sm: 42px;   /* pulsanti piccoli, scelte */
  --h-icon: 44px;         /* pulsanti con sola icona */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(18px, 4vw, 48px);
}

/* Navigazione tra le pagine con dissolvenza (browser che la supportano) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
dialog { margin: auto; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--ink);
  background: var(--bg) var(--grain); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--gold-light); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 1em; height: 1em; }
.i-lg { width: 40px; height: 40px; stroke-width: 1.1; }
.i-fill { fill: currentColor; stroke: none; }

.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 2000; background: var(--ink); color: #fff;
  padding: 10px 16px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--gold-light); }
.section-title {
  font-family: var(--font-serif); font-weight: 500; line-height: 1.1; letter-spacing: -.01em;
  font-size: clamp(32px, 4vw, 52px); color: var(--ink); text-wrap: balance; font-variant-numeric: lining-nums;
}
.section-title em, .hero-title em {
  font-style: italic; padding-right: .04em; margin-right: -.04em; -webkit-box-decoration-break: clone;
  background: var(--gold-text-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-lead { color: var(--ink-soft); font-size: clamp(16px, 1.4vw, 17.5px); margin-top: 16px; max-width: 54ch; }
.muted { color: var(--muted); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h-control); padding: 0 30px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.btn .i { width: 16px; height: 16px; }
.btn > span { line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .7; cursor: progress; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2A334B; box-shadow: 0 10px 22px -12px rgba(20, 27, 45, .6); }
.btn-gold {
  background: var(--gold-grad); background-size: 220% 100%; background-position: 0% 0; color: #17120A; border: 0;
  box-shadow: 0 12px 26px -14px rgba(162, 115, 43, .85), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: background-position .7s var(--ease), box-shadow .3s, transform .25s var(--ease);
}
.btn-gold:hover { background-position: 100% 0; box-shadow: 0 16px 32px -14px rgba(162, 115, 43, .95), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-instagram { background: var(--ig-grad); color: #fff; border: 0; box-shadow: 0 12px 26px -14px rgba(211, 0, 197, .7); }
.btn-instagram:hover { filter: saturate(1.15) brightness(1.04); box-shadow: 0 16px 32px -14px rgba(255, 0, 105, .75); }
.btn-instagram .i { width: 18px; height: 18px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { min-height: var(--h-control-sm); padding: 0 20px; font-size: 11.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.actions-center { justify-content: center; }

.icon-btn {
  display: inline-grid; place-items: center; width: var(--h-icon); height: var(--h-icon);
  color: var(--ink); background: #fff; transition: background-color .2s;
}
.icon-btn:hover { background: var(--bg-alt); }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link:hover { color: var(--gold-text); }
.text-link {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.text-link .i { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.text-link:hover .i { transform: translateX(4px); }
.text-link-light { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .84); color: var(--ink); border-bottom: 1px solid rgba(20, 27, 45, .08);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  transition: background .35s, color .35s, border-color .35s, box-shadow .35s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(20, 27, 45, .25); }
.site-header[data-mode="overlay"]:not(.is-scrolled) {
  background: rgba(10, 14, 26, .22); color: #fff; border-color: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
}
.header-inner {
  height: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; min-width: 0; }
.brand-mark {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border: 1px solid currentColor; font-family: var(--font-serif); font-weight: 600; font-size: 20px; line-height: 1;
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; gap: 28px; list-style: none; padding: 0; }
.nav-list a {
  position: relative; text-decoration: none; padding: 8px 0; white-space: nowrap;
  font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}
.nav-list a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-account { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--h-control-sm); padding: 0 18px;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  border: 1px solid currentColor; transition: background-color .2s, color .2s; white-space: nowrap;
}
.nav-btn .i { width: 16px; height: 16px; }
.nav-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.site-header[data-mode="overlay"]:not(.is-scrolled) .nav-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

.menu-toggle { display: none; width: var(--h-icon); height: var(--h-icon); position: relative; color: inherit; }
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .brand-name { font-size: 13px; letter-spacing: .2em; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; z-index: 99; color: var(--ink);
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 8px var(--gutter) 28px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(20, 27, 45, .1);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu-open .site-header, .menu-open .site-header[data-mode="overlay"]:not(.is-scrolled) { background: #fff; color: var(--ink); border-color: var(--line); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 18px 2px; font-size: 13px; border-bottom: 1px solid var(--line); }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--gold-text) !important; }
  .nav-account { flex-wrap: wrap; gap: 10px; padding-top: 18px; }
  .nav-btn { min-height: var(--h-control); padding: 0 22px; }
  .site-header .site-nav .nav-btn { color: var(--ink); border-color: var(--ink); }
}

/* ---------- Ingresso a tutta larghezza ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--night);
  min-height: 100svh; display: flex; align-items: flex-end;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 42% 50%; animation: hero-in 2.4s var(--ease) both; }
@keyframes hero-in { from { transform: scale(1.06); opacity: .6; } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 14, 26, .72) 0%, rgba(10, 14, 26, .35) 45%, rgba(10, 14, 26, .05) 75%),
    linear-gradient(0deg, rgba(10, 14, 26, .62) 0%, rgba(10, 14, 26, 0) 50%);
}
.hero-content { width: 100%; padding-top: calc(var(--header-h) + 32px); padding-bottom: clamp(72px, 14vh, 150px); }
.hero-title {
  font-family: var(--font-serif); font-weight: 500; line-height: 1.04; letter-spacing: -.015em;
  font-size: clamp(42px, 6.4vw, 92px); color: #fff; max-width: 14ch; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(10, 14, 26, .35);
}
.hero-title em, .band .section-title em, .featured .section-title em, .contact-aside .section-title em { background-image: var(--gold-light-grad); }
.hero .actions { margin-top: 40px; }
@keyframes pan-mobile { from { translate: 0 0; } to { translate: calc(-100% + 100cqw) 0; } }
@media (max-width: 760px) {
  .hero .hero-media { container-type: inline-size; }
  .hero .hero-media picture, .hero .hero-media img { right: auto; width: auto; min-width: 100%; max-width: none; }
  .hero .hero-media img { animation: pan-mobile 90s ease-in-out infinite alternate; }
  .hero::before { background: linear-gradient(0deg, rgba(10, 14, 26, .85) 0%, rgba(10, 14, 26, .4) 55%, rgba(10, 14, 26, .25) 100%); }
  .hero .actions { margin-top: 30px; }
}

/* Fascia dei punti di forza: scheda bianca subito sotto la foto */
.strip { position: relative; z-index: 3; padding-top: clamp(36px, 5vw, 64px); }
.strip-on-night { background: var(--night); }
.strip + .section-collection { padding-top: clamp(64px, 7vw, 100px); }
.strip-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; box-shadow: var(--shadow-lg); }
.strip-grid::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-grad); }
@media (min-width: 900px) { .strip-grid { grid-template-columns: repeat(4, 1fr); } }
.strip-item { padding: clamp(24px, 3vw, 40px) clamp(16px, 2.4vw, 32px); border-right: 1px solid var(--line); }
.strip-item:last-child { border-right: 0; }
@media (max-width: 899px) {
  .strip-item:nth-child(2n) { border-right: 0; }
  .strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.strip-item .i {
  width: 46px; height: 46px; padding: 12px; margin-bottom: 16px; border-radius: 50%;
  background: var(--gold-grad); color: var(--ink); stroke-width: 1.6; box-shadow: 0 8px 18px -10px rgba(162, 115, 43, .9);
}
.strip-item h3 { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.strip-item p { color: var(--muted); font-size: 14.5px; margin-top: 8px; line-height: 1.6; }
@media (max-width: 480px) {
  .strip-item { padding: 20px 14px; }
  .strip-item p { font-size: 13.5px; }
  .strip-item h3 { font-size: 11px; letter-spacing: .16em; }
}

/* ---------- Sezioni ---------- */
.section { position: relative; padding-block: clamp(76px, 9vw, 128px); }
.section-white { background: #fff; }
.section-alt { background: var(--bg-alt); }
.section-warm { background: var(--bg-warm) var(--grain); }
.section-head { margin-bottom: clamp(30px, 4vw, 48px); }
.section-head-center { text-align: center; }
.section-head-center .section-lead { margin-inline: auto; }

/* motivo a maioliche, appena accennato, sulle fasce scure */
.pattern-night { position: relative; isolation: isolate; background: var(--night); }
.pattern-night::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url('/img/maiolica-filo.svg') 0 0 / 72px 72px; opacity: .06;
}

.split { display: grid; gap: clamp(40px, 6vw, 100px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split-text p:not(.eyebrow) { margin-top: 18px; font-size: 16.5px; max-width: 50ch; color: var(--ink-soft); }
.split-text .section-title { max-width: 16ch; }
.split-text strong { color: var(--ink); font-weight: 600; }
.split-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-alt); width: 100%; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media-plain { background: transparent; }

/* Fascia con immagine di sfondo */
.band {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--night);
  min-height: clamp(440px, 64vh, 660px); display: grid; place-items: center; text-align: center;
  padding: clamp(72px, 10vw, 120px) var(--gutter);
}
.band-media, .band-media img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.band-media img { object-fit: cover; object-position: 50% 60%; }
.band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 14, 26, .5), rgba(10, 14, 26, .68)); }
.band-content { max-width: 720px; }
.band .section-title { color: #fff; }
.band p:not(.eyebrow) { margin: 18px auto 0; max-width: 52ch; color: rgba(255, 255, 255, .86); font-size: 17px; }
.band .eyebrow::after { content: ''; width: 32px; height: 1px; background: currentColor; }

/* ---------- In evidenza (sezione scelta dal pannello) ---------- */
.featured { position: relative; isolation: isolate; background: linear-gradient(170deg, #141B2D 0%, #132638 55%, #0D4650 100%); color: #fff; padding-block: clamp(64px, 8vw, 104px); overflow: hidden; }
.featured::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url('/img/maiolica-filo.svg') 0 0 / 72px 72px; opacity: .045;
}
.featured-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.featured .section-title { color: #fff; }
.feat-scroller { position: relative; }
.feat-track { list-style: none; padding: 0 0 6px; margin: 0; display: flex; gap: clamp(12px, 1.6vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: default; }
.feat-item { flex: 0 0 clamp(150px, 21vw, 264px); scroll-snap-align: start; }
@media (max-width: 640px) { .feat-item { flex-basis: 40vw; } }
.feat-link { display: block; width: 100%; text-align: left; color: inherit; cursor: zoom-in; }
.feat-media { position: relative; display: block; aspect-ratio: 4 / 5; background: #fff; overflow: hidden; }
.feat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .5s; }
@media (hover: hover) { .feat-link:hover .feat-media img { transform: scale(1.05); } }
.feat-title { display: block; margin-top: 14px; font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.45; color: #fff; }
.feat-scroller .car-nav { top: calc(50% - 22px); }
.feat-scroller .car-nav.prev { left: -6px; }
.feat-scroller .car-nav.next { right: -6px; }

/* ---------- Collezione ---------- */
.filters-bar { margin-bottom: clamp(28px, 3.5vw, 44px); border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  position: relative; flex: none; padding: 14px 0; font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: color .2s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.chip::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-grad); transform: scaleX(0); transition: transform .3s var(--ease); }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); }
.chip[aria-pressed="true"]::after { transform: scaleX(1); }
.chip-n { font-size: 10.5px; letter-spacing: .04em; color: var(--gold-text); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .filters { gap: 22px; mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 32px; }
}

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.grid-empty { text-align: center; color: var(--muted); padding: 40px 16px; }

.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: #fff; box-shadow: var(--shadow-card);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
  .card:hover .car-track img { transform: scale(1.04); }
}
.card.is-filtered-in { animation: card-in .45s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
.card-media { position: relative; aspect-ratio: 4 / 5; background: #fff; overflow: hidden; }
.card.is-sold .car-track img { filter: grayscale(.35) brightness(.97); }

.carousel { position: relative; }
.car-track {
  display: flex; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: zoom-in;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track img {
  flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center;
  user-select: none; -webkit-user-drag: none; transition: transform .9s var(--ease), opacity .5s;
}
/* le foto compaiono con una dissolvenza quando sono pronte */
.js .card .car-track img:not(.is-loaded), .js .feat-media img:not(.is-loaded) { opacity: 0; }
.car-nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .95); color: var(--ink); opacity: 0; transition: opacity .2s;
  box-shadow: 0 4px 14px rgba(20, 27, 45, .15);
}
.car-nav .i { width: 18px; height: 18px; }
.car-nav.prev { left: 0; }
.car-nav.next { right: 0; }
.car-nav[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: hover) { .carousel:hover .car-nav, .car-nav:focus-visible { opacity: 1; } }
.car-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.car-dots span { width: 14px; height: 2px; background: rgba(20, 27, 45, .25); transition: background-color .2s; }
.car-dots span.is-active { background: var(--ink); }

.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 36px; min-width: 36px; padding: 0 9px;
  background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 12.5px; font-weight: 600; transition: color .2s;
  box-shadow: 0 2px 8px rgba(20, 27, 45, .08);
}
.fav-btn .i { width: 18px; height: 18px; }
.fav-btn:hover { color: var(--gold-text); }
.fav-btn[aria-pressed="true"], #viewer-fav[aria-pressed="true"] { color: #A23B2A; }
.fav-btn[aria-pressed="true"] .i, #viewer-fav[aria-pressed="true"] .i { fill: currentColor; }
.fav-n:empty { display: none; }
.pop .i { animation: pop .3s var(--ease); }
@keyframes pop { 50% { transform: scale(1.2); } }

.badge-sold {
  position: absolute; top: 10px; left: 10px; z-index: 3; padding: 5px 10px;
  background: var(--ink); color: #fff; font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.badge-inline { position: static; display: inline-block; margin-bottom: 16px; align-self: flex-start; }

.card-body { position: relative; padding: 16px 18px 20px; border-top: 1px solid rgba(20, 27, 45, .05); }
.card-title { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.45; color: var(--ink); }
.card-link { color: inherit; text-align: left; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.card-link::after { content: ''; position: absolute; inset: 0; }
.card-desc {
  margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-zoom:focus-visible { position: absolute !important; inset: 0; width: auto; height: auto; margin: 0; clip: auto; z-index: 2; outline-offset: -4px; }
@media (max-width: 639px) {
  .card-body { padding: 12px 12px 14px; }
  .card-title { font-size: 11px; letter-spacing: .1em; }
  .card-desc { font-size: 12.5px; }
  .fav-btn { top: 6px; right: 6px; height: 32px; min-width: 32px; padding: 0 7px; }
  .badge-sold { top: 6px; left: 6px; font-size: 9px; padding: 4px 7px; }
}

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 72px 24px;
  background: #fff; box-shadow: var(--shadow-card); color: var(--muted);
}
.empty-state .i { margin: 0 auto 18px; color: var(--gold); }
.empty-state h3 { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.empty-state a { color: var(--ink); font-weight: 600; }

/* ---------- Pendagli in sequenza (mazzo che gira) ---------- */
.story-media { position: relative; }
.showcase { display: grid; gap: 20px; }
.sc-stage { position: relative; aspect-ratio: 4 / 5; }
.sc-card {
  position: absolute; left: 0; top: 4%; width: 84%; height: 92%; padding: 0; overflow: hidden; background: #fff; cursor: zoom-in;
  box-shadow: 0 34px 60px -34px rgba(20, 27, 45, .55), 0 0 0 1px rgba(20, 27, 45, .05);
  opacity: 0; transform: translateX(14%) rotate(6deg) scale(.86); transform-origin: 50% 100%;
  transition: transform 1.1s var(--ease), opacity .9s ease; pointer-events: none;
}
.sc-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s, transform 1.2s var(--ease); }
.sc-card img.is-loaded { opacity: 1; }
.sc-card.is-next2 { z-index: 1; opacity: .5; transform: translateX(13%) translateY(-1.5%) rotate(5deg) scale(.88); }
.sc-card.is-next { z-index: 2; opacity: .85; transform: translateX(7%) translateY(-.5%) rotate(2.5deg) scale(.94); pointer-events: auto; cursor: pointer; }
.sc-card.is-front { z-index: 3; opacity: 1; transform: none; pointer-events: auto; }
.sc-card.is-out { z-index: 4; opacity: 0; transform: translateX(-16%) translateY(4%) rotate(-8deg) scale(1.02); }
@media (hover: hover) { .sc-card.is-front:hover img { transform: scale(1.04); } }
.sc-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 84%; }
.sc-caption { display: grid; gap: 2px; min-width: 0; }
.sc-count { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.sc-count b { color: var(--gold-text); font-weight: 600; }
.sc-title { font-family: var(--font-serif); font-size: clamp(20px, 2vw, 24px); line-height: 1.25; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-nav { display: flex; gap: 8px; flex: none; }
.sc-btn { width: var(--h-icon); height: var(--h-icon); display: grid; place-items: center; border: 1px solid rgba(20, 27, 45, .25); color: var(--ink); transition: background-color .2s, color .2s, border-color .2s; }
.sc-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.sc-btn .i { width: 18px; height: 18px; }
.sc-progress { width: 84%; height: 2px; background: rgba(20, 27, 45, .12); overflow: hidden; }
.sc-progress span { display: block; height: 100%; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); }
.showcase.is-running .sc-progress span { animation: sc-fill var(--sc-delay, 3.8s) linear forwards; }
.showcase.is-paused .sc-progress span { animation-play-state: paused; }
@keyframes sc-fill { to { transform: scaleX(1); } }
.tag-still { display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 8%; }
.tag-still img { filter: drop-shadow(0 18px 26px rgba(20, 27, 45, .28)); rotate: -3deg; }
@media (max-width: 899px) {
  .sc-card, .sc-bar, .sc-progress { width: 86%; }
  .sc-stage { aspect-ratio: 1 / 1.08; }
}

/* ---------- Dettaglio pendaglio ---------- */
.viewer {
  width: min(1100px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 0; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden;
}
.viewer[open] { animation: dlg-in .3s var(--ease); }
.viewer::backdrop { background: rgba(10, 14, 26, .6); }
.viewer-grid { display: grid; max-height: calc(100dvh - 32px); }
.viewer-media { aspect-ratio: 1; background: #fff; }
.viewer-media .car-track { cursor: grab; }
.viewer-media .car-track img { object-fit: contain; background: #fff; }
.viewer-media .car-nav { width: var(--h-icon); height: var(--h-icon); opacity: 1; }
.viewer-info { position: relative; display: flex; flex-direction: column; padding: 30px 24px; overflow-y: auto; }
.viewer-title { font-family: var(--font-serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-weight: 500; color: var(--ink); padding-right: 40px; }
.viewer-desc { margin-top: 16px; color: var(--ink-soft); white-space: pre-line; }
.viewer-desc:empty { display: none; }
.viewer-note { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--gold-text); }
.viewer-actions { display: grid; gap: 10px; margin-top: 28px; }
.viewer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.viewer-row .btn { padding-inline: 10px; gap: 8px; letter-spacing: .12em; }
.viewer-x { position: absolute; top: 12px; right: 12px; z-index: 5; }
@media (min-width: 820px) {
  .viewer-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .viewer-media { aspect-ratio: 1; max-height: calc(100dvh - 32px); }
  .viewer-info { padding: 56px 44px 40px; justify-content: center; }
}
@media (max-width: 819px) {
  .viewer { width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; }
  .viewer-grid { max-height: 100dvh; height: 100%; grid-template-rows: auto 1fr; overflow-y: auto; }
  .viewer-media { max-height: 62dvh; aspect-ratio: auto; height: min(100vw, 62dvh); }
}

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; }
.form-card { position: relative; background: #fff; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-card); }
.form-title { font-family: var(--font-serif); font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; line-height: 1.2; color: var(--ink); margin-bottom: 4px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; border: 0; padding: 0; }
.field label, .field legend { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.field legend { margin-bottom: 10px; padding: 0; }
.optional { font-weight: 500; color: var(--muted); letter-spacing: .1em; margin-left: 6px; }
.field-row { display: grid; gap: 18px; align-items: start; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="url"], input[type="search"], textarea, select {
  width: 100%; height: var(--h-control); padding: 0 16px; border-radius: var(--radius);
  border: 1px solid #D5CEC2; background: #fff; color: var(--ink);
  font-size: 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
textarea { height: auto; min-height: 136px; padding: 14px 16px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #9A9EAA; }
input:hover, textarea:hover, select:hover { border-color: #B9B0A2; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 160, 79, .22); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 1px var(--danger); }
.field-error { font-size: 13px; line-height: 1.45; color: var(--danger); font-weight: 500; }
.field-error:empty { display: none; }
.field-hint { font-size: 13px; color: var(--muted); }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.form-note a { color: var(--ink); }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }

.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 54px; }
.pass-toggle { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: var(--h-icon); height: var(--h-icon); display: grid; place-items: center; color: var(--muted); }
.pass-toggle:hover { color: var(--ink); }
.pass-toggle .i-hide, .pass-toggle[aria-pressed="true"] .i-show { display: none; }
.pass-toggle[aria-pressed="true"] .i-hide { display: block; }
.strength { height: 2px; background: var(--bg-alt); overflow: hidden; }
.strength span { display: block; height: 100%; width: 0; transition: width .3s, background-color .3s; }

.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chips label { position: relative; cursor: pointer; font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.choice-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-chips span {
  display: inline-flex; align-items: center; min-height: var(--h-control-sm); padding: 0 16px;
  border: 1px solid #D5CEC2; background: #fff; font-size: 14px; transition: border-color .2s, background-color .2s, color .2s;
}
.choice-chips label:hover span { border-color: var(--ink); }
.choice-chips input:checked + span { background: linear-gradient(135deg, #0E5963, #141B2D); border-color: transparent; color: #fff; }
.choice-chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Contatti ---------- */
.contact-card { position: relative; display: grid; background: #fff; box-shadow: 0 40px 80px -36px rgba(20, 27, 45, .45); }
.contact-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2; background: var(--gold-grad); }
@media (min-width: 960px) { .contact-card { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); } }
.contact-aside {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(155deg, #0E5963 0%, #0F3B49 45%, #141B2D 100%); color: rgba(255, 255, 255, .8); padding: clamp(30px, 5vw, 60px);
}
.contact-aside::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url('/img/maiolica-filo.svg') 0 0 / 72px 72px; opacity: .05;
}
.contact-aside .section-title { color: #fff; }
.contact-lead { margin-top: 16px; max-width: 40ch; font-size: 16px; }
.contact-channels { list-style: none; padding: 0; margin: 36px 0 40px; display: grid; gap: 20px; }
.contact-channels li { display: flex; align-items: center; gap: 16px; min-width: 0; }
.contact-channels li > div { min-width: 0; }
.cc-icon {
  width: var(--h-icon); height: var(--h-icon); flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold-grad); color: var(--ink); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6);
}
.cc-icon .i { width: 20px; height: 20px; }
.contact-channels small, .contact-social small {
  display: block; font-family: var(--font-display); font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55); line-height: 1.4; margin-bottom: 3px;
}
.contact-channels a, .contact-channels span { color: #fff; font-size: 15.5px; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }
.contact-channels a:hover { text-decoration: underline; }
.contact-social {
  margin-top: auto; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.contact-social small { margin: 0; }
.contact-form { padding: clamp(28px, 5vw, 60px); align-content: start; background: linear-gradient(180deg, #fff 0%, #FDFBF7 100%); }
.form-title::after { content: ''; display: block; width: 44px; height: 2px; margin-top: 14px; background: var(--gold-grad); }

.social { display: flex; gap: 10px; }
.social a {
  width: var(--h-icon); height: var(--h-icon); display: grid; place-items: center; border-radius: 10px;
  background: #fff; box-shadow: 0 6px 16px -8px rgba(20, 27, 45, .45), 0 0 0 1px rgba(20, 27, 45, .06);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.social a .i { width: 22px; height: 22px; }
.social a:hover, .social a:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 24px -10px rgba(20, 27, 45, .55), 0 0 0 1px rgba(20, 27, 45, .06); }
.i-brand { fill: currentColor; stroke: none; }

/* ---------- Pagine interne ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--night);
  min-height: clamp(380px, 58svh, 560px); display: flex; align-items: flex-end;
}
.page-hero .hero-media img { object-position: 78% 55%; animation: none; }
.page-hero-sm { min-height: clamp(340px, 50svh, 500px); }
.page-hero-sm .hero-media img { object-position: 50% 58%; }
.page-hero-sm::before { background: linear-gradient(90deg, rgba(10, 14, 26, .7) 0%, rgba(10, 14, 26, .2) 70%), linear-gradient(0deg, rgba(10, 14, 26, .6) 0%, rgba(10, 14, 26, 0) 60%); }
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(10, 14, 26, .72) 0%, rgba(10, 14, 26, .25) 60%, rgba(10, 14, 26, .38) 100%);
}
.page-hero .hero-content { padding-bottom: clamp(44px, 7vh, 80px); padding-top: calc(var(--header-h) + 40px); }
.page-head { padding: calc(var(--header-h) + clamp(56px, 7vw, 96px)) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); background: #fff; }
.page-head-warm { background: var(--bg-warm) var(--grain); border-bottom: 0; }
.page-title { font-family: var(--font-serif); font-weight: 500; line-height: 1.05; letter-spacing: -.015em; font-size: clamp(40px, 5.6vw, 72px); }
.page-lead { margin-top: 16px; max-width: 52ch; font-size: clamp(16px, 1.5vw, 18px); color: var(--ink-soft); }
.page-hero .page-lead { color: rgba(255, 255, 255, .88); }

.tags { list-style: none; padding: 0; margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 14px; font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); background: var(--bg); border: 1px solid var(--line); }

/* Chi sono: il cartellino (logo) che oscilla, si inclina col mouse e si gira con calma */
.tag-stage { position: relative; display: grid; justify-items: center; gap: 30px; padding: clamp(12px, 3vw, 32px) 0; }
.tag-sway { width: min(100%, 560px); perspective: 1500px; transform-origin: 4% 50%; animation: tag-sway 6.5s ease-in-out infinite alternate; }
@keyframes tag-sway { from { rotate: -2.6deg; } to { rotate: .8deg; } }
.tag-tilt { transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--ease); }
.tag-card {
  position: relative; display: block; width: 100%; aspect-ratio: 1200 / 434; padding: 0;
  transform-style: preserve-3d; transition: transform 1.3s cubic-bezier(.45, .05, .15, 1);
}
.tag-card[aria-pressed="true"] { transform: rotateY(180deg); }
.tag-card.is-flipping { animation: tag-lift 1.3s cubic-bezier(.45, .05, .15, 1); }
.tag-card.is-peek { animation: tag-peek 1.8s cubic-bezier(.45, .05, .15, 1); }
@keyframes tag-lift { 50% { scale: 1.07; } }
@keyframes tag-peek { 45% { rotate: y 26deg; scale: 1.03; } }
.tag-face {
  position: absolute; inset: 0; border-radius: 4.4% / 12.2%; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 26px 46px -22px rgba(20, 27, 45, .55), 0 6px 14px -6px rgba(20, 27, 45, .25);
}
.tag-face img { width: 100%; height: 100%; }
.tag-back { transform: rotateY(180deg); }
.tag-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .4s;
  font-family: var(--font-display); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.tag-hint .i { width: 15px; height: 15px; }

.luoghi { margin-top: 30px; }
.luoghi h3 { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); }
.luoghi .tags { margin-top: 12px; }

.cta-strip { background: var(--bg-warm) var(--grain); padding-block: clamp(56px, 7vw, 92px); border-top: 1px solid var(--line); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta-strip p:not(.eyebrow) { color: var(--ink-soft); margin-top: 12px; max-width: 52ch; }
.cta-strip .actions { margin-top: 0; }

/* Su richiesta */
.steps {
  list-style: none; padding: 0; margin: 0 auto clamp(32px, 4vw, 48px); max-width: 980px;
  display: grid; gap: 1px; background: var(--line); box-shadow: var(--shadow-card);
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; background: #fff; }
.step-n {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--gold-grad); color: var(--ink); font-family: var(--font-serif); font-size: 18px; line-height: 1; font-variant-numeric: lining-nums;
}
.steps h3 { font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; line-height: 1.5; padding-top: 2px; }
.steps p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 4px; }
.request-card {
  position: relative; max-width: 820px; margin: 0 auto; background: #fff; box-shadow: 0 40px 80px -36px rgba(20, 27, 45, .45);
  padding: clamp(22px, 4.5vw, 52px);
}
.request-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-grad); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); margin-bottom: 28px; }
.seg-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h-control); padding: 0 10px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  transition: background-color .25s, color .25s;
}
.seg-btn .i { width: 17px; height: 17px; }
.seg-btn:hover { background: var(--bg); }
.seg-btn[aria-selected="true"] { background: linear-gradient(135deg, #0E5963, #141B2D); color: #fff; }
.seg-btn[aria-selected="true"] .i { color: var(--gold-light); }
.seg-panel { animation: panel-in .35s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
.panel-intro { text-align: center; color: var(--ink-soft); margin: 0 auto 26px; max-width: 52ch; }
.request-card .form-note { margin-top: 20px; }
@media (max-width: 420px) { .seg-btn { letter-spacing: .12em; font-size: 11px; gap: 8px; } }

/* Dove trovarmi */
.where-grid.has-map { display: grid; gap: clamp(24px, 3vw, 40px); align-items: start; }
@media (min-width: 980px) { .where-grid.has-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.where-grid.no-map .where-list { max-width: 820px; margin-inline: auto; }
.where-list { display: grid; gap: 18px; min-width: 0; }
.where-map-wrap { position: relative; height: clamp(320px, 50vh, 560px); box-shadow: var(--shadow-lg); background: var(--bg-alt); }
@media (min-width: 980px) { .where-map-wrap { position: sticky; top: calc(var(--header-h) + 24px); height: min(620px, calc(100vh - var(--header-h) - 48px)); } }
@media (max-width: 979px) { .where-map-wrap { order: -1; } }
.where-map { position: absolute; inset: 0; z-index: 0; }
.where-map .leaflet-tile-pane { filter: saturate(.6) sepia(.1); }
.where-map .leaflet-container, .where-map.leaflet-container { font-family: var(--font-body); background: var(--bg-alt); }
.map-cover {
  position: absolute; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; padding: 0 16px 18px;
  background: linear-gradient(0deg, rgba(20, 27, 45, .3), transparent 45%);
}
.map-cover-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; background: rgba(20, 27, 45, .88); color: #fff;
  font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.map-cover-pill .i { width: 16px; height: 16px; }
.where-map-wrap.is-active .map-cover { display: none; }
@media (hover: hover) and (pointer: fine) { .map-cover { display: none; } }
.pm-pin { filter: drop-shadow(0 4px 6px rgba(20, 27, 45, .35)); }
.leaflet-popup-content-wrapper { border-radius: 2px !important; box-shadow: var(--shadow) !important; }
.leaflet-popup-content { margin: 14px 18px !important; font-size: 14px; line-height: 1.5; }
.leaflet-popup-content strong { display: block; font-family: var(--font-serif); font-size: 17px; font-weight: 500; }

.event {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 24px; align-items: start;
  background: #fff; padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-card); border-left: 3px solid transparent;
  transition: box-shadow .3s var(--ease);
}
.event.status-now { border-left-color: var(--gold); }
.event.is-focused { box-shadow: var(--shadow-hover); }
.event-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; height: 88px;
  background: var(--bg); border: 1px solid var(--line); text-align: center;
}
.ed-day { font-family: var(--font-serif); font-size: 28px; line-height: 1; font-variant-numeric: lining-nums; color: var(--ink); white-space: nowrap; }
.ed-month { margin-top: 8px; font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.ed-icon .i { width: 28px; height: 28px; color: var(--gold); }
.event-status { font-family: var(--font-display); font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); }
.event-title { margin-top: 6px; font-family: var(--font-serif); font-size: clamp(23px, 2.3vw, 30px); font-weight: 500; line-height: 1.2; color: var(--ink); }
.event-meta { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.event-meta li { display: flex; gap: 12px; align-items: flex-start; }
.event-meta .i { width: 18px; height: 18px; margin-top: 3px; color: var(--gold); }
.event-meta strong { color: var(--ink); font-weight: 600; }
.event-desc { margin-top: 14px; color: var(--ink-soft); white-space: pre-line; }
.event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; }
.event-actions .text-link { font-size: 11.5px; }
@media (max-width: 560px) {
  .event { grid-template-columns: 1fr; gap: 14px; }
  .event-date { flex-direction: row; gap: 10px; height: auto; width: fit-content; padding: 8px 14px; }
  .ed-day { font-size: 22px; }
  .ed-month { margin-top: 0; }
  .event-actions .btn { flex: 1 1 auto; }
}
.where-empty { background: #fff; box-shadow: var(--shadow-card); text-align: center; padding: clamp(40px, 6vw, 72px) 24px; }
.where-empty-icon { display: inline-grid; color: var(--gold); margin-bottom: 18px; }
.where-empty h2 { font-family: var(--font-serif); font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; color: var(--ink); }
.where-empty p { color: var(--muted); max-width: 46ch; margin: 12px auto 0; }
.section-past { padding-top: 0; }
.past-head { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.past-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.past-list li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.past-date { color: var(--gold-text); font-variant-numeric: tabular-nums; }
.past-title { color: var(--ink); font-weight: 600; }
.past-place { color: var(--muted); }
@media (max-width: 680px) { .past-list li { grid-template-columns: 1fr; } }

.page-plain { padding: calc(var(--header-h) + clamp(56px, 7vw, 96px)) 0 clamp(76px, 9vw, 120px); }
.page-center { min-height: 72vh; display: grid; place-items: center; }
.center-box { text-align: center; }
.center-box .section-lead { margin-inline: auto; }
.prose { max-width: 780px; }
.prose h2 { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin: 40px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 20px; display: grid; gap: 10px; }
.prose a { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #B9BECB; padding-top: clamp(64px, 8vw, 96px); }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-logo { display: inline-block; }
.footer-logo img { width: 280px; max-width: 100%; height: auto; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .35)); transition: transform .4s var(--ease); }
.footer-logo:hover img { transform: rotate(-2deg) scale(1.02); }
.footer-brand p { margin: 22px 0 24px; max-width: 34ch; font-size: 14.5px; }
.footer-col { display: grid; gap: 12px; align-content: start; font-size: 14.5px; }
.footer-col h2 { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 6px; }
.footer-col a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; width: fit-content; transition: color .2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  position: relative; margin-top: 56px; padding-block: 24px calc(24px + env(safe-area-inset-bottom));
  font-size: 12.5px; letter-spacing: .06em;
}
.footer-bottom::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(185, 190, 203, .16); }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

.to-top {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 90;
  width: var(--h-icon); height: var(--h-icon); display: grid; place-items: center;
  background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(20, 27, 45, .5);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: #2A334B; }

/* ---------- Dialog ---------- */
.dialog {
  width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain;
}
.dialog[open] { animation: dlg-in .3s var(--ease); }
.dialog::backdrop { background: rgba(10, 14, 26, .55); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px); } }
.dialog-head { padding: 36px 30px 6px; }
.dialog-head h2 { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.dialog-head p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.dialog .form { padding: 22px 30px 8px; }
.dialog-foot { padding: 16px 30px 30px; text-align: center; font-size: 14px; color: var(--muted); }
.dialog-x { position: absolute; top: 12px; right: 12px; }
body:has(dialog[open]) { overflow: hidden; }

/* ---------- Toast ---------- */
.toasts {
  position: fixed; z-index: 3000; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); translate: -50% 0;
  display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px; padding: 15px 18px;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 14.5px;
  animation: toast-in .3s var(--ease); pointer-events: auto;
}
.toast .i { flex: none; color: var(--gold-light); }
.toast.error { background: var(--danger); }
.toast.error .i { color: #fff; }
.toast.out { animation: toast-out .25s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Pagine verifica/reset e accesso admin ---------- */
.auth-body { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg-alt) var(--grain); }
.auth-card { width: min(440px, 100%); background: #fff; padding: 40px 30px; text-align: center; box-shadow: var(--shadow-lg); }
.brand-dark { color: var(--ink); justify-content: center; margin-bottom: 30px; }
.auth-card h1 { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); line-height: 1.4; }
.auth-card .form { text-align: left; }
.auth-card .form h1, .auth-card .form > .muted { text-align: center; }
.auth-msg p { color: var(--muted); margin: 12px 0 26px; }
.auth-icon { width: 60px; height: 60px; margin: 0 auto 18px; display: grid; place-items: center; border: 1px solid currentColor; }
.auth-icon .i { width: 26px; height: 26px; stroke-width: 1.8; }
[data-state="ok"] .auth-icon { color: var(--success); }
[data-state="error"] .auth-icon { color: var(--danger); }
[data-state="ok"] .auth-icon .i:last-child, [data-state="error"] .auth-icon .i:first-child { display: none; }
.form-status { text-align: center; font-size: 14px; font-weight: 600; }
.form-status.ok { color: var(--success); }
.form-status.error { color: var(--danger); }

/* ---------- Animazioni d'ingresso (discrete) ---------- */
.js [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js .card[data-reveal] {
  transition: opacity .8s var(--ease) var(--d, 0s), translate .8s var(--ease) var(--d, 0s),
    box-shadow .4s var(--ease), transform .4s var(--ease);
}
.grid .card:nth-child(4n+2) { --d: .06s; }
.grid .card:nth-child(4n+3) { --d: .12s; }
.grid .card:nth-child(4n+4) { --d: .18s; }

/* «Riduci animazioni» del sistema: niente movimenti ampi e continui (la
   lenta panoramica del telefono); restano dissolvenze, oscillazione leggera e movimenti brevi. */
@media (prefers-reduced-motion: reduce) {
  .hero .hero-media img { animation: hero-in 2.4s var(--ease) both !important; }
  .js [data-reveal] { translate: none; }
}

/* pulsanti con testo lungo su schermi stretti: vanno a capo invece di uscire */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; line-height: 1.35; padding-block: 12px; letter-spacing: .14em; }
  .actions .btn { flex: 1 1 100%; }
}

/* quando c'è l'errore il suggerimento sotto il campo si nasconde (niente testo doppio) */
.field:has([aria-invalid="true"]) .field-hint { display: none; }

/* ---------- Dettagli siciliani ---------- */
.rosone { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--gold); margin-bottom: 22px; }
.rosone::before, .rosone::after { content: ''; height: 1px; width: min(110px, 20vw); background: currentColor; opacity: .75; }
.rosone .i { width: 42px; height: 42px; stroke-width: 2; }
.band .rosone { color: var(--gold-light); }
.maiolica-filo { height: 40px; background: var(--night) url('/img/maiolica-filo.svg') repeat-x left center / 40px 40px; border-bottom: 1px solid rgba(201, 163, 90, .35); }
