/* ==========================================================================
   NEW CIRCUS — Trieste
   Design system + layout. Mobile-first.
   Palette estratta dalle grafiche ufficiali (assets/images/1.png e 2.png):
   blu notte, blu elettrico, oro caldo, crema.
   ========================================================================== */

/* --------------------------------------------------------------- FONT */
@font-face {
  font-family: 'Abril Fatface';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/abril-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Abril Fatface';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/abril-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------- TOKENS */
:root {
  --ink: #060d19;
  --navy: #0b1b33;
  --navy-2: #0f2340;
  --navy-3: #163158;
  --blue: #1b4f91;
  --blue-bright: #4b93e8;
  --gold: #e4a53c;
  --gold-soft: #f3c878;
  --cream: #f4ede2;
  --muted: #a9b7cc;
  --sage: #aebac1;
  --line: rgba(244, 237, 226, 0.14);
  --line-strong: rgba(228, 165, 60, 0.42);

  --ff-display: 'Abril Fatface', Georgia, 'Times New Roman', serif;
  --ff-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --shell: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 18px;
  --radius-sm: 12px;

  --header-h: 66px;
  --dock-h: 62px;

  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
  --t-fast: 0.18s var(--ease);
  --t: 0.32s var(--ease);

  --shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.85);
  --glow: 0 0 0 1px rgba(228, 165, 60, 0.25), 0 14px 40px -18px rgba(228, 165, 60, 0.5);

  /* ---------------------------------------------------------------------
     TEXTURE DI SFONDO — tutte derivate dal marchio:
     la stella a 4 punte del menu, i filetti dorati della grafica ufficiale,
     il reticolo a rombi e il festone da tendone.
     Sono SVG inline: nessuna richiesta extra, nessun file immagine.
     --------------------------------------------------------------------- */
  --pat-stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='%23e4a53c'%3E%3Cpath transform='translate(14,30) scale(0.8)' d='M12 0c.6 6.6 4.8 11 12 12-7.2 1-11.4 5.4-12 12-.6-6.6-4.8-11-12-12C7.2 11 11.4 6.6 12 0Z'/%3E%3Cpath transform='translate(96,8) scale(0.42)' d='M12 0c.6 6.6 4.8 11 12 12-7.2 1-11.4 5.4-12 12-.6-6.6-4.8-11-12-12C7.2 11 11.4 6.6 12 0Z'/%3E%3Cpath transform='translate(168,46) scale(0.58)' d='M12 0c.6 6.6 4.8 11 12 12-7.2 1-11.4 5.4-12 12-.6-6.6-4.8-11-12-12C7.2 11 11.4 6.6 12 0Z'/%3E%3Cpath transform='translate(88,62) scale(0.24)' d='M12 0c.6 6.6 4.8 11 12 12-7.2 1-11.4 5.4-12 12-.6-6.6-4.8-11-12-12C7.2 11 11.4 6.6 12 0Z'/%3E%3Cpath transform='translate(52,96) scale(0.36)' d='M12 0c.6 6.6 4.8 11 12 12-7.2 1-11.4 5.4-12 12-.6-6.6-4.8-11-12-12C7.2 11 11.4 6.6 12 0Z'/%3E%3Cpath transform='translate(126,118) scale(0.7)' d='M12 0c.6 6.6 4.8 11 12 12-7.2 1-11.4 5.4-12 12-.6-6.6-4.8-11-12-12C7.2 11 11.4 6.6 12 0Z'/%3E%3Cpath transform='translate(196,140) scale(0.3)' d='M12 0c.6 6.6 4.8 11 12 12-7.2 1-11.4 5.4-12 12-.6-6.6-4.8-11-12-12C7.2 11 11.4 6.6 12 0Z'/%3E%3Cpath transform='translate(30,168) scale(0.52)' d='M12 0c.6 6.6 4.8 11 12 12-7.2 1-11.4 5.4-12 12-.6-6.6-4.8-11-12-12C7.2 11 11.4 6.6 12 0Z'/%3E%3Cpath transform='translate(150,192) scale(0.4)' d='M12 0c.6 6.6 4.8 11 12 12-7.2 1-11.4 5.4-12 12-.6-6.6-4.8-11-12-12C7.2 11 11.4 6.6 12 0Z'/%3E%3C/g%3E%3C/svg%3E");

  --pat-arcs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260' fill='none' stroke='%23e4a53c' stroke-width='1'%3E%3Cpath d='M0 46C60 8 190 92 260 46'/%3E%3Cpath d='M0 118C74 158 176 74 260 118'/%3E%3Cpath d='M0 196C66 168 176 226 260 196'/%3E%3C/svg%3E");

  --pat-lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='58' viewBox='0 0 58 58'%3E%3Cpath d='M0 29L29 0L58 29L29 58Z' fill='none' stroke='%23f4ede2' stroke-width='1'/%3E%3C/svg%3E");

  --pat-scallop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='30' viewBox='0 0 56 30' fill='none' stroke='%23e4a53c' stroke-width='1.2'%3E%3Cpath d='M0 1Q28 30 56 1'/%3E%3C/svg%3E");

  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23e4a53c' d='M12 0c.6 6.6 4.8 11 12 12-7.2 1-11.4 5.4-12 12-.6-6.6-4.8-11-12-12C7.2 11 11.4 6.6 12 0Z'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------- RESET */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

body.is-locked { overflow: hidden; }

img,
picture,
svg,
iframe { display: block; max-width: 100%; }

img { height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold); color: var(--ink); }

