/* ==========================================================================
   Pasta & Pisa — foglio di stile unico (v2, restyling editoriale)
   Brand identity: vedi materiale/brand-identity.md
   - archi = le arcate della Torre del logo
   - nastro oro = la "&" di pasta del logo
   - occhielli con trattini rossi = il claim del logo
   Il rosso è riservato alle azioni; l'oro è decorativo (filetti, numeri).
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-wght-italic.woff2') format('woff2');
  font-weight: 300 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #2b1810;
  --ink-soft: #4b3428;
  --text: #3a2a21;
  --muted: #6c5849;
  --red: #b21b16;
  --red-dark: #8f1511;
  --gold: #e2a42b;
  --gold-deep: #a8761a;
  --gold-soft: #f3dfae;
  --bg: #f8f1e2;
  --bg-alt: #f1e6cf;
  --bg-card: #fffaf0;
  --line: rgba(43, 24, 16, .14);
  --line-strong: rgba(43, 24, 16, .28);
  --dark: #1f110b;
  --dark-2: #2d1b13;
  --on-dark: #f6ecd8;
  --on-dark-muted: #c7b496;
  --line-dark: rgba(246, 236, 216, .16);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 2px 10px rgba(31, 17, 11, .06);
  --shadow-md: 0 18px 40px rgba(31, 17, 11, .12);
  --shadow-lg: 0 36px 80px rgba(31, 17, 11, .22);
  --radius: 6px;
  --radius-lg: 10px;
  --arch: 999px 999px 0 0;
  --container: 1280px;
  --nav-h: 88px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-dark); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
::selection { background: var(--gold-soft); color: var(--ink); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 12px; color: #fff; }

/* ---------- tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.06; margin: 0 0 .5em; font-weight: 400; letter-spacing: -.02em; }
h1 { font-size: clamp(2.8rem, 6.2vw, 5.5rem); font-weight: 380; letter-spacing: -.035em; line-height: .98; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 380; letter-spacing: -.03em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 450; letter-spacing: -.01em; line-height: 1.2; }
h4 { font-size: 1.05rem; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 340; color: var(--red); }
p { margin: 0 0 1.15em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); color: var(--ink-soft); line-height: 1.65; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 22px;
}
.eyebrow::before, .eyebrow::after { content: ''; width: 14px; height: 2px; background: var(--red); }
.section-dark .eyebrow { color: var(--on-dark); }
.section-dark .eyebrow::before, .section-dark .eyebrow::after { background: var(--gold); }
.serif-num { font-family: var(--font-display); font-style: italic; font-weight: 350; color: var(--gold-deep); }

/* ---------- layout ---------- */
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 48px, 820px); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.paper { background: linear-gradient(rgba(248, 241, 226, .8), rgba(248, 241, 226, .8)), var(--bg) url('../img/flour-texture-1920.webp') center / cover; }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark h2 em, .section-dark h3 em { color: var(--gold); }
.section-dark p { color: var(--on-dark-muted); }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.grain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .85 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- archi (le arcate della Torre) ---------- */
.arch { border-radius: var(--arch); overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-frame { position: relative; }
.arch-frame::before {
  content: ''; position: absolute; inset: -14px -14px 0; border: 1px solid var(--gold); border-bottom: 0;
  border-radius: var(--arch); pointer-events: none;
}

/* ---------- nastro di pasta (la "&" del logo) ---------- */
.ribbon { position: absolute; pointer-events: none; z-index: 0; overflow: visible; }
.ribbon path { fill: none; stroke-linecap: round; }
.ribbon .r-main { stroke: var(--gold); stroke-width: 2.2; }
.ribbon .r-sauce { stroke: var(--red); stroke-width: 1; opacity: .55; }
.js .ribbon[data-draw] path { stroke-dasharray: var(--len, 3000); stroke-dashoffset: calc(var(--len, 3000) * (1 - var(--draw, 0))); }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 32px; border-radius: 999px; font-weight: 600; font-size: .78rem; line-height: 1.2;
  letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 12px 26px rgba(178, 27, 22, .22); }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn-light { border-color: rgba(246, 236, 216, .4); color: var(--on-dark); }
