/* ==========================================================================
   PALIO DEI TERZIERI — components.css
   Navbar, footer, hero, cards (terzieri/eventi/news/taverne),
   countdown, timeline, form, gara, partner, amministrazione
   ========================================================================== */

/* ─── NAVBAR ────────────────────────────────────────────────────────── */
/* Navbar: scura su hero, chiara dopo lo scroll */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 4, 0, 0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(212, 163, 56, 0.22);
  transition: background var(--t-base), border var(--t-base), box-shadow var(--t-base);
}
.nav.scrolled {
  background: rgba(250, 241, 214, 0.97);
  border-bottom: 1px solid rgba(107, 21, 32, 0.25);
  box-shadow: 0 6px 24px rgba(42, 27, 9, 0.12);
}
/* Default (su hero scura): testo chiaro */
.nav-logo-text { color: var(--gold-light); }
.nav-logo-text span { color: var(--gold-pale); opacity: 0.9; }
.nav-links a { color: var(--parchment); }
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }
.nav-links a::after { background: var(--gold); }
.nav-hamburger span { background: var(--gold-light); }
/* Scrolled (su sezioni chiare): testo scuro */
.nav.scrolled .nav-logo-text { color: var(--ink-text); }
.nav.scrolled .nav-logo-text span { color: var(--burgundy); opacity: 0.9; }
.nav.scrolled .nav-links a { color: var(--ink-text); }
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active { color: var(--burgundy); }
.nav.scrolled .nav-links a::after { background: var(--burgundy); }
.nav.scrolled .nav-hamburger span { background: var(--burgundy); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 2rem;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  transition: opacity var(--t-fast);
  text-decoration: none;
}
.nav-logo:hover { opacity: 0.88; }
.nav-logo-mark {
  width: 56px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.95rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  line-height: 1.15;
  font-weight: 700;
  white-space: nowrap;
}
.nav-logo-text span {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  color: var(--gold-pale);
  letter-spacing: 0.28em;
  font-weight: 400;
  margin-top: 0.25rem;
  opacity: 0.9;
}
@media (max-width: 600px) {
  .nav-logo-text { font-size: 0.78rem; }
  .nav-logo-text span { font-size: 0.5rem; letter-spacing: 0.2em; }
  .nav-logo-mark { width: 44px; }
}
.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  margin-left: auto; /* spinge le voci a destra, lasciando aria al logo */
}
.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--parchment-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color var(--t-fast);
  position: relative;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
/* Le icone solo nel menu mobile (overlay), non nel nav desktop:
   con 8 voci farebbero "appiccicare" il menu al logo */
.nav-links a .icon { display: none; }
/* Sotto 1200px: hamburger. */
@media (max-width: 1200px) {
  .nav-links { display: none !important; }
  .nav-hamburger { display: block !important; }
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold-light); }

.nav-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 110;
}
.nav-hamburger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--gold);
  transition: transform var(--t-base), opacity var(--t-fast), top var(--t-base);
}
.nav-hamburger span:nth-child(1) { top: 14px; }
.nav-hamburger span:nth-child(2) { top: 20px; }
.nav-hamburger span:nth-child(3) { top: 26px; }
.nav-hamburger.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* Pulsante X di chiusura nell'overlay mobile */
.nav-overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 163, 56, 0.08);
  border: 1px solid rgba(212, 163, 56, 0.45);
  color: var(--gold-light);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.nav-overlay-close:hover,
.nav-overlay-close:focus-visible {
  background: var(--gold);
  color: var(--ink);
  transform: rotate(90deg);
}
.nav-overlay-close .icon { width: 18px; height: 18px; font-size: 18px; }

/* Mobile overlay — full-screen menu cinematografico */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 105;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(155, 28, 44, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 88% 75%, rgba(212, 163, 56, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #0E0500 0%, #1A0A00 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}
/* Decoro: cornice oro ai 4 angoli (estetica del Palio) */
.nav-overlay::before,
.nav-overlay::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid var(--gold);
  opacity: 0.55;
  pointer-events: none;
}
.nav-overlay::before {
  top: calc(var(--nav-h) + 0.8rem);
  left: 1rem;
  border-right: none;
  border-bottom: none;
}
.nav-overlay::after {
  bottom: 1rem;
  right: 1rem;
  border-left: none;
  border-top: none;
}
.nav-overlay ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 420px;
  margin: auto 0;
}
.nav-overlay li {
  border-bottom: 1px solid rgba(212, 163, 56, 0.15);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-overlay.open li { opacity: 1; transform: translateY(0); }
.nav-overlay.open li:nth-child(1) { transition-delay: 0.10s; }
.nav-overlay.open li:nth-child(2) { transition-delay: 0.15s; }
.nav-overlay.open li:nth-child(3) { transition-delay: 0.20s; }
.nav-overlay.open li:nth-child(4) { transition-delay: 0.25s; }
.nav-overlay.open li:nth-child(5) { transition-delay: 0.30s; }
.nav-overlay.open li:nth-child(6) { transition-delay: 0.35s; }
.nav-overlay.open li:nth-child(7) { transition-delay: 0.40s; }
.nav-overlay.open li:nth-child(8) { transition-delay: 0.45s; }
.nav-overlay a {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--parchment);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color var(--t-fast), background var(--t-fast), padding-left var(--t-fast);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  width: 100%;
}
.nav-overlay a .icon {
  font-size: 0.9rem;
  color: var(--gold-light);
  opacity: 0.8;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.nav-overlay a:hover,
.nav-overlay a:focus,
.nav-overlay a.active {
  color: var(--gold-light);
  background: rgba(212, 163, 56, 0.06);
  padding-left: 1.6rem;
}
.nav-overlay a:hover .icon,
.nav-overlay a.active .icon { opacity: 1; }
/* Footer del menu mobile: link secondari (privacy, cookie) */
.nav-overlay-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 163, 56, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 420px;
}
.nav-overlay-footer a {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--parchment-2);
  opacity: 0.75;
  text-transform: none;
  padding: 0.3rem 0;
  width: auto;
  display: inline-block;
}
.nav-overlay-footer a:hover { color: var(--gold-light); opacity: 1; padding-left: 0; background: none; }

/* ─── FOOTER ────────────────────────────────────────────────────────── */
footer {
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  color: var(--parchment);
  padding: 4.5rem 2rem 2rem;
  border-top: 3px solid var(--gold);
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
}
.footer-col h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer-logo-mark {
  width: 64px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  flex-shrink: 0;
}
.footer-logo-text {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  line-height: 1.2;
  font-weight: 700;
}
.footer-logo-text span {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  color: var(--gold-pale);
  letter-spacing: 0.28em;
  margin-top: 0.35rem;
  font-weight: 400;
  opacity: 0.85;
}
.footer-payoff {
  font-style: italic;
  font-size: 1rem;
  color: var(--parchment);
  opacity: 0.85;
  line-height: 1.6;
  margin-top: 1rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--parchment);
  text-transform: uppercase;
  opacity: 0.85;
  transition: color var(--t-fast), opacity var(--t-fast), transform var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.footer-links a i { font-size: 0.55rem; color: var(--gold); }
.footer-links a:hover { color: var(--gold-light); opacity: 1; transform: translateX(3px); }
.footer-contact-line {
  font-size: 0.95rem;
  color: var(--parchment);
  opacity: 0.92;
  margin-bottom: 1rem;
  line-height: 1.55;
}
.footer-contact-line strong {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--gold-light);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}
.footer-contact-line a { transition: color var(--t-fast); color: var(--parchment); }
.footer-contact-line a:hover { color: var(--gold-light); }
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(201, 151, 43, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: all var(--t-base);
  font-size: 0.95rem;
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 151, 43, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--parchment);
  opacity: 0.7;
  letter-spacing: 0.08em;
}
.footer-piva {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--parchment);
  opacity: 0.65;
}
.footer-trasp {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  opacity: 0.85;
  text-transform: uppercase;
  font-weight: 600;
  transition: opacity var(--t-fast), color var(--t-fast);
}
.footer-trasp:hover { opacity: 1; color: var(--gold-pale); }

/* ═══ HERO — POSTER RINASCIMENTALE STAMPATO SU PERGAMENA ═══════════ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) clamp(1.5rem, 5vw, 4rem) 4rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(155, 28, 44, 0.45) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 88% 75%, rgba(212, 163, 56, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 12% 80%, rgba(155, 28, 44, 0.22) 0%, transparent 60%),
    linear-gradient(180deg, #0E0500 0%, #1A0A00 50%, #050100 100%);
  color: var(--parchment);
}
/* Damask pattern oro tenue */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(212, 163, 56, 0.06) 1px, transparent 1.5px),
    radial-gradient(circle at 0 0, rgba(212, 163, 56, 0.04) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px;
  background-position: 0 0, 25px 25px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}
/* Vignette angolare */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 130% 100% at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  z-index: 2;
}
.hero-bg, .hero-ornament { display: none; }