/* barra di scorrimento nei colori del marchio */
html { scrollbar-color: rgba(228, 165, 60, 0.45) var(--ink); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: rgba(228, 165, 60, 0.45);
  border: 2px solid var(--ink);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(228, 165, 60, 0.7); }

/* --------------------------------------------------------------- TIPOGRAFIA */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 7vw, 4rem); }
h2 { font-size: clamp(1.6rem, 5.4vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 3.2vw, 1.35rem); }
h4 { font-size: 1rem; letter-spacing: 0.02em; }

p { text-wrap: pretty; }

.lead {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  color: #dfe6f0;
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--gold);
  opacity: 0.8;
}

.gold { color: var(--gold); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* Va a capo sotto il breakpoint desktop, resta in linea sopra.
   Usa uno <span> e non un <br>: così lo spazio fra le due parti non si perde. */
.brk { display: block; }
@media (min-width: 940px) { .brk { display: inline; } }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 12px 12px;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------- LAYOUT */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(3.5rem, 10vw, 6.5rem);
}

.section--tight { padding-block: clamp(2.5rem, 7vw, 4.5rem); }

.section--alt {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(27, 79, 145, 0.28), transparent 60%),
    var(--navy-2);
}

.section--ink { background: var(--ink); }

/* Il contenuto resta sempre sopra texture e filigrane */
.section > .shell,
.detail > .shell { position: relative; z-index: 1; }

/* ------------------------------------------------ FILIGRANA DELLO STEMMA */
/* Lo stemma di foglie in cima al logo, usato in grande e appena accennato. */
.wm {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: min(520px, 48%);
  aspect-ratio: 560 / 231;
  background: url('../img/crest-cream.png') no-repeat center / contain;
  opacity: 0.05;
}
.wm--tr { top: 5%; right: -5%; }
.wm--bl { bottom: 5%; left: -5%; transform: rotate(180deg); }
@media (max-width: 700px) { .wm { display: none; } }

/* la sezione che ospita una filigrana la ritaglia: niente scroll orizzontale */
.has-wm { overflow: hidden; overflow: clip; }

/* ------------------------------------------------ TEXTURE DELLE SEZIONI */
/* Il pattern sta su ::before, il contenuto resta sopra grazie a .shell. */
.pat-stars,
.pat-arcs,
.pat-lattice,
.pat-scallop { position: relative; }

.pat-stars > .shell,
.pat-arcs > .shell,
.pat-lattice > .shell,
.pat-scallop > .shell { position: relative; z-index: 1; }