.btn-light:hover { background: var(--on-dark); color: var(--ink); }
.btn-sm { padding: 13px 22px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 6px; }
.link-arrow:hover { color: var(--red); border-color: var(--red); }
.link-arrow svg { width: 16px; height: 16px; }
.note { font-size: .86rem; color: var(--muted); margin-top: 14px; }
.section-dark .note { color: var(--on-dark-muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90; height: var(--nav-h);
  background: rgba(248, 241, 226, .88);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), height .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-color: var(--line); --nav-h: 74px; }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { height: 58px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .brand img { height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 450; font-size: 1.55rem; letter-spacing: -.02em; }
.brand-name span { color: var(--red); font-style: italic; font-weight: 350; }
.brand-tag { font-size: .6rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 7px; }
.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 550; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; transition: color .2s; position: relative; }
.nav-menu > li > a:not(.nav-cta-a)::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-menu > li > a:hover::after, .nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--red); }
.nav-menu .nav-discreet a { color: var(--muted); }
.nav-menu .nav-cta { margin-left: 10px; }
.nav-menu .nav-cta a { background: var(--red); color: #fff; padding: 14px 24px; border-radius: 999px; }
.nav-menu .nav-cta a:hover { background: var(--red-dark); color: #fff; }
.lang-switch { display: inline-flex; gap: 2px; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.nav-menu .lang-switch a { padding: 6px 7px; font-size: .7rem; color: var(--muted); }
.nav-menu .lang-switch a::after { display: none; }
.nav-menu .lang-switch a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.nav-mobile-extra { display: none; }

/* --- menu mobile (modello Royaletiger: non togliere le regole commentate) --- */
body.is-locked { position: fixed; width: 100%; overflow: hidden; top: var(--scroll-lock-top, 0); overflow-anchor: none; }
.nav-overlay { display: none; }
/* senza questa regola il pannello fixed si ancora all'header sfocato e, a pagina scrollata, esce di vista */
.site-header.has-menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  position: relative; z-index: 95;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  /* sotto la soglia niente sfocatura: altrimenti l'header contiene il pannello fixed chiuso e allarga la pagina */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(248, 241, 226, .97); }
  .nav-toggle { display: flex; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 89; background: rgba(31, 17, 11, .55);
    border: 0; padding: 0; cursor: pointer; opacity: 0; visibility: hidden;
    transition: opacity .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; z-index: 92; width: min(88vw, 380px);
    background: var(--bg); flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 84px 26px 24px; box-shadow: var(--shadow-lg);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-menu.is-open { transform: none; visibility: visible; transition: transform .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu a { padding: 11px 4px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 380; letter-spacing: -.01em; text-transform: none; border-bottom: 1px solid var(--line); }
  .nav-menu > li > a::after { display: none; }
  .nav-menu .nav-discreet a { font-size: 1.15rem; }
  .nav-menu .nav-cta { margin: 18px 0 0; }
  .nav-menu .nav-cta a { text-align: center; font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; border: 0; }
  .lang-switch { margin: 16px 0 0; padding-left: 0; border-left: 0; align-self: flex-start; }
  .nav-menu .lang-switch a { font-family: var(--font-body); font-size: .78rem; border: 0; letter-spacing: .16em; text-transform: uppercase; }
  .nav-mobile-extra { display: flex; flex-direction: column; margin-top: 14px; }
  .nav-mobile-extra br { display: none; }
  .nav-menu .nav-mobile-extra a { padding: 4px; font-family: var(--font-body); font-size: .92rem; font-weight: 500; color: var(--muted); border: 0; }
}

/* ---------- hero home ---------- */
.hero { position: relative; padding: clamp(30px, 5vw, 64px) 0 clamp(80px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(40px, 6vw, 96px); align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 28px; font-size: clamp(2.8rem, 5.5vw, 5.1rem); }
.hero h1 .line { display: block; }
.hero .lead { max-width: 540px; margin-bottom: 36px; }
.hero-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; list-style: none; padding: 0; margin: 46px 0 0; border-top: 1px solid var(--line); }
.hero-facts li { padding: 16px 22px 0 0; margin-right: 22px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); border-right: 1px solid var(--line); }
.hero-facts li:last-child { border-right: 0; margin-right: 0; }
.hero-facts strong { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 380; letter-spacing: -.01em; text-transform: none; color: var(--ink); margin-bottom: 2px; }
.hero-media { position: relative; justify-self: end; width: 100%; max-width: 560px; }
.hero-media .arch-frame { aspect-ratio: 4 / 5; }
.hero-media .arch { height: 100%; box-shadow: var(--shadow-lg); }
.hero-media .inset { position: absolute; left: -64px; bottom: 56px; width: 38%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 8px solid var(--bg); box-shadow: var(--shadow-md); z-index: 2; }
.hero-media .inset img { width: 100%; height: 100%; object-fit: cover; }
.seal { position: absolute; right: -34px; top: 9%; width: 138px; height: 138px; z-index: 3; color: var(--ink); }
.seal svg { width: 100%; height: 100%; animation: spin 32s linear infinite; }
.seal text { font-family: var(--font-body); font-size: 9.6px; font-weight: 600; letter-spacing: 2.6px; text-transform: uppercase; fill: currentColor; }
.seal .seal-core { position: absolute; inset: 30px; border-radius: 50%; background: var(--dark); display: grid; place-items: center; box-shadow: var(--shadow-md); }
.seal .seal-core img { width: 70%; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero .ribbon { left: -6%; bottom: -8%; width: 112%; height: 70%; }

/* ---------- marquee ---------- */
.marquee { background: var(--dark); color: var(--on-dark); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-style: italic; font-weight: 340; font-size: clamp(1.25rem, 2.2vw, 1.7rem); white-space: nowrap; padding: 0 30px; display: inline-flex; align-items: center; gap: 60px; }
.marquee-track span::after { content: ''; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- esperienza: lista numerata a filetti ---------- */
.exp-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(48px, 7vw, 110px); align-items: start; }
.exp-media { position: sticky; top: 120px; }
.exp-media .arch-frame { aspect-ratio: 3 / 4; }
.exp-media .arch { height: 100%; }
.exp-media .small { position: absolute; right: -36px; bottom: -40px; width: 44%; aspect-ratio: 1; overflow: hidden; border: 8px solid var(--bg); box-shadow: var(--shadow-md); }
.exp-media .small img { width: 100%; height: 100%; object-fit: cover; }
.num-list { list-style: none; padding: 0; margin: 0 0 40px; counter-reset: n; border-top: 1px solid var(--line); }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.num-list li::before { content: counter(n, decimal-leading-zero); font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--gold-deep); line-height: 1; }
.num-list strong { display: block; font-family: var(--font-display); font-weight: 450; font-size: 1.28rem; color: var(--ink); letter-spacing: -.01em; margin-bottom: 4px; }
.num-list span { color: var(--muted); font-size: .98rem; }
.section-dark .num-list, .section-dark .num-list li { border-color: var(--line-dark); }
.section-dark .num-list strong { color: var(--on-dark); }
.section-dark .num-list span { color: var(--on-dark-muted); }
.section-dark .num-list li::before { color: var(--gold); }

/* ---------- incluso: fascia scura a colonne ---------- */
.incl-row { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.incl-row > div { padding: 40px 26px 36px; border-right: 1px solid var(--line-dark); }
.incl-row > div:last-child { border-right: 0; }
.incl-row svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: 22px; stroke-width: 1.3; }
.incl-row h3 { font-size: 1.22rem; margin-bottom: 8px; }
.incl-row p { font-size: .94rem; margin: 0; }

/* ---------- luogo: foto larga editoriale + motivi ---------- */
.venue-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--shadow-lg); }
.venue-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.venue-photo figcaption { position: absolute; left: 28px; bottom: 24px; color: #fff; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; text-shadow: 0 2px 16px rgba(0, 0, 0, .55); }
.venue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); margin-top: clamp(50px, 7vw, 90px); align-items: start; }
.reasons { list-style: none; padding: 0; margin: 0; }
.reasons li { display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.32rem; font-weight: 400; color: var(--ink); letter-spacing: -.01em; }
.reasons li:first-child { border-top: 1px solid var(--line); }
.reasons li i { font-style: normal; color: var(--gold-deep); font-size: .9rem; }