/* ─── HERO con sfondo foto sfocato (variante non distruttiva) ───
   Si attiva con la classe .hero--photo + il div .hero-bg con un'<img>.
   Per tornare alla versione "rosso scuro" basta rimuovere .hero--photo. */
.hero--photo .hero-bg {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero--photo .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: blur(7px) brightness(0.5) saturate(1.15);
  transform: scale(1.1);
}
/* Sopra l'immagine: gradient che mantiene la cifra cinematografica del Palio */
.hero--photo::after {
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(155, 28, 44, 0.40) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 88% 75%, rgba(212, 163, 56, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 130% 100% at 50% 50%, rgba(10, 4, 0, 0.4) 30%, rgba(0, 0, 0, 0.78) 100%);
  z-index: 2;
}
@media (max-width: 700px) {
  .hero--photo .hero-bg img {
    filter: blur(5px) brightness(0.5) saturate(1.1);
  }
}

/* CONTENUTO HERO — centrato cinematico, gerarchia ridotta a 4 livelli */
.hero-text {
  position: relative;
  z-index: 5;
  max-width: 940px;
  margin: 0 auto;
}
.hero-bow-centered { display: none; }
.hero-mini-mark { display: none; }

.hero-supratitle {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.7rem, 1.1vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.55em;
  color: var(--gold-pale);
  line-height: 1;
  margin-bottom: 1.8rem;
  text-transform: uppercase;
  animation: fadeUp 0.7s 0.05s both;
  display: inline-block;
  opacity: 0.92;
  /* Margine destro a bilanciare il letter-spacing (lo spacing aggiunge 0.55em sull'ultima lettera) */
  padding-left: 0.55em;
}

.hero-title-big {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(3.4rem, 9.5vw, 8.4rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--parchment);
  margin-bottom: 1.4rem;
  animation: fadeUp 0.8s 0.15s both;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  text-align: center;
  display: block;
  width: 100%;
}
.hero-title-big .line {
  display: block;
  text-align: center;
}
/* "dei" italic Garamond: connettore tipografico, sale appena sopra la x-height */
.hero-title-big .dei {
  color: var(--gold-pale);
  font-weight: 400;
  font-style: italic;
  font-family: 'EB Garamond', serif;
  font-size: 0.42em;
  letter-spacing: 0.02em;
  vertical-align: 0.5em;
  margin: 0 0.15em;
  opacity: 0.88;
}
.hero-title-big .terz {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #E8C97A 0%, #D4A338 50%, #B8861E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: -0.04em;
}

.hero-place {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.78rem, 1.15vw, 0.95rem);
  letter-spacing: 0.45em;
  color: var(--parchment-2);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  animation: fadeUp 0.7s 0.25s both;
  font-weight: 400;
  opacity: 0.85;
  padding-left: 0.45em; /* compensa letter-spacing per centratura ottica */
}
.hero-place .dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold);
  margin: 0 0.8rem;
  vertical-align: middle;
  transform: rotate(45deg);
}

/* Data: senza border-top/bottom, font Cinzel pulito (non Decorative) */
.hero-date-line {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.4em;
  margin: 0 auto 2.6rem;
  display: inline-block;
  animation: fadeUp 0.7s 0.35s both;
  padding: 0 0 0 0.4em; /* padding-left compensa letter-spacing */
  text-transform: uppercase;
  position: relative;
}
/* sigillo araldico discreto sotto la data */
.hero-date-line::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  margin: 1rem auto 0;
  opacity: 0.7;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.7s 0.45s both;
}

/* Stemmi sotto il titolo — disposti orizzontalmente, piccoli */
.hero-figure {
  position: relative;
  z-index: 3;
  margin-top: 2.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero-three-shields {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1.4rem, 4vw, 3rem);
  max-width: 560px;
  margin: 0 auto;
}
.hero-three-shields .shield-item { animation: fadeUp 0.7s both; }
.hero-three-shields .shield-1 { animation-delay: 0.55s; }
.hero-three-shields .shield-2 { animation-delay: 0.65s; }
.hero-three-shields .shield-3 { animation-delay: 0.75s; }
.shield-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: default;
  flex: 0 0 auto;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* I PNG degli stemmi sono stati ritagliati al loro bounding box visibile,
   quindi canvas = contenuto. Con `object-fit: contain` + altezza uguale
   per tutti gli stage, le altezze visibili sono *esattamente* identiche. */
.shield-img-stage {
  height: clamp(120px, 15vw, 160px);
  width: clamp(110px, 13vw, 140px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.shield-img-stage img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
  transform-origin: center bottom;
}
.shield-item:hover {
  transform: translateY(-8px);
}
.shield-item:hover .shield-img-stage img {
  transform: rotate(-3deg);
}
.shield-name {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--gold-pale);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.9rem;
  white-space: nowrap;
  opacity: 0.85;
  padding-left: 0.28em; /* compensa il letter-spacing per centratura ottica */
}
.shield-name::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 0.5rem;
  opacity: 0.6;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  text-transform: uppercase;
  text-align: center;
  z-index: 6;
  opacity: 0.7;
}
.hero-scroll i {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
  animation: scrollBlink 2s infinite;
}

/* Cornice decorativa oro sottile */
.hero-border {
  position: absolute;
  inset: 1.5rem;
  border: 1px solid rgba(212, 163, 56, 0.25);
  pointer-events: none;
  z-index: 3;
}
.hero-border::before,
.hero-border::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid var(--gold);
  opacity: 0.65;
}
.hero-border::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}
.hero-border::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}

/* Responsive hero */
@media (max-width: 900px) {
  .hero { padding: calc(var(--nav-h) + 2rem) 1.5rem 2.5rem; }
  .hero-three-shields { gap: 1.5rem; max-width: 480px; }
}
@media (max-width: 600px) {
  .hero { padding: calc(var(--nav-h) + 1.5rem) 1.2rem 2rem; }
  .hero-supratitle { letter-spacing: 0.4em; }
  .hero-supratitle::before, .hero-supratitle::after { width: 25px; }
  .hero-place { letter-spacing: 0.28em; padding-left: 0.28em; font-size: 0.72rem; }
  .hero-place .dot { margin: 0 0.5rem; }
  .hero-date-line { letter-spacing: 0.3em; padding-left: 0.3em; }
  .hero-three-shields { gap: 1rem; max-width: 100%; }
  .shield-img-stage { height: clamp(100px, 24vw, 130px); width: clamp(80px, 20vw, 110px); }
  .shield-name {
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    padding-left: 0.18em;
    white-space: normal;
    line-height: 1.3;
    max-width: 7em;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ─── TERZIERI CARDS — anatomia comune, identità solo nella bandiera ─── */
.terzieri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.terziere-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--ink-3);
  border-top: none;
  display: grid;
  grid-template-rows: 6px auto 1fr;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  border-bottom: 1px solid rgba(212, 163, 56, 0.0);
}
.terziere-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.55);
  border-bottom-color: rgba(212, 163, 56, 0.45);
}
/* striscia identità (top): tre colori del terziere a fasce verticali.
   Le colorazioni sono codificate per modificatore .card-castello/.card-casalino/.card-borgo. */