.pat-stars::before,
.pat-arcs::before,
.pat-lattice::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: repeat;
  /* sfuma in alto e in basso: la texture non taglia mai netta sul bordo */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}

.pat-stars::before {
  background-image: var(--pat-stars);
  background-size: 220px 220px;
  opacity: 0.09;
}

.pat-arcs::before {
  background-image: var(--pat-arcs);
  background-size: 260px 260px;
  opacity: 0.16;
}

.pat-lattice::before {
  background-image: var(--pat-lattice);
  background-size: 58px 58px;
  opacity: 0.05;
}

/* Festone da tendone sul bordo superiore */
.pat-scallop::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 0;
  pointer-events: none;
  background-image: var(--pat-scallop);
  background-repeat: repeat-x;
  background-size: 56px 30px;
  opacity: 0.35;
}

/* ------------------------------------------------ FREGIO ORNAMENTALE */
/* Filetto + stella a 4 punte: richiama gli svolazzi del logo. */
.ornament {
  display: block;
  width: min(260px, 58%);
  height: auto;
  margin: 1.2rem auto 0;
  color: var(--gold);
  opacity: 0.7;
}
.ornament--left { margin-inline: 0; }

.section-head { max-width: 62ch; margin-bottom: clamp(1.8rem, 5vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { margin-top: 1rem; color: var(--muted); }

.grid { display: grid; gap: clamp(1rem, 3vw, 1.6rem); }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 940px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
  }
  /* colonne di pari altezza: serve alla foto del menu a piena altezza */
  .grid--stretch { align-items: stretch; }
}

/* Trama sottile su tutto il sito */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------- BOTTONI */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t),
    color var(--t), border-color var(--t);
}

.btn svg { width: 20px; height: 20px; flex: none; }

.btn:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn:active { transform: translateY(0); }

/* riflesso che attraversa il bottone al passaggio del mouse */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.34) 46%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
}
.btn:hover::after { transform: translateX(130%); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border-color: rgba(244, 237, 226, 0.32);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  --btn-bg: rgba(244, 237, 226, 0.09);
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn--blue { --btn-bg: var(--blue); --btn-fg: #fff; }
.btn--sm { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.86rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: gap var(--t-fast), border-color var(--t-fast);
}
.link-arrow::after { content: '→'; transition: transform var(--t-fast); }
.link-arrow:hover { border-color: var(--line-strong); }
.link-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------- HEADER */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t), box-shadow var(--t), backdrop-filter var(--t);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 25, 0.85), rgba(6, 13, 25, 0));
  pointer-events: none;
  transition: opacity var(--t);
}

.header.is-stuck {
  background: rgba(8, 19, 36, 0.86);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line), 0 14px 34px -26px #000;
}
.header.is-stuck::before { opacity: 0; }

.header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  z-index: 2;
}
.brand img { width: 132px; height: auto; transition: width var(--t); }
.header.is-stuck .brand img { width: 116px; }

.nav { display: none; }

@media (min-width: 1000px) {
  :root { --header-h: 78px; }
  .nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
  .nav a {
    position: relative;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #d8e1ee;
    border-radius: 999px;
    transition: color var(--t-fast), background var(--t-fast);
  }
  .nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transform: translateX(-50%);
    transition: width var(--t);
  }
  .nav a:hover { color: #fff; }
  .nav a:hover::after,
  .nav a[aria-current='page']::after { width: 22px; }
  .nav a[aria-current='page'] { color: var(--gold); }
}

.header-cta { display: none; }
@media (min-width: 1000px) { .header-cta { display: inline-flex; } }

/* Hamburger */
.burger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  background: rgba(244, 237, 226, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
}
@media (min-width: 1000px) { .burger { display: none; } }