/* ---------- loggia: i 4 passaggi sotto archi ---------- */
.loggia { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 34px); position: relative; }
.loggia .bay .arch { aspect-ratio: 3 / 4.2; margin-bottom: 26px; position: relative; }
.loggia .bay .arch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(246, 236, 216, .18); }
.loggia .bay-n { font-family: var(--font-display); font-style: italic; font-weight: 340; font-size: 2.6rem; line-height: 1; color: var(--gold); display: block; margin-bottom: 12px; }
.loggia h3 { font-size: 1.35rem; margin-bottom: 10px; }
.loggia p { font-size: .96rem; }
.loggia-base { height: 1px; background: var(--line-dark); margin: 6px 0 40px; }
.section:not(.section-dark) .loggia-base { background: var(--line); }

/* ---------- prova sociale ---------- */
.platforms { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 7vw, 90px); }
.platforms img { height: 46px; width: auto; filter: grayscale(1) sepia(.35) contrast(1.05); opacity: .7; transition: all .35s; }
.platforms img:hover { filter: none; opacity: 1; }
.quote-band { text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 980px; font-family: var(--font-display); font-style: italic; font-weight: 330; font-size: clamp(1.8rem, 3.8vw, 3.1rem); line-height: 1.22; color: var(--ink); letter-spacing: -.02em; }
.quote-band blockquote::before { content: '“'; display: block; font-size: 5.5rem; line-height: .5; color: var(--gold); margin-bottom: 26px; }
.section-dark .quote-band blockquote, .section-dark.quote-band blockquote { color: var(--on-dark); }