.terziere-flag {
  display: flex;
  height: 6px;
  width: 100%;
}
.terziere-flag span {
  flex: 1;
  display: block;
  background: currentColor;
}
/* Castello: verde umbro / nero / bianco */
.card-castello .terziere-flag span:nth-child(1) { background: #1F4528; }
.card-castello .terziere-flag span:nth-child(2) { background: #0A0A0A; }
.card-castello .terziere-flag span:nth-child(3) { background: #FFFFFF; }
/* Casalino: tricolore azzurro / bianco / rosso */
.card-casalino .terziere-flag span:nth-child(1) { background: #2E5DA8; }
.card-casalino .terziere-flag span:nth-child(2) { background: #FFFFFF; }
.card-casalino .terziere-flag span:nth-child(3) { background: #C72527; }
/* Borgo Dentro: oro / nero / oro */
.card-borgo .terziere-flag span:nth-child(1) { background: #F4C430; }
.card-borgo .terziere-flag span:nth-child(2) { background: #0A0A0A; }
.card-borgo .terziere-flag span:nth-child(3) { background: #F4C430; }
/* hairline oro sotto la bandiera per coerenza di sistema */
.terziere-card::after {
  content: '';
  grid-row: 2;
  grid-column: 1;
  height: 1px;
  background: rgba(212, 163, 56, 0.25);
  align-self: start;
  margin-top: -1px;
  pointer-events: none;
}
/* box stemma: fondo neutro identico per tutte e tre le card */
.stemma-box {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(212, 163, 56, 0.06), transparent 70%),
    var(--ink-2);
  padding: 2.5rem 2rem 1.5rem;
  position: relative;
  isolation: isolate;
}
/* glow oro che entra in dissolvenza su hover — usa opacity (GPU-cheap),
   non filter sul PNG, così evitiamo il re-rastering che generava il glitch */
.stemma-box::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(212, 163, 56, 0.22), transparent 65%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.terziere-card:hover .stemma-box::before { opacity: 1; }

.stemma-box .stemma-img {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  max-height: 180px;
  max-width: 80%;
  object-fit: contain;
  margin: 0;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55));
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  backface-visibility: hidden;
}
.terziere-card:hover .stemma-box .stemma-img {
  transform: translate3d(0, -4px, 0) scale(1.04);
}
/* azzera la regola .card-borgo .stemma-img che faceva 230px */
.card-borgo .stemma-box .stemma-img,
.card-borgo .stemma-img { height: 100%; max-height: 180px; max-width: 80%; }

.terziere-body {
  padding: 1.8rem 2rem 2rem;
}
.terziere-card .terziere-num {
  position: static;
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  font-weight: 600;
  opacity: 1;
  margin-right: 0.6em;
}

/* ─── NARRATIVE / STORYTELLING ─────────────────────────────────────── */
.narrative-bridge {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 0;
}
.narrative-bridge .quote {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.55;
  color: var(--parchment);
  margin: 1.5rem 0;
}
.narrative-bridge .quote::before,
.narrative-bridge .quote::after {
  content: '"';
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold-light);
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.4em;
  margin: 0 0.15em;
}
.narrative-bridge .attribution {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-top: 1.8rem;
  font-weight: 600;
}
/* Narrative bridge su sezione chiara */
.section-bg-1 .narrative-bridge .quote,
.section-bg-2 .narrative-bridge .quote,
.section-bg-3 .narrative-bridge .quote,
.section-bg-4 .narrative-bridge .quote,
.section-bg-parchment .narrative-bridge .quote {
  color: var(--ink-text);
}
.section-bg-1 .narrative-bridge .quote::before,
.section-bg-1 .narrative-bridge .quote::after,
.section-bg-2 .narrative-bridge .quote::before,
.section-bg-2 .narrative-bridge .quote::after,
.section-bg-3 .narrative-bridge .quote::before,
.section-bg-3 .narrative-bridge .quote::after,
.section-bg-4 .narrative-bridge .quote::before,
.section-bg-4 .narrative-bridge .quote::after,
.section-bg-parchment .narrative-bridge .quote::before,
.section-bg-parchment .narrative-bridge .quote::after { color: var(--burgundy); }
.section-bg-1 .narrative-bridge .attribution,
.section-bg-2 .narrative-bridge .attribution,
.section-bg-3 .narrative-bridge .attribution,
.section-bg-4 .narrative-bridge .attribution,
.section-bg-parchment .narrative-bridge .attribution { color: var(--burgundy); }


.section-cta-end {
  margin-top: 3.5rem;
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(107, 21, 32, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.section-bg-ink .section-cta-end,
.section-bg-burgundy .section-cta-end { border-top-color: rgba(212, 163, 56, 0.25); }
.section-cta-end .teaser {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--ink-text-2);
  font-size: 1.1rem;
}
.section-bg-ink .section-cta-end .teaser,
.section-bg-burgundy .section-cta-end .teaser { color: var(--parchment-2); }
.section-bg-parchment .section-cta-end {
  border-top-color: rgba(107, 21, 32, 0.2);
}
.section-bg-parchment .section-cta-end .teaser { color: #4A2E0F; opacity: 1; }
.section-bg-parchment .btn--secondary {
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.section-bg-parchment .btn--secondary:hover {
  background: rgba(107, 21, 32, 0.08);
  color: var(--burgundy);
}

/* History highlights — su parchment */
.section-bg-parchment .history-card {
  background: rgba(255, 255, 255, 0.55);
  border-top: 2px solid var(--burgundy);
  color: #2A1B09;
}
.section-bg-parchment .history-card:hover {
  background: rgba(255, 255, 255, 0.75);
}
.section-bg-parchment .history-card i { color: var(--burgundy); }
.section-bg-parchment .history-card .year { color: var(--burgundy); }
.section-bg-parchment .history-card p { color: #3D2A12; }

/* Stemma araldico (immagine PNG)
   sizing è gestito da .stemma-box (vedi sopra). Lasciamo qui solo il fallback per altri contesti. */
.stemma-img {
  height: 170px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin: 0 0 1.5rem;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
  transition: transform var(--t-base);
}

.taverna-stemma {
  height: 90px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  margin-bottom: 1.2rem;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}
.taverna-stemma-big {
  height: 140px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}
/* Borgo: stemma più grande per compensare padding PNG */
.bg-borgo .taverna-stemma-big { height: 190px; max-width: 190px; }

.terziere-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: baseline;
}
.terziere-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.4rem;
  color: var(--parchment);
  margin-bottom: 1.2rem;
  line-height: 1.2;
  font-weight: 700;
}
.terziere-desc {
  font-size: 0.98rem;
  color: var(--parchment-2);
  line-height: 1.75;
  opacity: 0.9;
}
/* (.terziere-colors e .color-stripe rimossi: i colori del terziere sono ora nella .terziere-flag in cima alla card) */

/* ─── GARA SECTION ──────────────────────────────────────────────────── */
.gara-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.gara-text p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--ink-text-2);
  margin-bottom: 1.3rem;
}

/* ═══ GARA CLEAN — versione pulita centrata, niente bersaglio ═════ */
.gara-clean {
  max-width: 880px;
  margin: 0 auto;
}
/* Immagine cinematografica dell'arciere a inizio sezione */
.gara-hero-img {
  margin: 0 auto 3rem;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(212, 163, 56, 0.35);
}
.gara-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(10, 4, 0, 0.55) 100%),
    radial-gradient(ellipse at center, transparent 50%, rgba(10, 4, 0, 0.35) 100%);
  pointer-events: none;
}
.gara-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}
.gara-clean-text {
  text-align: center;
}
.gara-clean-text p {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.85;
  color: var(--parchment-2);
  margin: 0 auto 1.4rem;
  max-width: 720px;
}
.gara-clean-text strong.text-gold-light { color: var(--gold-light) !important; font-weight: 600; }

/* Punteggi inline — riga elegante */
.punteggi-inline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 4rem auto 0;
  max-width: 800px;
  background: rgba(212, 163, 56, 0.25);
  border: 1px solid rgba(212, 163, 56, 0.35);
}
.punteggio-inline {
  background: var(--ink-3);
  padding: 2.2rem 1.2rem;
  text-align: center;
  transition: background var(--t-base);
}
.punteggio-inline:hover { background: var(--ink-2); }
.punteggio-inline .num {
  display: block;
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--gold-light);
  font-weight: 700;
  line-height: 1;
}
.punteggio-inline .num::after {
  content: ' pt';
  font-family: 'Cinzel', serif;
  font-size: 0.35em;
  color: var(--gold-pale);
  letter-spacing: 0.15em;
  font-weight: 400;
  margin-left: 0.15em;
  vertical-align: 0.6em;
}
.punteggio-inline .zona {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--parchment-2);
  text-transform: uppercase;
  margin-top: 0.9rem;
  font-weight: 600;
}
@media (max-width: 700px) {
  .punteggi-inline { grid-template-columns: repeat(2, 1fr); }
  .punteggio-inline { padding: 1.8rem 0.8rem; }
}
.section-bg-ink .gara-text p,
.section-bg-burgundy .gara-text p { color: var(--parchment-2); }
.section-bg-ink .regolamento-list li,
.section-bg-burgundy .regolamento-list li { color: var(--parchment-2); }
.section-bg-ink .regolamento-list li i,
.section-bg-burgundy .regolamento-list li i { color: var(--gold); }
.section-bg-ink .gara-text p strong,
.section-bg-burgundy .gara-text p strong { color: var(--gold-light) !important; }
.section-bg-ink .gara-text p em,
.section-bg-burgundy .gara-text p em { color: var(--gold-pale); font-style: italic; }
/* Drop cap su sezioni scure */
.section-bg-ink .drop-cap::first-letter,
.section-bg-burgundy .drop-cap::first-letter {
  color: var(--gold-light);
  background: linear-gradient(180deg, rgba(212, 163, 56, 0.18) 0%, transparent 80%);
  border-left-color: var(--gold);
}
.punteggio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}
.punteggio-item {
  border-top: 2px solid var(--burgundy);
  padding: 1.3rem 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  transition: all var(--t-base);
}
.punteggio-item:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-3px);
}
.punteggio-val {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.4rem;
  color: var(--burgundy);
  line-height: 1;
  font-weight: 700;
}
.punteggio-val span { font-size: 0.8rem; color: var(--gold-deep); margin-left: 0.2rem; }
.punteggio-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-text-2);
  margin-top: 0.5rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.punteggio-label i { color: var(--burgundy); }