.burger-bars { position: relative; width: 20px; height: 12px; }
.burger-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast);
}
.burger-bars span:nth-child(1) { top: 0; }
.burger-bars span:nth-child(2) { top: 5px; }
.burger-bars span:nth-child(3) { top: 10px; }
.burger[aria-expanded='true'] .burger-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded='true'] .burger-bars span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] .burger-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------- DRAWER */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) calc(var(--dock-h) + 2rem);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(27, 79, 145, 0.5), transparent 70%),
    linear-gradient(180deg, #081426, #050c17);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }

.drawer-nav { display: grid; gap: 0.15rem; }
.drawer-nav a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.55rem 0;
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 8.5vw, 2.5rem);
  text-transform: uppercase;
  line-height: 1.1;
  border-bottom: 1px solid rgba(244, 237, 226, 0.08);
  opacity: 0;
  transform: translateY(14px);
}
.drawer.is-open .drawer-nav a {
  animation: drawerIn 0.42s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 45ms + 60ms);
}
.drawer-nav a span {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.drawer-nav a[aria-current='page'] { color: var(--gold); }

@keyframes drawerIn { to { opacity: 1; transform: none; } }

.drawer-foot {
  margin-top: 2rem;
  display: grid;
  gap: 0.7rem;
}
.drawer-foot .meta {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------- DOCK MOBILE */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(8, 19, 36, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  /* Stato di riposo = visibile: se le animazioni sono disattivate o congelate
     (tab in background) la barra resta comunque raggiungibile. */
  animation: dockIn 0.5s var(--ease);
}
@keyframes dockIn {
  from { transform: translateY(110%); }
}

.dock a {
  min-height: var(--dock-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfdbea;
}
.dock a svg { width: 21px; height: 21px; }
.dock a:first-child { color: var(--gold); }
.dock a + a { border-left: 1px solid var(--line); }
.dock a:active { background: rgba(244, 237, 226, 0.07); }

@media (min-width: 1000px) {
  .dock { display: none; }
  body { padding-bottom: 0; }
}
@media (max-width: 999px) {
  body { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); }
}

/* --------------------------------------------------------------- HERO */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero--page { min-height: 68svh; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  animation: heroDrift 26s var(--ease) infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1.5%, 0); }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 13, 25, 0.78) 0%, rgba(6, 13, 25, 0.36) 42%, rgba(6, 13, 25, 0.9) 92%),
    radial-gradient(70% 55% at 50% 50%, transparent, rgba(6, 13, 25, 0.55));
}

/* cornice da manifesto, con una stellina per angolo.
   Il lato superiore parte sotto l'header, così non passa dietro logo e menu. */
.hero-frame {
  position: absolute;
  inset: clamp(0.85rem, 2.2vw, 1.9rem);
  top: calc(var(--header-h) + clamp(0.5rem, 1.4vw, 1rem));
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(228, 165, 60, 0.26);
  background-image: var(--star), var(--star), var(--star), var(--star);
  background-repeat: no-repeat;
  background-size: 13px 13px;
  background-position:
    left -6.5px top -6.5px,
    right -6.5px top -6.5px,
    left -6.5px bottom -6.5px,
    right -6.5px bottom -6.5px;
}

/* pagine senza header (404): la cornice torna simmetrica */
.hero--bare .hero-frame { top: clamp(0.85rem, 2.2vw, 1.9rem); }

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(220px, 52vw, 420px);
  margin-bottom: clamp(1.4rem, 4vw, 2.2rem);
  filter: drop-shadow(0 12px 34px rgba(0, 0, 0, 0.65));
}

.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .line { display: block; }
.hero h1 .line--gold { color: var(--gold); }

.hero p.lead {
  max-width: 52ch;
  margin: 0 auto clamp(1.6rem, 4vw, 2.2rem);
}

.hero .btn-row { justify-content: center; margin-bottom: 1.6rem; }
.hero .crumbs { justify-content: center; }

/* Filetto decorativo con testo.
   .hero-rule    = occhiello sopra il titolo (pagine interne)
   .hero-tagline = la riga con le keyword sotto il marchio (home) */