/* ---------- carosello ---------- */
.carousel-wrap { position: relative; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 27vw, 360px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(24px, calc((100vw - var(--container)) / 2));
  padding: 6px max(24px, calc((100vw - var(--container)) / 2)) 26px; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel figure { margin: 0; scroll-snap-align: start; overflow: hidden; position: relative; aspect-ratio: 3 / 4; background: var(--bg-alt); border-radius: var(--radius); }
.carousel figure:nth-child(3n+1) { border-radius: var(--arch); }
.carousel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.carousel figure:hover img { transform: scale(1.05); }
.carousel button.zoom { all: unset; position: absolute; inset: 0; cursor: zoom-in; }
.carousel button.zoom:focus-visible { outline: 2px solid var(--gold); outline-offset: -6px; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-nav button {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: all .25s var(--ease);
}
.carousel-nav button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.carousel-nav svg { width: 18px; height: 18px; }

/* ---------- informazioni pratiche ---------- */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.info-card { padding: 32px 26px 30px 0; border-bottom: 1px solid var(--line); }
.info-grid .info-card + .info-card { padding-left: 26px; border-left: 1px solid var(--line); }
.info-card .ico { color: var(--gold-deep); margin-bottom: 18px; }
.info-card .ico svg { width: 28px; height: 28px; stroke-width: 1.4; }
.info-card h3 { font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.info-card p { margin: 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; color: var(--ink); letter-spacing: -.01em; }
.section-dark .info-grid, .section-dark .info-card { border-color: var(--line-dark); }
.section-dark .info-card p { color: var(--on-dark); }
.map-card {
  margin-top: 56px; display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--dark); color: var(--on-dark);
}
.map-card .mc-body { padding: clamp(32px, 4.5vw, 60px); }
.map-card h3 { color: var(--on-dark); font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 380; }
.map-card p { color: var(--on-dark-muted); }
.map-card .eyebrow { color: var(--on-dark); }
.map-card .eyebrow::before, .map-card .eyebrow::after { background: var(--gold); }
.map-card .mc-img { position: relative; min-height: 300px; }
.map-card .mc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ a filetti (details: funziona anche senza JS) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative;
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--ink); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq summary:hover { color: var(--red); }
.faq .faq-a { padding: 0 56px 28px 0; color: var(--text); }
.faq .faq-a p:last-child { margin: 0; }

/* ---------- split generico (pagine interne) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 7vw, 110px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .main { border-radius: var(--arch); overflow: hidden; box-shadow: var(--shadow-md); }
.split-media .main img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.split-media::before { content: ''; position: absolute; inset: -14px -14px 0; border: 1px solid var(--gold); border-bottom: 0; border-radius: var(--arch); pointer-events: none; }
.split-media .stamp {
  position: absolute; right: -26px; bottom: 44px; width: 136px; height: 136px; border-radius: 50%;
  background: var(--gold); color: var(--ink); display: grid; place-items: center; text-align: center;
  font-family: var(--font-display); font-style: italic; font-weight: 450; font-size: .98rem; line-height: 1.15; padding: 18px;
  box-shadow: var(--shadow-md); transform: rotate(-8deg); z-index: 2;
}
.split-media .stamp::before { content: ''; position: absolute; inset: 7px; border: 1px dashed rgba(43, 24, 16, .45); border-radius: 50%; }
.check-list { list-style: none; padding: 0; margin: 0 0 34px; border-top: 1px solid var(--line); }
.check-list li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: ''; position: absolute; left: 2px; top: 22px; width: 14px; height: 8px; border-left: 1.5px solid var(--red); border-bottom: 1.5px solid var(--red); transform: rotate(-45deg); }
.section-dark .check-list, .section-dark .check-list li { border-color: var(--line-dark); color: var(--on-dark); }
.section-dark .check-list li::before { border-color: var(--gold); }

/* ---------- numeri ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(50px, 7vw, 84px); border-top: 1px solid var(--line); }
.stat { padding: 26px 22px 0 0; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-weight: 340; font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1; color: var(--ink); }
.stat span { color: var(--muted); font-size: .9rem; letter-spacing: .02em; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 30px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 600; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.chips svg { width: 16px; height: 16px; color: var(--red); }

/* ---------- card generiche (pagine interne) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.card { padding: 40px 32px 38px 0; border-bottom: 1px solid var(--line); }
.cards .card + .card { padding-left: 32px; border-left: 1px solid var(--line); }
.card .ico { color: var(--gold-deep); margin-bottom: 22px; }
.card .ico svg { width: 32px; height: 32px; stroke-width: 1.4; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }
.section-dark .cards, .section-dark .card { border-color: var(--line-dark); }
.section-dark .card .ico { color: var(--gold); }
.section-dark .card p { color: var(--on-dark-muted); }
.section-dark .info-grid .card + .card { padding-left: 26px; border-left: 1px solid var(--line-dark); }
.info-grid .card { padding-right: 26px; }

/* ---------- timeline (corso / team building) ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 1px; background: var(--line-strong); }
.timeline li { position: relative; padding: 0 0 34px 74px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .t-dot { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold-deep); color: var(--gold-deep); display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; }
.timeline h3 { margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--muted); }
.incl { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); }
.incl-box h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 22px; }
.x-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.x-list li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); color: var(--muted); }
.x-list li::before { content: ''; position: absolute; left: 4px; top: 26px; width: 12px; height: 1.5px; background: var(--gold-deep); }

/* ---------- blog card ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 30px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post-card:hover { color: inherit; }
.post-card .pc-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); margin-bottom: 22px; }
.post-card:nth-child(3n+1) .pc-img { border-radius: var(--arch); aspect-ratio: 4 / 4.2; }
.post-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .pc-img img { transform: scale(1.05); }
.post-card .pc-meta { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.post-card h3 { font-size: 1.45rem; margin-bottom: 12px; transition: color .25s; }
.post-card:hover h3 { color: var(--red); }
.post-card p { font-size: .97rem; color: var(--muted); margin-bottom: 18px; }
.post-card .pc-more { margin-top: auto; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
.post-card .pc-more svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.post-card:hover .pc-more svg { transform: translateX(4px); }
.post-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.post-card.featured .pc-img { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--arch); }
.post-card.featured h3 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 380; }

/* ---------- CTA + form ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .flour-bg { position: absolute; inset: 0; background: url('../img/flour-texture-1920.webp') center / cover; opacity: .05; pointer-events: none; }
.cta-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 96px); align-items: start; position: relative; }
.cta-photo { margin-top: 40px; aspect-ratio: 16 / 11; border-radius: var(--radius-lg); overflow: hidden; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-lines { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--line-dark); }
.contact-lines li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.contact-lines .ico { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(226, 164, 43, .5); color: var(--gold); display: grid; place-items: center; flex: none; }
.contact-lines .ico svg { width: 18px; height: 18px; }
.contact-lines a { color: var(--on-dark); text-decoration: none; font-weight: 500; }
.contact-lines a:hover { color: var(--gold); }
.contact-lines small { display: block; color: var(--on-dark-muted); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.section:not(.section-dark) .contact-lines, .section:not(.section-dark) .contact-lines li { border-color: var(--line); }
.section:not(.section-dark) .contact-lines .ico { border-color: var(--gold-deep); color: var(--gold-deep); }
.section:not(.section-dark) .contact-lines a { color: var(--ink); }
.section:not(.section-dark) .contact-lines small { color: var(--muted); }

.form-card { background: var(--bg); color: var(--text); padding: clamp(28px, 4vw, 50px); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); position: relative; }
.form-card::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--line); border-radius: 6px; pointer-events: none; }
.form-card h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 380; color: var(--ink); }
.section-dark .form-card h3 { color: var(--ink); }
.section-dark .form-card p, .section-dark .form-card .note, .section-dark .form-card .check { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; position: relative; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; border-radius: 0;
  font-size: 1rem; transition: border-color .25s;
}
.field select { cursor: pointer; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--red); box-shadow: 0 1px 0 0 var(--red); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--muted); grid-column: 1 / -1; margin-top: 4px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); flex: none; }
.form-grid .btn { grid-column: 1 / -1; margin-top: 6px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 500; min-height: 1.2em; }
.form-status.ok { color: #2f5f2b; background: #e8f1df; padding: 14px 16px; border-radius: 6px; }
.form-status.err { color: var(--red-dark); background: #f8e5e1; padding: 14px 16px; border-radius: 6px; }
.form-card .btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- page hero (interne) ---------- */
.page-hero { position: relative; padding: clamp(140px, 17vw, 210px) 0 clamp(70px, 9vw, 110px); color: var(--on-dark); background: var(--dark); overflow: hidden; margin-top: calc(var(--nav-h) * -1); }
.page-hero .ph-bg { position: absolute; inset: 0; }
.page-hero .ph-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(31, 17, 11, .94) 20%, rgba(31, 17, 11, .55) 70%, rgba(31, 17, 11, .35)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--on-dark); max-width: 920px; font-size: clamp(2.6rem, 6vw, 5rem); }
.page-hero h1 em { color: var(--gold); }
.page-hero .lead { color: var(--on-dark-muted); max-width: 640px; }
.page-hero .eyebrow { color: var(--on-dark); }
.page-hero .eyebrow::before, .page-hero .eyebrow::after { background: var(--gold); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 30px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.breadcrumb li { color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; opacity: .5; }
.breadcrumb a { color: var(--on-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.page-hero .hero-cta { margin-top: 34px; }
.has-page-hero .site-header:not(.scrolled):not(.has-menu-open) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.has-page-hero .site-header:not(.scrolled):not(.has-menu-open) .brand,
.has-page-hero .site-header:not(.scrolled):not(.has-menu-open) .nav-menu > li > a { color: var(--on-dark); }
.has-page-hero .site-header:not(.scrolled):not(.has-menu-open) .nav-menu .nav-discreet a { color: var(--on-dark-muted); }
.has-page-hero .site-header:not(.scrolled):not(.has-menu-open) .brand-tag { color: var(--on-dark-muted); }
.has-page-hero .site-header:not(.scrolled):not(.has-menu-open) .nav-menu a[aria-current="page"] { color: var(--gold); }
.has-page-hero .site-header:not(.scrolled):not(.has-menu-open) .lang-switch { border-color: var(--line-dark); }
.has-page-hero .site-header:not(.scrolled):not(.has-menu-open) .lang-switch a { color: var(--on-dark-muted); }
.has-page-hero .site-header:not(.scrolled):not(.has-menu-open) .lang-switch a[aria-current="true"] { color: var(--on-dark); }
.has-page-hero .site-header:not(.scrolled):not(.has-menu-open) .nav-toggle { border-color: var(--line-dark); }
.has-page-hero .site-header:not(.scrolled):not(.has-menu-open) .nav-toggle span { background: var(--on-dark); }
.has-page-hero .site-header:not(.scrolled):not(.has-menu-open) .nav-cta a { color: #fff; }
.has-page-hero .site-header:not(.scrolled):not(.has-menu-open) .brand .logo-dark { display: none; }
.brand .logo-light { display: none; }
.has-page-hero .site-header:not(.scrolled):not(.has-menu-open) .brand .logo-light { display: block; }
@media (max-width: 1080px) {
  .has-page-hero .site-header:not(.scrolled):not(.has-menu-open) { background: transparent; }
  .has-page-hero .site-header:not(.scrolled):not(.has-menu-open) .nav-menu a { color: var(--ink); }
  .has-page-hero .site-header:not(.scrolled):not(.has-menu-open) .nav-menu .nav-cta a { color: #fff; }
}

/* ---------- articolo ---------- */
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.article-cover { margin-top: -70px; position: relative; z-index: 3; }
.article-cover img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-height: 580px; object-fit: cover; }
.prose { font-size: 1.12rem; line-height: 1.85; }
.prose > p:first-of-type::first-letter { font-family: var(--font-display); float: left; font-size: 4.4rem; line-height: .82; padding: 8px 12px 0 0; color: var(--red); font-weight: 380; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .5em; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--gold); font-family: var(--font-display); font-style: italic; font-size: 1.45rem; font-weight: 340; color: var(--ink); line-height: 1.4; }
.summary-box { padding: 24px 0; margin: 0 0 2.2em; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary-box strong { display: block; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.summary-box p { margin: 0; font-family: var(--font-display); font-size: 1.25rem !important; line-height: 1.5; color: var(--ink) !important; }
.summary-box p::first-letter { all: unset; }
.inline-cta { display: grid; grid-template-columns: 130px 1fr; gap: 26px; align-items: center; background: var(--dark); color: var(--on-dark); border-radius: var(--radius-lg); padding: 26px; margin: 2.8em 0 0; }
.inline-cta img { width: 130px; height: 160px; object-fit: cover; border-radius: var(--arch); }
.inline-cta h3 { color: var(--on-dark); font-size: 1.5rem; margin-bottom: 6px; }
.inline-cta p { color: var(--on-dark-muted); font-size: .98rem; margin-bottom: 16px; }

/* ---------- galleria ---------- */
.masonry { columns: 3 280px; column-gap: 18px; }
.masonry figure { margin: 0 0 18px; break-inside: avoid; overflow: hidden; position: relative; border-radius: var(--radius); }
.masonry figure:nth-child(4n+1) { border-radius: var(--arch); }
.masonry img { width: 100%; transition: transform .9s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }
.masonry button.zoom { all: unset; position: absolute; inset: 0; cursor: zoom-in; }
.masonry button.zoom:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20, 11, 7, .95); display: grid; place-items: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: calc(100vh - 130px); width: auto; max-width: 100%; border-radius: 6px; }
.lightbox p { color: var(--on-dark-muted); text-align: center; margin: 14px 0 0; font-family: var(--font-display); font-style: italic; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .12); }
.lightbox button svg { width: 20px; height: 20px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; margin-top: -26px; }
.lb-next { right: 14px; top: 50%; margin-top: -26px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: clamp(70px, 9vw, 110px) 0 0; font-size: .95rem; position: relative; }
.footer-sign { text-align: center; padding-bottom: clamp(50px, 7vw, 80px); border-bottom: 1px solid var(--line-dark); margin-bottom: clamp(44px, 6vw, 64px); }
.footer-sign img { width: 210px; height: auto; margin: 0 auto 22px; }
.footer-sign p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--on-dark); margin: 0 auto; max-width: 620px; line-height: 1.35; font-weight: 340; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 54px; }
.site-footer h4 { color: var(--on-dark); font-family: var(--font-body); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer address { font-style: normal; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: all .25s; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.social svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 24px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .78rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- barra mobile ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 80; display: grid; grid-template-columns: 52px 52px 1fr; gap: 8px;
    padding: 7px; border-radius: 999px; background: rgba(31, 17, 11, .95); box-shadow: var(--shadow-lg);
    transform: translateY(150%); transition: transform .45s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a { height: 48px; border-radius: 999px; display: grid; place-items: center; text-decoration: none; font-weight: 600; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
  .mobile-bar .mb-ico { color: var(--on-dark); border: 1px solid var(--line-dark); }
  .mobile-bar .mb-ico svg { width: 20px; height: 20px; }
  .mobile-bar .mb-cta { background: var(--red); color: #fff; }
  .site-footer { padding-bottom: 84px; }
}

/* ---------- reveal: il contenuto parte VISIBILE, il JS aggiunge l'animazione ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .1s; } .js .reveal-d2 { transition-delay: .2s; } .js .reveal-d3 { transition-delay: .3s; }
.js .reveal-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
.js .reveal-img.is-visible { clip-path: inset(0 0 0 0); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .big404 { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(6rem, 20vw, 13rem); line-height: .9; color: var(--gold-deep); }
.notfound .hero-cta { justify-content: center; }

/* ---------- legale ---------- */
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.6em; }
.legal > p:first-of-type::first-letter { all: unset; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .incl-row { grid-template-columns: repeat(3, 1fr); }
  .incl-row > div:nth-child(3) { border-right: 0; }
  .incl-row > div:nth-child(n+4) { border-top: 1px solid var(--line-dark); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid .info-card:nth-child(3) { padding-left: 0; border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .loggia { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .loggia-base { display: none; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .cta-grid, .map-card, .exp-grid, .venue-grid, .incl { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .hero-media { justify-self: center; max-width: 440px; margin: 20px auto 0; }
  .hero-media .inset { left: -18px; }
  .seal { right: -14px; width: 116px; height: 116px; }
  .seal .seal-core { inset: 26px; }
  .exp-media { position: relative; top: 0; max-width: 460px; }
  .exp-media .small { right: -12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .cards { grid-template-columns: 1fr; }
  .cards .card + .card { padding-left: 0; border-left: 0; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .post-card.featured { grid-template-columns: 1fr; }
  .split-media { max-width: 480px; margin-inline: auto; width: 100%; }
  .split-media .stamp { right: 0; }
  .venue-photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container, .container-narrow { width: min(100% - 36px, var(--container)); }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts li { border-right: 0; margin-right: 0; padding-right: 10px; }
  .hero-facts li:nth-child(odd) { border-right: 1px solid var(--line); margin-right: 14px; }
  .hero-facts li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 14px; }
  .incl-row { grid-template-columns: 1fr 1fr; }
  .incl-row > div { border-right: 0; padding: 28px 14px 26px 0; }
  .incl-row > div:nth-child(odd) { border-right: 1px solid var(--line-dark); }
  .incl-row > div:nth-child(even) { padding-left: 18px; }
  .incl-row > div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .incl-row > div:nth-child(3) { border-right: 1px solid var(--line-dark); }
  .info-grid { grid-template-columns: 1fr; }
  .info-grid .info-card + .info-card, .section-dark .info-grid .card + .card { padding-left: 0; border-left: 0; }
  .cards-3, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .loggia { grid-template-columns: 1fr 1fr; gap: 16px; row-gap: 40px; }
  .loggia h3 { font-size: 1.15rem; }
  .loggia p { font-size: .9rem; }
  .brand-tag { display: none; }
  .brand img { height: 48px; }
  .brand-name { font-size: 1.3rem; }
  .inline-cta { grid-template-columns: 1fr; }
  .lightbox { padding: 60px 12px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .num-list li { grid-template-columns: 46px 1fr; }
  .faq summary { padding-right: 40px; }
  .faq .faq-a { padding-right: 0; }
  .venue-photo figcaption { left: 18px; bottom: 14px; font-size: .95rem; }
  .carousel figure:nth-child(3n+1) { border-radius: var(--radius); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-img { clip-path: none; }
  .js .ribbon[data-draw] path { stroke-dashoffset: 0; }
}

/* nastro nelle fasce scure */
.section-dark > .ribbon { left: 0; top: 30px; width: 100%; height: 220px; opacity: .45; }
.section-dark > .container { position: relative; z-index: 1; }

/* ==========================================================================
   v3 — dettagli di brand ed emozione
   ========================================================================== */

/* sottolineatura oro "scritta a mano" sotto la parola chiave */
.hl { position: relative; display: inline-block; white-space: nowrap; }
.scribble { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: var(--gold); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: scrib 1.4s .9s var(--ease) forwards; }
.scribble .s2 { stroke-width: 2; opacity: .7; animation-delay: 1.25s; }
@keyframes scrib { to { stroke-dashoffset: 0; } }

/* arco animato: le foto vere si alternano con un lento zoom (Ken Burns) */
.slides { position: relative; }
.slides .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.slides .slide:first-child { position: relative; height: 100%; }
.slides .slide.is-active { opacity: 1; }
.slides .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.slides .slide.is-active img { animation: kenburns 7.5s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.slide-dots { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.slide-dots i { width: 22px; height: 2px; background: rgba(255, 255, 255, .45); border-radius: 2px; overflow: hidden; position: relative; }
.slide-dots i.on::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: dot 6s linear forwards; }
@keyframes dot { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.no-js .slide-dots, .slides:not(.is-running) .slide-dots { display: none; }

/* bordo "a rotella da ravioli" tra le sezioni */
.scallop-top { position: relative; }
.scallop-top::before {
  content: ''; position: absolute; left: 0; right: 0; height: 14px; z-index: 2; pointer-events: none;
  background: var(--dark);
  -webkit-mask: radial-gradient(circle at 11px 14px, #000 10.5px, transparent 11px) 0 0 / 22px 14px repeat-x;
          mask: radial-gradient(circle at 11px 14px, #000 10.5px, transparent 11px) 0 0 / 22px 14px repeat-x;
}
.scallop-top::before { top: -13px; }
.scallop-edge {
  position: absolute; left: 0; right: 0; bottom: -13px; height: 14px; z-index: 3; pointer-events: none; display: block;
  background: var(--dark);
  -webkit-mask: radial-gradient(circle at 11px 0, #000 10.5px, transparent 11px) 0 0 / 22px 14px repeat-x;
          mask: radial-gradient(circle at 11px 0, #000 10.5px, transparent 11px) 0 0 / 22px 14px repeat-x;
}
.feast .scallop-edge { background: #1b0f09; }
.feast.scallop-top::before { background: #1b0f09; }
.cta-band::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; z-index: 2; pointer-events: none; background: var(--bg-alt);
  -webkit-mask: radial-gradient(circle at 11px 0, #000 10.5px, transparent 11px) 0 0 / 22px 14px repeat-x;
          mask: radial-gradient(circle at 11px 0, #000 10.5px, transparent 11px) 0 0 / 22px 14px repeat-x;
}

/* loggia su carta chiara */
.loggia-light .loggia .bay-n { color: var(--gold-deep); }
.loggia-light .loggia .bay .arch { box-shadow: var(--shadow-md); }
.loggia-light .loggia .bay .arch::after { box-shadow: none; }
.loggia-light .loggia-base { background: var(--line); }
.loggia-light > .ribbon { position: absolute; left: 0; top: 40px; width: 100%; height: 220px; opacity: .55; }
.loggia-light > .container { position: relative; z-index: 1; }
.loggia .bay .arch img { transition: transform 1.2s var(--ease); }
.loggia .bay:hover .arch img { transform: scale(1.06); }

/* la tavola: momento emozionale a tutta pagina */
.feast { position: relative; min-height: min(92vh, 820px); display: grid; align-items: center; overflow: hidden; color: var(--on-dark); background: #1b0f09; }
.feast-bg { position: absolute; inset: -12% 0; will-change: transform; }
.feast-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; filter: saturate(1.05); }
.feast::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27, 15, 9, .94) 0%, rgba(27, 15, 9, .86) 34%, rgba(27, 15, 9, .45) 62%, rgba(27, 15, 9, .25) 100%), linear-gradient(0deg, rgba(27, 15, 9, .55), transparent 35%); }
.feast h2, .feast p { text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
@media (max-width: 900px) { .feast::after { background: linear-gradient(0deg, rgba(27, 15, 9, .95) 30%, rgba(27, 15, 9, .7) 70%, rgba(27, 15, 9, .5)); } }
.feast-inner { position: relative; z-index: 1; padding-block: clamp(110px, 14vw, 170px); max-width: 860px; margin-left: max(24px, calc((100vw - var(--container)) / 2)); }
.feast .eyebrow { color: var(--on-dark); }
.feast .eyebrow::before, .feast .eyebrow::after { background: var(--gold); }
.feast h2 { color: var(--on-dark); font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1.02; }
.feast h2 em { color: var(--gold); display: block; }
.feast p { color: rgba(246, 236, 216, .82); font-size: clamp(1.08rem, 1.5vw, 1.25rem); margin-bottom: 34px; }

/* frase manifesto */
.quote-line { margin: 0 auto; max-width: 1000px; text-align: center; font-family: var(--font-display); font-weight: 330; font-size: clamp(1.8rem, 3.8vw, 3.1rem); line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.quote-line em { color: var(--red); font-style: italic; }
.quote-line::before { content: '“'; display: block; font-size: 5rem; line-height: .5; color: var(--gold); margin-bottom: 24px; font-style: italic; }

/* biglietto d'ingresso d'epoca */
.ticket { display: grid; grid-template-columns: 1fr 230px; filter: drop-shadow(0 22px 40px rgba(31, 17, 11, .16)); margin-bottom: 0; }
.tk-main, .tk-stub { background: var(--bg-card); position: relative; }
.tk-main { padding: clamp(26px, 3.5vw, 42px); border-radius: 12px 0 0 12px;
  -webkit-mask: radial-gradient(circle at 100% 0, transparent 14px, #000 14.5px) top right / 51% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 14px, #000 14.5px) bottom right / 51% 51% no-repeat, linear-gradient(#000, #000) left / 50% 100% no-repeat;
          mask: radial-gradient(circle at 100% 0, transparent 14px, #000 14.5px) top right / 51% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 14px, #000 14.5px) bottom right / 51% 51% no-repeat, linear-gradient(#000, #000) left / 50% 100% no-repeat; }
.tk-stub { border-radius: 0 12px 12px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 30px 20px; border-left: 2px dashed rgba(43, 24, 16, .22);
  -webkit-mask: radial-gradient(circle at 0 0, transparent 14px, #000 14.5px) top left / 51% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 14px, #000 14.5px) bottom left / 51% 51% no-repeat, linear-gradient(#000, #000) right / 50% 100% no-repeat;
          mask: radial-gradient(circle at 0 0, transparent 14px, #000 14.5px) top left / 51% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 14px, #000 14.5px) bottom left / 51% 51% no-repeat, linear-gradient(#000, #000) right / 50% 100% no-repeat; }
.tk-main::before { content: ''; position: absolute; inset: 12px; border: 1px solid var(--line); border-radius: 6px; pointer-events: none; }
.tk-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.tk-head span:first-child { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.01em; text-transform: none; color: var(--ink); font-weight: 450; }
.tk-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.tk-cell { padding: 20px 18px 18px 0; }
.tk-cell + .tk-cell { padding-left: 18px; border-left: 1px solid var(--line); }
.tk-k { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.tk-cell strong { display: block; font-family: var(--font-display); font-weight: 420; font-size: 1.32rem; line-height: 1.2; color: var(--ink); letter-spacing: -.01em; }
.tk-s { display: block; font-size: .86rem; color: var(--muted); margin-top: 4px; }
.tk-foot { margin: 10px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--font-display); font-style: italic; color: var(--ink-soft); font-size: 1.02rem; }
.tk-stamp { width: 132px; height: 132px; border-radius: 50%; border: 2px dashed var(--red); display: grid; place-items: center; transform: rotate(-12deg); position: relative; color: var(--red); }
.tk-stamp::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(178, 27, 22, .5); border-radius: 50%; }
.tk-stamp img { width: 74%; height: auto; opacity: .92; filter: sepia(.25); }
.tk-stamp span { position: absolute; bottom: 14px; font-size: .58rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }

/* footer: il saluto */
.footer-sign .sign-big { font-family: var(--font-display); font-style: italic; font-weight: 320; font-size: clamp(2.6rem, 6vw, 4.8rem); color: var(--gold); line-height: 1; margin: 6px auto 18px; max-width: none; }
.footer-sign .btn { margin-top: 26px; }

/* dettagli fini */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-18deg); transition: left .8s var(--ease); }
.btn-primary:hover::after { left: 130%; }
.hero h1 em { display: inline-block; }
.reasons li { transition: padding-left .35s var(--ease), color .35s; }
.reasons li:hover { padding-left: 8px; color: var(--red); }
.exp-media .arch img, .split-media .main img { transition: transform 1.4s var(--ease); }
.exp-media:hover .arch img, .split-media:hover .main img { transform: scale(1.04); }

@media (max-width: 900px) {
  .ticket { grid-template-columns: 1fr; }
  .tk-main { border-radius: 12px 12px 0 0; -webkit-mask: none; mask: none; }
  .tk-stub { border-radius: 0 0 12px 12px; border-left: 0; border-top: 2px dashed rgba(43, 24, 16, .22); flex-direction: row; -webkit-mask: none; mask: none; }
  .tk-grid { grid-template-columns: 1fr 1fr; }
  .tk-cell:nth-child(3) { padding-left: 0; border-left: 0; }
  .tk-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tk-stamp { width: 100px; height: 100px; }
  .feast-inner { margin-left: auto; }
}
@media (max-width: 640px) {
  .tk-cell { padding-right: 12px; }
  .tk-cell:nth-child(even) { padding-left: 14px; }
  .tk-cell strong { font-size: 1.12rem; }
  .tk-head span:nth-child(2) { order: 3; width: 100%; }
  .tk-stub { padding: 22px; }
  .feast { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scribble path { stroke-dashoffset: 0; }
  .slides .slide.is-active img { animation: none; }
}

/* rifiniture mobile e titoletti */
.eyebrow { max-width: 100%; }
.feast p:not(.eyebrow) { max-width: 560px; }
.feast p.eyebrow { max-width: none; color: var(--on-dark); font-size: .72rem; margin-bottom: 22px; }
.btn { white-space: nowrap; }
@media (max-width: 640px) {
  .eyebrow { font-size: .64rem; letter-spacing: .18em; gap: 9px; }
  .eyebrow::before, .eyebrow::after { width: 10px; flex: none; }
  .btn { padding: 17px 22px; letter-spacing: .12em; font-size: .74rem; }
  .hero-cta { gap: 18px; }
  .hero-cta .link-arrow { margin: 0 auto; }
}