/* Punteggi su sezioni scure (gara dark) */
.section-bg-ink .punteggio-item,
.section-bg-burgundy .punteggio-item {
  background: rgba(212, 163, 56, 0.06);
  border-top-color: var(--gold);
}
.section-bg-ink .punteggio-item:hover,
.section-bg-burgundy .punteggio-item:hover {
  background: rgba(212, 163, 56, 0.14);
}
.section-bg-ink .punteggio-val,
.section-bg-burgundy .punteggio-val { color: var(--gold-light); }
.section-bg-ink .punteggio-val span,
.section-bg-burgundy .punteggio-val span { color: var(--gold-pale); }
.section-bg-ink .punteggio-label,
.section-bg-burgundy .punteggio-label { color: var(--parchment-2); }
.section-bg-ink .punteggio-label i,
.section-bg-burgundy .punteggio-label i { color: var(--gold); }

.archery-visual { display: flex; align-items: center; justify-content: center; }
.target-svg { width: 100%; max-width: 420px; }
.target-svg circle.ring { cursor: pointer; transition: filter var(--t-base); }
.target-svg circle.ring:hover { filter: brightness(1.3); }

.regolamento-list {
  list-style: none;
  margin-top: 1.5rem;
}
.regolamento-list li {
  font-size: 1.05rem;
  color: var(--ink-text-2);
  line-height: 1.75;
  padding: 0.6rem 0 0.6rem 1.8rem;
  position: relative;
}
.regolamento-list li i {
  position: absolute;
  left: 0;
  top: 0.95rem;
  color: var(--burgundy);
  font-size: 0.7rem;
}

/* ─── COUNTDOWN — niente cornice, numeri "monumento" ─────────────── */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 880px;
  margin: 2.5rem auto 3rem;
  padding: 0;
  border: none;
  background: transparent;
  position: relative;
}
.countdown::before,
.countdown::after { display: none; }
.countdown.large { max-width: 980px; padding: 1rem 0; }
.cd-block {
  text-align: center;
  padding: 1.6rem 1rem;
  border-right: 1px solid rgba(107, 21, 32, 0.18);
  position: relative;
}
.cd-block:last-child { border-right: none; }
.cd-block::after { display: none; }
.cd-num {
  /* Cinzel pulito (non Decorative), tabular nums, letter-spacing stretto */
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6.5vw, 5rem);
  color: var(--burgundy);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.countdown.large .cd-num { font-size: clamp(3.4rem, 8vw, 6rem); }
.cd-label {
  font-family: 'Cinzel', serif;
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-top: 1rem;
  opacity: 0.85;
}
.countdown-msg {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--burgundy);
  padding: 1rem;
}
/* Su sezioni dark/burgundy: numeri oro */
.section-bg-ink .cd-num,
.section-bg-burgundy .cd-num,
.taverna-full .cd-num { color: var(--gold-light); }
.section-bg-ink .cd-block,
.section-bg-burgundy .cd-block { border-right-color: rgba(212, 163, 56, 0.25); }
.section-bg-ink .cd-label,
.section-bg-burgundy .cd-label { color: var(--gold-pale); }

/* ─── STORIA TIMELINE ───────────────────────────────────────────────── */
.storia-timeline {
  position: relative;
  margin-top: 3rem;
  padding-bottom: 1rem;
}
.storia-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(107, 21, 32, 0.45) 10%, rgba(107, 21, 32, 0.45) 90%, transparent);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-bottom: 4rem;
  align-items: start;
}
.timeline-item:nth-child(odd) .timeline-content { grid-column: 1; text-align: right; padding-right: 3rem; }
.timeline-item:nth-child(odd) .timeline-empty  { grid-column: 3; }
.timeline-item:nth-child(even) .timeline-content { grid-column: 3; grid-row: 1; text-align: left; padding-left: 3rem; }
.timeline-item:nth-child(even) .timeline-empty  { grid-column: 1; grid-row: 1; }
.timeline-dot {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.4rem;
}
.timeline-dot-inner {
  width: 14px;
  height: 14px;
  background: var(--burgundy);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(250, 241, 214, 0.9), 0 0 14px rgba(107, 21, 32, 0.45);
}
.timeline-year {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.3rem;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.timeline-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-text-2);
}

/* ─── HISTORY HIGHLIGHTS (3 cards orizzontali) ─────────────────────── */
.history-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.history-card {
  border-top: 2px solid var(--gold);
  background: rgba(201, 151, 43, 0.04);
  padding: 2rem 1.8rem;
  transition: all var(--t-base);
}
.history-card:hover {
  background: rgba(201, 151, 43, 0.08);
  transform: translateY(-5px);
}
.history-card i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: inline-block;
}
.history-card .year {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.history-card p {
  font-size: 0.95rem;
  color: var(--parchment-2);
  line-height: 1.7;
  opacity: 0.85;
}

/* ─── EVENTS GRID ───────────────────────────────────────────────────── */
.eventi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.evento-card {
  background: rgba(255, 255, 255, 0.55);
  border-top: 2px solid var(--burgundy);
  padding: 2.5rem 2rem;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(74, 46, 15, 0.05);
}
.evento-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.evento-card:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -16px rgba(74, 46, 15, 0.25);
}
.evento-card:hover::after { transform: scaleX(1); }
.evento-card .evento-icon {
  font-size: 1.5rem;
  color: var(--burgundy);
  margin-bottom: 1rem;
}
.evento-date {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--burgundy);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.evento-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.3rem;
  color: var(--ink-text);
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 700;
}
.evento-desc {
  font-size: 1rem;
  color: var(--ink-text-2);
  line-height: 1.7;
}
.evento-luogo {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--burgundy);
  text-transform: uppercase;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.evento-arrow {
  margin-top: 1.5rem;
  color: var(--burgundy);
  font-size: 1.1rem;
  transition: transform var(--t-base);
}
.evento-card:hover .evento-arrow { transform: translateX(8px); }

/* Calendario completo (lista verticale) */
.evento-row {
  display: grid;
  grid-template-columns: 200px 60px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(107, 21, 32, 0.18);
}
.evento-row:last-child { border-bottom: none; }
.evento-row .evento-date-big {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.15rem;
  color: var(--burgundy);
  line-height: 1.3;
  font-weight: 700;
}
.evento-row .evento-icon-big {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--burgundy);
  background: rgba(107, 21, 32, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
  font-size: 1.2rem;
}
.evento-row h3 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.4rem;
  color: var(--ink-text);
  margin-bottom: 0.6rem;
}
.evento-row .evento-luogo {
  display: inline-flex;
  margin: 0 0 0.8rem;
  font-size: 0.7rem;
}
.evento-row p {
  font-size: 1.05rem;
  color: var(--ink-text-2);
  line-height: 1.75;
}

/* ─── NEWS ──────────────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  /* Breakpoint classici desc: 3 col → 2 → 1. Più stabile di auto-fit
     che alcuni browser non ricalcolano correttamente dopo resize/fullscreen. */
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem auto 0;
  max-width: var(--max-w);
}
@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; gap: 1.2rem; }
}
.news-card {
  background: var(--ink-3);
  border-top: 2px solid var(--gold);
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
  /* Comportamento da button: cliccabile, no border default, text-align */
  border-left: none;
  border-right: none;
  border-bottom: none;
  padding: 0;
  /* font-size esplicito invece di "font: inherit" — evita che i child con
     unità em/rem siano influenzati da cambi di font-size globali (bug
     dimensioni icone dopo fullscreen toggle) */
  font-family: inherit;
  font-size: 16px;
  color: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.45);
}
.news-card:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px -16px rgba(201, 151, 43, 0.25);
}
.news-card:hover .img-placeholder { filter: brightness(1.15); }
.news-img { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }

/* News placeholder "editoriale": decorazione intenzionale, non "broken image" */
.news-img-decor {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  padding: 1.5rem;
  position: relative;
  border: 1px solid rgba(212, 163, 56, 0.2);
}
.news-img-decor::before {
  /* trama diamantina ripetuta, "carta intagliata" */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0, transparent 30px, rgba(212, 163, 56, 0.08) 30px, rgba(212, 163, 56, 0.08) 31px),
    repeating-linear-gradient(-45deg, transparent 0, transparent 30px, rgba(212, 163, 56, 0.08) 30px, rgba(212, 163, 56, 0.08) 31px);
  pointer-events: none;
}
.news-img-decor::after {
  /* sigillo araldico al centro, dietro il contenuto.
     Ridotto a 80px per evitare effetti di scala su reflow / fullscreen toggle. */
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(212, 163, 56, 0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.news-img-decor--burgundy {
  background:
    radial-gradient(ellipse at top, rgba(212, 163, 56, 0.10), transparent 60%),
    linear-gradient(180deg, var(--burgundy) 0%, #4A0F18 100%);
}
.news-img-decor--ink {
  background:
    radial-gradient(ellipse at top, rgba(212, 163, 56, 0.10), transparent 60%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink-4) 100%);
}
.news-img-decor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  flex: 0 0 56px; /* shorthand: grow shrink basis */
  border: 1px solid rgba(212, 163, 56, 0.45);
  color: var(--gold-light);
  /* px (non rem) per essere immune ai cambi di root font-size browser-side */
  font-size: 20px;
  line-height: 1;
  position: relative;
  z-index: 1;
  transform: rotate(45deg);
}
/* Forza dimensioni assolute sull'icona SVG dentro il decor: blocca qualsiasi
   ricalcolo dell'unità em/rem dovuto a reflow (es. fullscreen toggle) */
.news-img-decor-icon > .icon,
.news-img-decor-icon > svg.icon {
  width: 22px !important;
  height: 22px !important;
  font-size: 22px !important;
  flex-shrink: 0;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
}
.news-img-decor-icon i { transform: rotate(-45deg); }
.news-img-decor-label {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-pale);
  line-height: 1.5;
  position: relative;
  z-index: 1;
  opacity: 0.95;
}
.news-card:hover .news-img-decor { border-color: rgba(212, 163, 56, 0.4); }
.news-card:hover .news-img-decor-icon { background: rgba(212, 163, 56, 0.12); }
.news-img-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* preserva la parte alta del poster (dove sta il titolo) */
  display: block;
  transition: transform 0.6s ease, filter var(--t-base);
}
.news-card:hover .news-img-real { transform: scale(1.06); filter: brightness(1.05); }
.news-body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }
.news-date {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.news-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.2rem;
  color: var(--parchment);
  margin-bottom: 1rem;
  line-height: 1.35;
  font-weight: 700;
}
.news-excerpt {
  font-size: 0.95rem;
  color: var(--parchment-2);
  line-height: 1.7;
  opacity: 0.85;
  flex: 1;
  margin-bottom: 1.5rem;
}
.news-link {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--t-fast), gap var(--t-fast);
}
.news-link:hover { color: var(--gold-light); gap: 0.8rem; }

/* ═══ NEWS MODAL ═════════════════════════════════════════════════════ */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.news-modal.open {
  opacity: 1;
  visibility: visible;
}
.news-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 4, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.news-modal-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--parchment);
  color: var(--ink-text);
  border: 1px solid var(--burgundy);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.news-modal.open .news-modal-content {
  transform: translateY(0) scale(1);
}
.news-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 4, 0, 0.65);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 3;
  transition: background var(--t-fast), transform var(--t-fast);
}
.news-modal-close:hover {
  background: var(--burgundy);
  color: var(--parchment);
  transform: rotate(90deg);
}
.news-modal-img {
  width: 100%;
  background: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 70vh;
  overflow: hidden;
}
/* Immagine reale: mostrata per intero (no crop) con altezza adattiva */
.news-modal-img > img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Placeholder decor: mantiene altezza fissa */
.news-modal-img > .news-img-decor {
  width: 100%;
  height: clamp(220px, 38vh, 360px);
  flex-shrink: 0;
}
.news-modal-img .img-placeholder {
  border: none;
  aspect-ratio: auto;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
}
.news-modal-body {
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem) 3rem;
}
.news-modal-date {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--burgundy);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.news-modal-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--ink-text);
  line-height: 1.25;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.news-modal-text {
  font-family: 'EB Garamond', serif;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--ink-text-2);
}
.news-modal-text p { margin-bottom: 1.2rem; color: var(--ink-text-2); }
.news-modal-text p:last-child { margin-bottom: 0; }
.news-modal-text strong { color: var(--burgundy); font-weight: 600; }
.news-modal-text em { color: var(--burgundy); font-style: italic; }
.news-modal-text .news-modal-meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(107, 21, 32, 0.25);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--burgundy);
  text-transform: uppercase;
  font-weight: 600;
}
/* CTA al link interno (es. "Vedi il programma" per news sul programma) */
.news-modal-cta-wrap {
  margin: 2.5rem 0 0 !important;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(107, 21, 32, 0.2);
  text-align: center;
}
.news-modal-cta {
  background: var(--burgundy);
  color: var(--parchment);
  border-color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: 1px solid var(--burgundy);
  text-decoration: none;
  transition: background var(--t-base), color var(--t-base), transform var(--t-base);
}
.news-modal-cta:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.news-modal-cta .icon { font-size: 0.9rem; }

/* Scrollbar custom modal */
.news-modal-content::-webkit-scrollbar { width: 8px; }
.news-modal-content::-webkit-scrollbar-track { background: rgba(107, 21, 32, 0.08); }
.news-modal-content::-webkit-scrollbar-thumb { background: var(--burgundy); border-radius: 0; }
.news-modal-content::-webkit-scrollbar-thumb:hover { background: var(--deep-red); }

body.modal-open { overflow: hidden; }

@media (max-width: 700px) {
  .news-modal { padding: 0; align-items: stretch; }
  .news-modal-content {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border: none;
    transform: translateY(40px);
  }
  .news-modal.open .news-modal-content { transform: translateY(0) scale(1); }
  .news-modal-img { max-height: 50vh; }
  .news-modal-img > img { max-height: 50vh; }
  .news-modal-img > .news-img-decor { height: clamp(180px, 28vh, 280px); }
  .news-modal-img .img-placeholder { height: 220px; }
  .news-modal-close { top: 0.7rem; right: 0.7rem; width: 40px; height: 40px; }
  .news-modal-body { padding: 1.8rem 1.4rem 2.5rem; }
  .news-modal-title { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .news-modal-text { font-size: 1rem; line-height: 1.7; }
  .news-modal-text p { margin-bottom: 1rem; }
}

/* News card mobile compatto */
@media (max-width: 700px) {
  .news-grid {
    gap: 1.4rem;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }
  .news-card {
    width: 100%;
    max-width: 100%;
    box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.4);
    overflow: hidden;
  }
  .news-img {
    aspect-ratio: 4 / 3;
    width: 100%;
    overflow: hidden;
  }
  .news-img-real { object-position: center top; }
  .news-body {
    padding: 1.4rem 1.3rem 1.5rem;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }
  .news-date {
    font-size: 0.6rem;
    letter-spacing: 0.28em;
  }
  .news-title {
    font-size: 1.08rem;
    line-height: 1.3;
    margin: 0.5rem 0 0.7rem;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .news-excerpt {
    font-size: 0.92rem;
    line-height: 1.55;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }
  .news-link {
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    margin-top: 1rem;
  }
  /* Decor placeholder labels — possono essere lunghe, vanno a capo */
  .news-img-decor-label {
    word-wrap: break-word;
    overflow-wrap: anywhere;
    max-width: 90%;
  }
}

/* News card extra-small mobile (≤420px) */
@media (max-width: 420px) {
  .news-grid { gap: 1.2rem; }
  .news-img { aspect-ratio: 3 / 2; }
  .news-body { padding: 1.2rem 1rem 1.3rem; }
  .news-title { font-size: 1rem; line-height: 1.3; }
  .news-excerpt { font-size: 0.88rem; }
  .news-modal-body { padding: 1.4rem 1.1rem 2rem; }
  .news-modal-img { max-height: 42vh; }
  .news-modal-img > img { max-height: 42vh; }
  .news-img-decor-icon { width: 48px; height: 48px; font-size: 18px; }
  .news-img-decor-icon .icon { width: 18px; height: 18px; font-size: 18px; }
  .news-img-decor-label { font-size: 0.62rem; letter-spacing: 0.2em; line-height: 1.4; }
  .news-img-decor::after { width: 60px; height: 60px; }
}

/* ─── TAVERNE ───────────────────────────────────────────────────────── */
.taverne-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.taverna-card {
  padding: 1px;
  background: linear-gradient(135deg, var(--gold) 0%, rgba(201, 151, 43, 0.2) 50%, transparent 100%);
  transition: transform var(--t-base);
}
.taverna-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, rgba(201, 151, 43, 0.4) 100%);
}
.taverna-inner {
  background: var(--ink-3);
  padding: 2.5rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.taverna-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.taverna-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.taverna-sub {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--parchment-2);
  opacity: 0.7;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}
.taverna-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--parchment-2);
  opacity: 0.85;
  margin-bottom: 1rem;
}
.taverna-piatti {
  margin-top: 0.5rem;
}
.taverna-piatti li {
  font-size: 0.92rem;
  color: var(--parchment-2);
  opacity: 0.85;
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  line-height: 1.5;
}
.taverna-piatti li i {
  position: absolute;
  left: 0;
  top: 0.6rem;
  color: var(--gold);
  font-size: 0.55rem;
}

/* Taverna preview (mini-cards in home, sezione taverne-preview) */
.taverne-preview-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0;
}
.taverna-mini {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  background: var(--ink-3);
  border: 1px solid rgba(212, 163, 56, 0.25);
  transition: background var(--t-base), border-color var(--t-base), transform var(--t-base);
}
.taverna-mini:hover {
  background: var(--ink-2);
  border-color: rgba(212, 163, 56, 0.5);
  transform: translateY(-2px);
}
.taverna-mini .taverna-mini-stemma {
  height: 56px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.taverna-mini-text { flex: 1; min-width: 0; }
.taverna-mini-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
  font-weight: 700;
  line-height: 1.2;
}
.taverna-mini-desc {
  font-size: 0.9rem;
  color: var(--parchment-2);
  opacity: 0.85;
  line-height: 1.4;
  margin: 0;
}