.hero-rule,
.hero-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  color: var(--gold);
  font-family: var(--ff-body);
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-rule::before,
.hero-rule::after,
.hero-tagline::before,
.hero-tagline::after {
  content: '';
  flex: none;
  width: clamp(24px, 7vw, 64px);
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

/* ---------------------------------------------- MARCHIO TESTUALE (home)
   L'H1 della home: il nome grande in Abril Fatface più la riga con le keyword.
   È testo vero e non un'immagine: si legge, si copia, si indicizza e non
   ha bisogno di essere scaricato. */
.hero-crest {
  width: clamp(50px, 11vw, 82px);
  margin: 0 auto clamp(0.8rem, 2.2vw, 1.2rem);
  opacity: 0.85;
}

.hero-title {
  display: block;
  margin-bottom: clamp(1.1rem, 3vw, 1.7rem);
  font-family: var(--ff-display);
  text-transform: uppercase;
}

.hero-wordmark {
  display: block;
  font-size: clamp(2.3rem, 9vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.6);
}

.hero-title .hero-tagline { margin: clamp(0.7rem, 1.8vw, 1rem) 0 0; }

@media (max-width: 560px) {
  .hero-rule,
  .hero-tagline { font-size: 0.72rem; letter-spacing: 0.12em; gap: 0.5rem; }
  .hero-rule::before, .hero-rule::after,
  .hero-tagline::before, .hero-tagline::after { width: 18px; }
}

/* la barra fissa in basso non deve coprire le CTA in fondo all'hero */
@media (max-width: 999px) {
  .hero {
    padding-top: calc(var(--header-h) + 1.5rem);
    padding-bottom: calc(var(--dock-h) + 1.6rem);
  }
  .hero-logo { width: clamp(190px, 50vw, 340px); margin-bottom: 1.1rem; }
  .hero p.lead { margin-bottom: 1.4rem; }
  .hero .btn-row { margin-bottom: 1.2rem; }
}

/* su schermi stretti: CTA principale a tutta larghezza, le altre due affiancate */
@media (max-width: 560px) {
  .hero .btn-row {
    gap: 0.6rem;
    width: 100%;
  }
  /* La CTA principale prende tutta la riga; le altre si dividono lo spazio
     rimasto. Con flex-grow il numero di bottoni non conta: se ne resta uno
     solo sulla riga si allarga da sé, senza restare a meta' larghezza. */
  .hero .btn-row .btn {
    flex: 1 1 calc(50% - 0.3rem);
    padding-inline: 0.9rem;
    font-size: 0.9rem;
  }
  .hero .btn-row .btn:first-child { flex-basis: 100%; }
}

/* Stelline animate — richiamo alla grafica del menu */
.sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.spark {
  position: absolute;
  color: rgba(244, 237, 226, 0.75);
  animation: twinkle 4.5s ease-in-out infinite;
  will-change: opacity, transform;
}
.spark svg { width: 100%; height: 100%; }
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 0.95; transform: scale(1) rotate(12deg); }
}

/* Badge apertura */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 13, 25, 0.55);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.status .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.status.is-open .dot { background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); animation: pulse 2.2s infinite; }
.status.is-closed .dot { background: #f87171; }
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* --------------------------------------------------------------- FATTI */
.facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, 1fr); } }

.fact {
  background: var(--navy-2);
  padding: 1.15rem 1.25rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.fact svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.fact strong { display: block; font-size: 0.95rem; line-height: 1.3; }
.fact span { font-size: 0.82rem; color: var(--muted); }

/* --------------------------------------------------------------- CARD */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(22, 49, 88, 0.6), rgba(11, 27, 51, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.3rem 1.35rem 1.45rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card__body h3 { color: var(--cream); }
.card__body p { color: var(--muted); font-size: 0.95rem; }
.card__body .link-arrow { margin-top: auto; padding-top: 0.4rem; }

.tag {
  position: absolute;
  top: 0.85rem; left: 0.85rem;
  padding: 0.3rem 0.7rem;
  background: rgba(6, 13, 25, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --------------------------------------------------------------- FIGURE */
.figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure--tall img { aspect-ratio: 3 / 4; }
.figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.1rem 0.95rem;
  background: linear-gradient(180deg, transparent, rgba(6, 13, 25, 0.9));
  font-size: 0.82rem;
  color: #d8e1ee;
}

.stack-note {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--gold);
  background: rgba(228, 165, 60, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
}
.stack-note svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 3px; }

/* --------------------------------------------------------------- FOTO APRIBILI */
/* Bottone-foto condiviso da tutte le griglie e dalla foto del menu */
.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--navy-2);
  cursor: zoom-in;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.shot picture { display: block; height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.fill { height: 100%; }
.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 13, 25, 0.6));
  opacity: 0;
  transition: opacity var(--t);
}
.shot:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.shot:hover::after { opacity: 1; }
.shot__zoom {
  position: absolute;
  right: 0.7rem; bottom: 0.7rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(6, 13, 25, 0.7);
  border: 1px solid var(--line);
  color: var(--gold);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t), transform var(--t);
}
.shot__zoom svg { width: 16px; height: 16px; }
.shot:hover .shot__zoom { opacity: 1; transform: none; }
.shot__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 2rem 0.9rem 0.8rem;
  background: linear-gradient(180deg, transparent, rgba(6, 13, 25, 0.92));
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  color: #e6ecf5;
}

/* griglia piatti */
.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.shots .shot img { aspect-ratio: 1; }
@media (min-width: 760px) {
  .shots { gap: 0.9rem; }
  .shots--food { grid-template-columns: repeat(4, 1fr); }
  .shots--food .shot:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .shots--food .shot:nth-child(1) img { aspect-ratio: 1; }
  .shots--room { grid-template-columns: repeat(3, 1fr); }
  .shots--room .shot img { aspect-ratio: 3 / 4; }
}

/* due foto affiancate e panoramiche */
.shots--wide { grid-template-columns: 1fr; }
.shots--wide .shot img { aspect-ratio: 4 / 3; }
@media (min-width: 700px) {
  .shots--wide { grid-template-columns: repeat(2, 1fr); }
}

/* foto a piena altezza (colonna del menu) */
.shot--fill { height: 100%; min-height: 320px; }
.shot--fill img { height: 100%; aspect-ratio: auto; }
@media (max-width: 939px) {
  .shot--fill { min-height: 0; }
  .shot--fill img { aspect-ratio: 3 / 4; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 9, 18, 0.94);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { max-width: min(1000px, 100%); }
.lightbox img {
  max-height: 78svh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.lightbox figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(244, 237, 226, 0.1);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background var(--t-fast);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(244, 237, 226, 0.22); }
.lightbox__close { top: 1rem; right: 1rem; font-size: 1.4rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 1.5rem; }
.lightbox__nav--prev { left: 0.6rem; }
.lightbox__nav--next { right: 0.6rem; }

/* --------------------------------------------------------------- DETTAGLIO */
.detail {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  padding-block: clamp(3rem, 9vw, 6rem);
}
.detail__bg { position: absolute; inset: 0; z-index: -2; }
.detail__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.detail__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 25, 0.55) 0%, rgba(6, 13, 25, 0.35) 40%, rgba(6, 13, 25, 0.94) 100%);
}
.detail__body { max-width: 46ch; }
.detail__body p { margin-top: 1rem; color: #dbe3ef; }

/* --------------------------------------------------------------- MENU */
.menu-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 1.8rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.menu-filters::-webkit-scrollbar { display: none; }
.menu-filters button {
  flex: none;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.menu-filters button:hover { border-color: var(--gold); color: var(--gold-soft); }
.menu-filters button[aria-pressed='true'] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.menu-block { scroll-margin-top: calc(var(--header-h) + 90px); }
.menu-block + .menu-block { margin-top: clamp(2.2rem, 6vw, 3.4rem); }
.menu-block[hidden] { display: none; }

.menu-block__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.7rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-strong);
}
.menu-block__head h2 { font-size: clamp(1.25rem, 4vw, 1.7rem); }
.menu-block__head p { font-size: 0.85rem; color: var(--muted); margin-left: auto; text-align: right; }