/* Lead delle sezioni preview (taverne preview, ecc.) */
.preview-lead {
  font-size: 1.05rem;
  color: var(--parchment);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.preview-sublead {
  color: var(--parchment-2);
  margin-bottom: 2rem;
}

/* Taverna full layout (per pagina taverne.html) */
.taverna-full {
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Fascia immagine ambientale all'inizio di ogni taverna */
.taverna-photo-band {
  margin: -6rem -2rem 5rem;
  height: clamp(280px, 42vh, 460px);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(212, 163, 56, 0.25);
}
.taverna-photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  transition: transform 1.2s ease;
}
.taverna-photo-band:hover img { transform: scale(1.05); }
.taverna-photo-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 4, 0, 0.20) 0%, transparent 35%, transparent 60%, rgba(10, 4, 0, 0.55) 100%);
  pointer-events: none;
}

/* Slide-in elegante delle taverne: le info entrano dal lato opposto al menu.
   Niente pin — la sezione mantiene proporzioni e padding naturali, le animazioni
   si attivano appena la sezione tocca il viewport. */
@media (prefers-reduced-motion: no-preference) {
  .taverna-full .taverna-full-info,
  .taverna-full .taverna-full-menu {
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
  }
  /* Default: info a sinistra, menu a destra → menu entra da destra, info da sinistra */
  .taverna-full:not(.reverse) .taverna-full-info { transform: translate3d(-32px, 0, 0); }
  .taverna-full:not(.reverse) .taverna-full-menu { transform: translate3d(40px, 0, 0); }
  /* Reverse: menu a sinistra → entra da sinistra, info da destra */
  .taverna-full.reverse .taverna-full-info { transform: translate3d(32px, 0, 0); }
  .taverna-full.reverse .taverna-full-menu { transform: translate3d(-40px, 0, 0); }
  /* Stato finale: visibili in posizione */
  .taverna-full.is-revealed .taverna-full-info,
  .taverna-full.is-revealed .taverna-full-menu {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  /* Stagger: il menu entra 120ms dopo l'info per un ritmo da poster */
  .taverna-full.is-revealed .taverna-full-menu { transition-delay: 0.12s; }
}
.taverna-full.bg-castello { background: linear-gradient(135deg, #0A1F0D 0%, #050E07 100%); color: var(--parchment); }
.taverna-full.bg-casalino { background: linear-gradient(135deg, #0E1A2E 0%, #0A0E18 100%); color: var(--parchment); }
.taverna-full.bg-borgo    { background: linear-gradient(135deg, #1C1500 0%, #0E0A00 100%); color: var(--parchment); }
/* Testi taverna su scuro */
.taverna-full .section-label { color: var(--gold-light); }
.taverna-full .section-label::after { border-top-color: rgba(212, 163, 56, 0.35); }
.taverna-full h2 { color: var(--parchment); }
.taverna-full p { color: var(--parchment-2); }
.taverna-full .divider hr { border-top-color: rgba(212, 163, 56, 0.35); }
.taverna-full .divider .gem { background: var(--gold-light); }
.taverna-full .taverna-meta { border-top-color: rgba(212, 163, 56, 0.25); }
.taverna-full .taverna-meta-line { color: var(--parchment-2); }
.taverna-full .taverna-meta-line i { color: var(--gold-light); }
.taverna-full strong.text-gold-light { color: var(--gold-light) !important; }
.taverna-full-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}
.taverna-full-menu { display: flex; }
.taverna-full-menu .menu-block { flex: 1; display: flex; flex-direction: column; }
.taverna-full.reverse .taverna-full-info  { order: 2; }
.taverna-full.reverse .taverna-full-menu  { order: 1; }
.taverna-full-info i.taverna-big-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}
.taverna-full.bg-castello i.taverna-big-icon { color: var(--castello-acc); }
.taverna-full.bg-casalino i.taverna-big-icon { color: var(--casalino-acc); }
.taverna-full.bg-borgo    i.taverna-big-icon { color: var(--borgo-acc); }
.taverna-full-info h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 0.6rem;
}
.taverna-full-info p {
  font-size: 1.02rem;
  color: var(--parchment-2);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}
.taverna-meta {
  border-top: 1px solid rgba(201, 151, 43, 0.2);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}
.taverna-meta-line {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--parchment-2);
  margin-bottom: 0.6rem;
}
.taverna-meta-line i { color: var(--gold); margin-top: 0.3rem; }
.taverna-cta {
  margin-top: 2rem;
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.taverna-cta:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -8px rgba(212, 163, 56, 0.45);
}
.taverna-cta .icon { font-size: 0.85rem; }
@media (max-width: 700px) {
  .taverna-cta { width: 100%; justify-content: center; white-space: normal; padding: 1rem 1.4rem; font-size: 0.72rem; letter-spacing: 0.18em; }
}
.menu-block {
  background: rgba(10, 2, 0, 0.45);
  border: 1px solid rgba(201, 151, 43, 0.25);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
}
.menu-block::before {
  content: 'I menu ufficiali saranno disponibili presto';
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: rgba(10, 2, 0, 0.55);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  font-weight: 700;
  color: var(--gold-pale);
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.menu-block h3 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(201, 151, 43, 0.25);
  padding-bottom: 1rem;
}
.menu-section {
  margin-bottom: 1.5rem;
}
.menu-section:last-child { margin-bottom: 0; }
.menu-section-title {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.menu-list li {
  font-size: 0.94rem;
  color: var(--parchment-2);
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative;
  line-height: 1.5;
}
.menu-list li i {
  position: absolute;
  left: 0;
  top: 0.55rem;
  color: var(--gold);
  font-size: 0.55rem;
}

/* Info cards (parcheggi, ingresso, ecc.) */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.info-card {
  border-top: 2px solid var(--burgundy);
  background: rgba(255, 255, 255, 0.55);
  padding: 2.3rem 1.8rem;
  text-align: center;
  transition: all var(--t-base);
  box-shadow: 0 2px 14px rgba(74, 46, 15, 0.05);
}
.info-card:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px -16px rgba(74, 46, 15, 0.25);
}
.info-card i {
  font-size: 2.1rem;
  color: var(--burgundy);
  margin-bottom: 1.2rem;
  display: inline-block;
}
.info-card h3 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.25rem;
  color: var(--ink-text);
  margin-bottom: 0.9rem;
}
.info-card p {
  font-size: 1rem;
  color: var(--ink-text-2);
  line-height: 1.7;
}

/* ─── PARTNER ───────────────────────────────────────────────────────── */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.partner-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.partner-card {
  border: 1px solid rgba(107, 21, 32, 0.22);
  background: rgba(255, 255, 255, 0.55);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--t-base);
}
.partner-card:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-5px);
  border-color: var(--burgundy);
  box-shadow: 0 12px 32px -12px rgba(74, 46, 15, 0.2);
}
.partner-card .img-placeholder {
  margin-bottom: 1.2rem;
  height: 120px;
}
.partner-card.compact .img-placeholder { height: 90px; }
.partner-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.05rem;
  color: var(--ink-text);
  margin-bottom: 0.5rem;
}
.partner-type {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--burgundy);
  text-transform: uppercase;
}

.diventa-partner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.diventa-partner i.crown {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: inline-block;
}
.diventa-partner p {
  font-size: 1.05rem;
  color: var(--parchment-2);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.benefit {
  padding: 1.2rem;
  border: 1px solid rgba(201, 151, 43, 0.3);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--parchment);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
}
.benefit i { color: var(--gold); font-size: 1rem; }

/* ─── L'INFARINATA ──────────────────────────────────────────────────── */
.infarinata-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 3.5rem;
}
.infarinata-step {
  padding: 2.4rem 2rem;
  background: rgba(10, 2, 0, 0.4);
  border: 1px solid rgba(212, 163, 56, 0.3);
  text-align: center;
  transition: border-color var(--t-base), transform var(--t-base), background var(--t-base);
}
.infarinata-step:hover {
  border-color: rgba(212, 163, 56, 0.55);
  background: rgba(10, 2, 0, 0.55);
  transform: translateY(-3px);
}
.infarinata-step-year {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(212, 163, 56, 0.45);
  margin-bottom: 1.4rem;
}
.section-bg-burgundy .infarinata-step .infarinata-step-title,
.infarinata-step-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(212, 163, 56, 0.25);
}
.section-bg-burgundy .infarinata-step .infarinata-step-text,
.infarinata-step-text {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--parchment);
  opacity: 0.92;
  margin: 0;
}
.infarinata-footnote {
  margin: 3rem auto 0;
  max-width: 720px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--parchment-2);
  opacity: 0.85;
}
@media (max-width: 900px) {
  .infarinata-timeline { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* ─── IL PALIO DEL 1974 ─────────────────────────────────────────────── */
.paglioni-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1.8fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.paglioni-year {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid rgba(212, 163, 56, 0.35);
  background: linear-gradient(135deg, rgba(155, 28, 44, 0.18) 0%, rgba(10, 2, 0, 0.6) 100%);
  position: relative;
  overflow: hidden;
}
.paglioni-year::before,
.paglioni-year::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  opacity: 0.55;
}
.paglioni-year::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.paglioni-year::after  { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.paglioni-year-num {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(3.4rem, 6.5vw, 5.2rem);
  font-weight: 900;
  color: var(--gold-pale);
  line-height: 1;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.02em;
}
.paglioni-year-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 1.2rem;
  opacity: 0.9;
}
.paglioni-text p {
  color: var(--parchment-2);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}
.paglioni-text p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .paglioni-layout { grid-template-columns: 1fr; }
  .paglioni-year { padding: 2rem 1.2rem; }
}

/* ─── COMING SOON BANNER (partner) ──────────────────────────────────── */
.coming-soon-banner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 0;
}
.coming-soon-banner .coming-soon-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: inline-block;
}
.coming-soon-banner .section-title {
  margin-bottom: 1.2rem;
}
.coming-soon-text {
  font-size: 1.08rem;
  color: var(--ink-text-2);
  line-height: 1.85;
  margin-top: 1rem;
}

/* ─── CONTATTI ──────────────────────────────────────────────────────── */
.contatti-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.3rem;
  margin-bottom: 1.6rem;
}
.contact-icon {
  width: 46px;
  height: 46px;
  background: rgba(107, 21, 32, 0.08);
  border: 1.5px solid var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-label {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--burgundy);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.contact-val {
  font-size: 1.02rem;
  color: var(--ink-text);
  line-height: 1.6;
}
.contact-val a { color: var(--burgundy); transition: color var(--t-fast); }
.contact-val a:hover { color: var(--deep-red); }
/* Su sezioni scure */
.section-bg-burgundy .contact-icon,
.section-bg-ink .contact-icon {
  background: rgba(232, 201, 122, 0.15);
  border-color: var(--gold);
  color: var(--gold-light);
}
.section-bg-burgundy .contact-label,
.section-bg-ink .contact-label { color: var(--gold-light); }
.section-bg-burgundy .contact-val,
.section-bg-ink .contact-val { color: var(--parchment); }
.section-bg-burgundy .contact-val a,
.section-bg-ink .contact-val a { color: var(--gold-light); }
.social-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--burgundy);
  border: 1.5px solid var(--burgundy);
  background: transparent;
  transition: all var(--t-base);
  text-transform: uppercase;
}
.social-btn:hover {
  background: var(--burgundy);
  color: var(--parchment);
  border-color: var(--burgundy);
  transform: translateY(-2px);
}
.section-bg-burgundy .social-btn,
.section-bg-ink .social-btn {
  color: var(--parchment);
  border-color: var(--gold);
}
.section-bg-burgundy .social-btn:hover,
.section-bg-ink .social-btn:hover {
  background: var(--gold);
  color: var(--ink);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.form-field { display: flex; flex-direction: column; }
.form-field label {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--burgundy);
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}
.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(107, 21, 32, 0.3);
  padding: 0.95rem 1.15rem;
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  color: var(--ink-text);
  outline: none;
  transition: border var(--t-fast), background var(--t-fast);
  resize: none;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--burgundy);
  background: rgba(255, 255, 255, 0.95);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(74, 46, 15, 0.45);
  font-style: italic;
}
/* Form su sezione scura */
.section-bg-burgundy .form-field label,
.section-bg-ink .form-field label { color: var(--gold-light); }
.section-bg-burgundy .contact-form input,
.section-bg-burgundy .contact-form textarea,
.section-bg-ink .contact-form input,
.section-bg-ink .contact-form textarea {
  background: rgba(10, 2, 0, 0.4);
  border-color: rgba(212, 163, 56, 0.4);
  color: var(--parchment);
}
.section-bg-burgundy .contact-form input::placeholder,
.section-bg-burgundy .contact-form textarea::placeholder,
.section-bg-ink .contact-form input::placeholder,
.section-bg-ink .contact-form textarea::placeholder {
  color: rgba(245, 237, 214, 0.4);
}
.contact-form textarea { min-height: 140px; }
.contact-form .error {
  border-color: var(--error) !important;
  background: rgba(194, 74, 74, 0.06);
}

/* Honeypot anti-bot: visivamente nascosto ma accessibile alla compilazione automatica */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form error summary (errori di rete dopo submit) */
.form-error-summary {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--error);
  background: rgba(194, 74, 74, 0.08);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--error);
  font-style: italic;
}

/* Submit disabled durante invio */
.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: wait;
}
.field-error {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--error);
  margin-top: 0.4rem;
  text-transform: uppercase;
  display: none;
}
.field-error.visible { display: block; }
.submit-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}
.form-success {
  padding: 3rem 2rem;
  border: 1px solid rgba(201, 151, 43, 0.4);
  background: rgba(201, 151, 43, 0.05);
  text-align: center;
}
.form-success i {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1rem;
  display: inline-block;
}
.form-success h3 {
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold-light);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.form-success p {
  color: var(--parchment);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Mappa: iframe trattato a tono bordeaux/seppia per coerenza con la palette */
.map-wrapper {
  width: 100%;
  margin-top: 2rem;
  border: 1px solid rgba(201, 151, 43, 0.25);
  position: relative;
}
.map-wrapper iframe {
  display: block;
  width: 100%;
  border: 0;
  filter: grayscale(40%) sepia(20%) hue-rotate(330deg) brightness(0.8);
}

/* Placeholder cliccabile: niente terze parti finché non richiesto */
.map-placeholder {
  width: 100%;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  padding: 2rem;
  background:
    repeating-linear-gradient(45deg, transparent 0, transparent 28px, rgba(212,163,56,0.05) 28px, rgba(212,163,56,0.05) 29px),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(107,21,32,0.20), transparent 70%),
    linear-gradient(180deg, #F0E2BA 0%, #E5D2A0 100%);
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--ink-text);
  transition: filter var(--t-base);
}
.map-placeholder:hover { filter: brightness(0.97); }
.map-placeholder-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--burgundy);
  background: rgba(107,21,32,0.06);
  color: var(--burgundy);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.map-placeholder-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: 0.02em;
}
.map-placeholder-sub {
  font-size: 0.95rem;
  color: var(--ink-text-2);
  max-width: 480px;
  line-height: 1.65;
  font-style: italic;
}
.map-placeholder-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--burgundy);
  border-bottom: 1px solid var(--burgundy);
  padding-bottom: 2px;
}
.map-placeholder.is-loading {
  cursor: wait;
  opacity: 0.6;
}

/* FAQ */
.faq-list { margin-top: 2rem; }
.faq-item {
  border-top: 1px solid rgba(107, 21, 32, 0.25);
  background: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.6rem;
  transition: background var(--t-fast);
}
.faq-item:hover { background: rgba(255, 255, 255, 0.7); }
.faq-item.open { background: rgba(255, 255, 255, 0.85); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.4rem 1.6rem;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-text);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--t-fast);
  background: transparent;
}
.faq-question i { color: var(--burgundy); transition: transform var(--t-base); }
.faq-question:hover { color: var(--burgundy); }
.faq-item.open .faq-question { color: var(--burgundy); }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
  padding: 0 1.6rem;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 1.6rem 1.6rem;
}
.faq-answer p {
  font-size: 1.02rem;
  color: var(--ink-text-2);
  line-height: 1.75;
  opacity: 0.9;
}