.dish-list { display: grid; gap: 0.15rem; }
.dish {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px dashed rgba(244, 237, 226, 0.1);
}
.dish:last-child { border-bottom: 0; }
.dish__name { font-weight: 700; }
.dish__name small {
  display: block;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0;
}
.dish__dots {
  flex: 1;
  border-bottom: 1px dotted rgba(244, 237, 226, 0.22);
  transform: translateY(-4px);
  min-width: 1.5rem;
}
.dish__price {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.01em;
  flex: none;
}
.dish__price small {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: right;
  margin-top: -0.15rem;
}
.dish__price--soft { font-family: var(--ff-body); font-size: 0.88rem; font-weight: 700; color: var(--muted); }

/* --------------------------------------------------------------- RECENSIONI */
.reviews { display: grid; gap: 1rem; }
@media (min-width: 800px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.4rem;
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  align-items: center;
  transition: border-color var(--t), transform var(--t);
}
.review-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.review-card__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.review-card__score {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1.1;
}
.review-card__stars { color: var(--gold); letter-spacing: 0.15em; font-size: 0.95rem; }
.review-card p { font-size: 0.85rem; color: var(--muted); }

/* --------------------------------------------------------------- ORARI */
.hours {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.hours li:last-child { border-bottom: 0; }
.hours li.is-today { background: rgba(228, 165, 60, 0.12); font-weight: 800; }
.hours li.is-today .day::before { content: '▸ '; color: var(--gold); }
.hours .day { text-transform: capitalize; }
.hours .time { color: var(--muted); font-variant-numeric: tabular-nums; }
.hours li.is-today .time { color: var(--cream); }

.map-embed {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy-2);
  aspect-ratio: 4 / 3;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.25) contrast(1.05); }

.nap {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}
.nap-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.nap-item svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 3px; }
.nap-item strong { display: block; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.nap-item a, .nap-item span { font-size: 1.05rem; font-weight: 700; }
.nap-item a:hover { color: var(--gold); }

/* --------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 0.6rem; max-width: 62rem; margin-inline: auto; }
.faq details {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  min-height: 56px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--ff-display);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
  transition: transform var(--t);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__body { padding: 0 1.2rem 1.25rem; color: var(--muted); font-size: 0.95rem; }
.faq .faq__body a { color: var(--gold); border-bottom: 1px solid var(--line-strong); }

/* --------------------------------------------------------------- CTA FINALE */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6, 13, 25, 0.86), rgba(6, 13, 25, 0.94)),
    url('../img/hero-circus-900.webp') center / cover;
  text-align: center;
}
.cta-band .shell { position: relative; z-index: 2; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 52ch; margin: 0 auto 1.8rem; color: #dbe3ef; }
.cta-band .btn-row { justify-content: center; }

/* --------------------------------------------------------------- FOOTER */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 7vw, 4rem) 2rem;
  font-size: 0.92rem;
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; } }

.footer img.logo { width: 168px; margin-bottom: 1rem; }
.footer h2 {
  font-family: var(--ff-body);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.footer p, .footer li { color: var(--muted); }
.footer li + li { margin-top: 0.5rem; }
.footer a:hover { color: var(--gold); }

.socials { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.socials a:hover { border-color: var(--gold); background: rgba(228, 165, 60, 0.12); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }

.footer-crest {
  display: block;
  width: 78px;
  height: auto;
  margin: 2.5rem auto 0;
  opacity: 0.45;
}

.footer-crest + .footer-bottom { margin-top: 1.4rem; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #7f8ea6;
}

/* --------------------------------------------------------------- BREADCRUMB */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.crumbs li + li::before { content: '/'; margin-right: 0.45rem; opacity: 0.5; }
.crumbs a:hover { color: var(--gold); }

/* --------------------------------------------------------------- REVEAL */
/* Lo stato nascosto vale solo se il JS è attivo: senza JS (o se lo script
   non parte) i contenuti restano visibili. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero-bg img { animation: none; }
}

/* --------------------------------------------------------------- PRINT */
@media print {
  .header, .dock, .drawer, .cta-band, .socials, .map-embed { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1rem; }
  a::after { content: ' (' attr(href) ')'; font-size: 0.75em; }
}