/* ─── AMMINISTRAZIONE ───────────────────────────────────────────────── */
.admin-table {
  width: 100%;
  margin-top: 2rem;
  border: 1px solid rgba(107, 21, 32, 0.25);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 20px rgba(74, 46, 15, 0.08);
}
.admin-table thead {
  background: linear-gradient(180deg, var(--burgundy), #4A0F18);
}
.admin-table th {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  text-transform: uppercase;
  padding: 1.2rem 1.3rem;
  text-align: left;
  border-bottom: 2px solid var(--gold);
}
.admin-table td {
  font-size: 1rem;
  color: var(--ink-text);
  padding: 1.05rem 1.3rem;
  border-bottom: 1px solid rgba(107, 21, 32, 0.12);
}
.admin-table tbody tr:nth-child(even) { background: rgba(107, 21, 32, 0.04); }
.admin-table tbody tr:hover { background: rgba(212, 163, 56, 0.10); }
.admin-table .doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--burgundy);
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color var(--t-fast), gap var(--t-fast);
}
.admin-table .doc-link:hover { color: var(--deep-red); gap: 0.7rem; }
/* Stato "in aggiornamento": non è un link, è uno status visibile per gli screen reader */
.admin-table .doc-link--pending {
  color: var(--ink-text-2);
  opacity: 0.6;
  font-style: italic;
  cursor: not-allowed;
}
.admin-table .doc-link--pending:hover { color: var(--ink-text-2); gap: 0.5rem; }
.admin-table .badge {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  background: rgba(107, 21, 32, 0.12);
  color: var(--burgundy);
  padding: 0.3rem 0.7rem;
  text-transform: uppercase;
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.org-card {
  border-top: 2px solid var(--gold);
  background: rgba(201, 151, 43, 0.04);
  padding: 2.2rem 1.8rem;
  text-align: center;
  transition: all var(--t-base);
}
.org-card:hover {
  background: rgba(201, 151, 43, 0.08);
  transform: translateY(-5px);
}
.org-card i {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: inline-block;
}
.org-card .role {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.org-card .name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.15rem;
  color: var(--parchment);
}

.contact-istit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .footer-grid .footer-col:nth-child(3) { grid-column: span 1; }
  .footer-grid .footer-col:nth-child(4) { grid-column: span 1; }
  .gara-layout, .contatti-layout, .taverna-full-inner { gap: 3rem; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  .terzieri-grid,
  .eventi-grid,
  .taverne-grid,
  .history-highlights,
  .info-cards,
  .org-grid,
  .partner-grid,
  .partner-grid.cols-4 { grid-template-columns: 1fr; }
  /* .news-grid è gestito dai suoi breakpoint dedicati (900→2col, 600→1col) */
  .partner-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }

  .gara-layout,
  .contatti-layout,
  .taverna-full-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .taverna-full.reverse .taverna-full-info { order: 1; }
  .taverna-full.reverse .taverna-full-menu { order: 2; }
  .target-svg { max-width: 320px; margin: 0 auto; }

  /* Timeline mobile: linea sx, items dx */
  .storia-timeline::before { left: 22px; transform: none; }
  .timeline-item { grid-template-columns: 60px 1fr; }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    grid-column: 2; grid-row: 1;
    text-align: left; padding: 0 0 0 1.5rem;
  }
  .timeline-item:nth-child(odd) .timeline-empty,
  .timeline-item:nth-child(even) .timeline-empty { display: none; }
  .timeline-dot {
    grid-column: 1; grid-row: 1;
    justify-content: flex-start; padding-left: 16px;
  }

  .evento-row { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 0; }
  .evento-row .evento-icon-big { margin: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { justify-content: center; text-align: center; }

  .benefits { grid-template-columns: 1fr; }
  .contact-istit-grid { grid-template-columns: 1fr; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr {
    border-bottom: 1px solid rgba(201, 151, 43, 0.15);
    padding: 1rem 0;
  }
  .admin-table td {
    border: none;
    padding: 0.4rem 1rem;
  }
  .admin-table td::before {
    content: attr(data-label) ': ';
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 600;
    margin-right: 0.5rem;
  }
}

@media (max-width: 600px) {
  .nav-inner { padding: 0 1.2rem; }
  .hero-title { font-size: clamp(2.3rem, 12vw, 3.8rem); }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .countdown { grid-template-columns: repeat(2, 1fr); padding: 1rem; }
  .cd-block:nth-child(2)::after { display: none; }
  .terziere-card { padding: 3rem 1.6rem 2.5rem; }
  .terziere-num { font-size: 4.5rem; }
  .punteggio-val { font-size: 1.6rem; }
  .menu-block { padding: 1.5rem 1.2rem; }
  .partner-grid.cols-4 { grid-template-columns: 1fr; }
  .social-row { gap: 0.5rem; }
  .social-btn { padding: 0.6rem 1rem; font-size: 0.6rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   COOKIE BANNER + MODALE
   ═══════════════════════════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 860px;
  margin: 0 auto;
  z-index: 999;
  background: rgba(10, 4, 0, 0.97);
  color: var(--parchment);
  border: 1px solid rgba(212, 163, 56, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 1.6rem 1.8rem 1.5rem;
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, visibility 0.4s ease;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.cookie-banner-close {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gold-pale);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--t-fast);
}
.cookie-banner-close:hover { color: var(--gold-light); }

.cookie-banner-inner {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1 1 360px;
  min-width: 0;
}
.cookie-banner h2 {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-weight: 700;
}
.cookie-banner p {
  font-family: 'EB Garamond', serif;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--parchment-2);
  margin: 0;
}
.cookie-banner p a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.cookie-banner p a:hover { color: var(--gold-pale); }

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.cookie-btn--primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.cookie-btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}
.cookie-btn--secondary {
  background: transparent;
  color: var(--parchment);
  border-color: var(--gold);
}
.cookie-btn--secondary:hover {
  background: rgba(212, 163, 56, 0.12);
  color: var(--gold-light);
}
.cookie-btn--ghost {
  background: transparent;
  color: var(--gold-pale);
  border-color: rgba(212, 163, 56, 0.4);
}
.cookie-btn--ghost:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* ─── Modale preferenze ─────────────────────────────────────────── */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cookie-modal.is-open { opacity: 1; visibility: visible; }
.cookie-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 1, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.cookie-modal-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--parchment);
  color: var(--ink-text);
  border: 1px solid var(--burgundy);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  padding: 2.2rem 2rem 2rem;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-modal.is-open .cookie-modal-content { transform: translateY(0) scale(1); }

.cookie-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--burgundy);
  background: transparent;
  border: 1px solid rgba(107, 21, 32, 0.2);
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.cookie-modal-close:hover {
  background: var(--burgundy);
  color: var(--parchment);
  transform: rotate(90deg);
}

.cookie-modal-content h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--ink-text);
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.cookie-modal-intro {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-text-2);
  margin-bottom: 1.5rem;
}
.cookie-modal-intro a { color: var(--burgundy); text-decoration: underline; }

.cookie-cat {
  padding: 1.1rem 0;
  border-top: 1px solid rgba(107, 21, 32, 0.15);
}
.cookie-cat:last-of-type { border-bottom: 1px solid rgba(107, 21, 32, 0.15); }
.cookie-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.cookie-cat h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--burgundy);
  font-weight: 700;
  margin: 0;
}
.cookie-cat p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-text-2);
  margin: 0;
}

/* Toggle switch */
.cookie-cat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  user-select: none;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--ink-text-2);
  text-transform: uppercase;
}
.cookie-cat-toggle input { display: none; }
.cookie-toggle-track {
  width: 38px;
  height: 22px;
  background: rgba(107, 21, 32, 0.25);
  border-radius: 999px;
  position: relative;
  transition: background var(--t-fast);
  flex-shrink: 0;
}
.cookie-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--parchment);
  border-radius: 50%;
  transition: transform var(--t-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.cookie-cat-toggle input:checked + .cookie-toggle-track {
  background: var(--gold);
}
.cookie-cat-toggle input:checked + .cookie-toggle-track .cookie-toggle-knob {
  transform: translateX(16px);
}
.cookie-cat-toggle.is-locked .cookie-toggle-track {
  background: var(--gold);
  cursor: not-allowed;
}
.cookie-cat-toggle.is-locked .cookie-toggle-knob {
  transform: translateX(16px);
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(107, 21, 32, 0.15);
}
.cookie-modal-actions .cookie-btn--ghost { color: var(--burgundy); border-color: rgba(107, 21, 32, 0.4); }
.cookie-modal-actions .cookie-btn--ghost:hover { color: var(--burgundy-2); border-color: var(--burgundy); background: rgba(107, 21, 32, 0.06); }
.cookie-modal-actions .cookie-btn--secondary { color: var(--burgundy); border-color: var(--burgundy); background: transparent; }
.cookie-modal-actions .cookie-btn--secondary:hover { background: var(--burgundy); color: var(--parchment); }
.cookie-modal-actions .cookie-btn--primary { background: var(--burgundy); color: var(--parchment); border-color: var(--burgundy); }
.cookie-modal-actions .cookie-btn--primary:hover { background: var(--burgundy-2); border-color: var(--burgundy-2); }

/* Footer "Gestisci cookie" link styled as the other footer links */
.footer-cookie-btn {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  padding: 0.3rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  opacity: 0.85;
  transition: opacity var(--t-fast), color var(--t-fast);
}
.footer-cookie-btn:hover { opacity: 1; color: var(--gold-light); }
.footer-cookie-btn::before { content: '⚙'; opacity: 0.7; }

/* ─── Mobile responsive ──────────────────────────────────────────── */
@media (max-width: 700px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    padding: 1.3rem 1.2rem 1.2rem;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  .cookie-banner-inner { gap: 1rem; }
  .cookie-banner-actions { width: 100%; flex-direction: column; }
  .cookie-banner-actions .cookie-btn { width: 100%; padding: 0.95rem 1rem; }
  .cookie-modal-content {
    padding: 1.6rem 1.2rem;
    max-height: 95vh;
  }
  .cookie-modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .cookie-modal-actions .cookie-btn { width: 100%; text-align: center; }
}

@media (max-width: 700px) {
  .legal-h2 { font-size: 1.35rem; }
  .legal-h3 { font-size: 1.1rem; }
  .legal-table { font-size: 0.85rem; }
  .legal-table th, .legal-table td { padding: 0.7rem 0.8rem; }
}
