/* ==========================================================================
   4th Vocotruyen World Championships — Cervia 2026
   Main stylesheet
   ========================================================================== */

:root {
  --color-bg: #f6f6f6;
  --color-surface: #ffffff;
  --color-text: #111111;
  --color-title: #333333;
  --color-gold: #b7953c;
  --color-gold-dark: #8f742c;
  --color-gold-light: #d9c284;
  --color-dark: #16140f;
  --color-dark-2: #1f1c15;
  --font-title: 'Bree Serif', Georgia, serif;
  --font-body: 'PT Sans', Arial, sans-serif;
  --container-pad: 1rem;
  --nav-height: 92px;
  --ease: cubic-bezier(.25,.8,.25,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--color-title);
  font-weight: 400;
  line-height: 1.25;
}

a { color: var(--color-gold-dark); text-decoration: none; }
a:hover { color: var(--color-gold); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--color-dark); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

hr, .gold-rule {
  border: none; height: 1px; background: var(--color-gold);
  opacity: .55; margin: 2rem 0;
}

.section-eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; font-size: .78rem;
  color: var(--color-gold-dark); margin-bottom: .6rem;
}

.section-title { margin-bottom: 1.1rem; }

.section-title::after {
  content: ""; display: block; width: 64px; height: 3px;
  background: var(--color-gold); margin-top: .9rem;
}
.text-center .section-title::after { margin-left: auto; margin-right: auto; }

section { padding: 5rem 0; }
@media (max-width: 767.98px) { section { padding: 3.25rem 0; } }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-gold {
  background: var(--color-gold); border: 1px solid var(--color-gold);
  color: #fff; font-weight: 700; letter-spacing: .04em;
  padding: .6rem 1.5rem; border-radius: 2px;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn-gold:hover, .btn-gold:focus {
  background: var(--color-gold-dark); border-color: var(--color-gold-dark);
  color: #fff; transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent; border: 1px solid var(--color-gold); color: var(--color-gold-dark);
  font-weight: 700; letter-spacing: .04em; padding: .6rem 1.5rem; border-radius: 2px;
  transition: all .25s var(--ease);
}
.btn-outline-gold:hover { background: var(--color-gold); color: #fff; }

.btn-outline-dark {
  background: transparent; border: 1px solid #b8b8b8; color: var(--color-text);
  font-weight: 700; padding: .6rem 1.5rem; border-radius: 2px;
  transition: all .25s var(--ease);
}
.btn-outline-dark:hover { border-color: var(--color-text); background: var(--color-text); color: #fff; }

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar-main {
  background: rgba(22, 20, 15, .0);
  padding: 18px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.navbar-main.scrolled {
  background: rgba(22, 20, 15, .96);
  padding: 8px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
body:not(.has-hero) .navbar-main { background: rgba(22, 20, 15, .96); padding: 10px 0; }

/* Below the lg breakpoint the collapse panel shares the navbar's own
   background, so a transparent bar at the top of the page leaves the open
   mobile menu unreadable over the hero photo — keep it solid at all times
   on mobile/tablet. */
@media (max-width: 991.98px) {
  .navbar-main { background: rgba(22, 20, 15, .96); padding: 10px 0; }
}

.navbar-brand img { transition: height .3s var(--ease); }
.navbar-main.scrolled .navbar-brand img { height: 44px; }

.navbar-main .nav-link {
  font-family: var(--font-body); font-weight: 700; font-size: .86rem;
  letter-spacing: .07em; text-transform: uppercase; color: #f4f1e8;
  padding: .6rem .9rem !important; position: relative;
}
.navbar-main .nav-link:hover, .navbar-main .nav-link.active,
.navbar-main .active-parent > .nav-link { color: var(--color-gold-light); }
.navbar-main .nav-link.active::after,
.navbar-main .active-parent > .nav-link::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .15rem;
  height: 2px; background: var(--color-gold);
}

.navbar-toggler { border: 1px solid rgba(255,255,255,.4); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23f4f1e8' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.dropdown-menu {
  background: var(--color-dark-2); border: 1px solid rgba(183,149,60,.35);
  border-radius: 2px; padding: .4rem 0; margin-top: .4rem;
}
.dropdown-item {
  color: #ece7d8; font-size: .88rem; padding: .55rem 1.25rem;
  transition: background .2s var(--ease), color .2s var(--ease), padding-left .2s var(--ease);
}
.dropdown-item:hover, .dropdown-item:focus, .dropdown-item.active {
  background: rgba(183,149,60,.16); color: var(--color-gold-light); padding-left: 1.5rem;
}

.nav-cta {
  padding: .45rem 1.1rem !important; font-size: .78rem;
}
.nav-cta i.nav-cta-dot,
.nav-cta i { color: #ff5b5b; font-style: normal; margin-right: .35rem; animation: livePulse 1.6s infinite; display: inline-block; }

@keyframes livePulse {
  0%, 100% { opacity: 1; } 50% { opacity: .25; }
}

@media (min-width: 992px) {
  .navbar-collapse { justify-content: flex-end; }
}

/* ==========================================================================
   Home Hero
   ========================================================================== */

.home-hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; background: var(--color-dark);
}
.home-hero-bg {
  position: absolute; inset: -5% -5% -5% -5%; background-size: cover; background-position: center;
  will-change: transform;
  transform: scale(1);
  transition: transform 2.4s ease-out;
}
/* The breathing zoom only runs while the hero is in the viewport (toggled by
   JS via IntersectionObserver adding .hero-breathe to .home-hero); leaving
   the viewport drops the animation and the transition above eases the
   background back down to its resting scale(1). */
.home-hero.hero-breathe .home-hero-bg {
  animation: heroKenBurns 52s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.13); }
}
.home-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,14,10,.72) 0%, rgba(16,14,10,.55) 45%, rgba(16,14,10,.85) 100%);
  z-index: 1;
}
.home-hero-motif {
  position: absolute; right: -6%; top: 50%; width: 620px; max-width: 60vw;
  transform: translateY(-50%); opacity: .12; z-index: 1; pointer-events: none;
  animation: motifSpin 90s linear infinite;
}
@keyframes motifSpin { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }

.home-hero-content { position: relative; z-index: 2; color: #fff; padding-top: var(--nav-height); }

/* Title block — colours and relative proportions taken from the official
   4th Vocotruyen World Championships emblem (gold "4th" / navy "VOCOTRUYEN" /
   red "WORLD CHAMPIONSHIPS" / gold "CERVIA 2026" / "ITALY"). */
:root {
  --logo-gold: #e3a605;
  --logo-navy: #33509e;
  --logo-red: #ff3b3b;
}

.hero-title-row { display: flex; align-items: center; gap: 1.6rem; margin: 0 0 1.2rem; }
.hero-emblem {
  flex: 0 0 auto; height: clamp(7rem, 21.5vw, 15.8rem); width: auto;
  object-fit: contain; filter: drop-shadow(0 10px 26px rgba(0,0,0,.55));
  opacity: 0; transform: translateY(50px) scale(.85) rotate(-3deg);
  animation: heroLineIn 1.3s var(--ease) forwards;
}
.hero-title-lines { margin: 0; }
@media (max-width: 767.98px) {
  .hero-title-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-emblem { height: clamp(5rem, 35.5vw, 8.8rem); width: auto; }
}
.hero-title-lines .line {
  display: block; font-family: var(--font-title); line-height: .98;
  opacity: 0; transform: translateY(70px) scale(.85) rotate(-2.5deg); transform-origin: left center;
  animation: heroLineIn 1.3s var(--ease) forwards;
}
.hero-title-lines .line-4th {
  font-size: clamp(1.7rem, 4.9vw, 2.8rem); color: var(--logo-gold);
  letter-spacing: .03em;
  text-shadow: 0 0 22px rgba(227,166,5,.5);
  animation-name: heroLineIn, goldPulse; animation-duration: 1.3s, 3.4s;
  animation-timing-function: var(--ease), ease-in-out;
  animation-delay: .1s, 1.9s; animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
  position: relative; z-index: 4;
}
.hero-title-lines .line-4th .num { font-size: 2.6em; }
.hero-title-lines .line-4th .ord {
  font-size: .5em; vertical-align: top; position: relative; top: .5em; margin-left: .05em;
}
.hero-title-lines .line-vocotruyen {
  font-size: clamp(2rem, 7.8vw, 4.8rem); color: var(--logo-navy);
  letter-spacing: .015em; animation-delay: .5s;
  text-shadow: 0 2px 26px rgba(0,0,0,.35);
  margin-top: -.16em; position: relative; z-index: 3;
}
.hero-title-lines .line-worldchamp {
  font-size: clamp(1.35rem, 4.6vw, 2.5rem); color: var(--logo-red);
  letter-spacing: .04em; animation-delay: .95s;
  margin-top: -.1em; margin-left: .01em; position: relative; z-index: 2;
}
.hero-title-lines .line-cervia-italy {
  font-size: clamp(1.25rem, 4.1vw, 2.25rem); color: #f7f3e8;
  letter-spacing: .03em; font-weight: 700; animation-delay: 1.4s;
  margin-top: -.08em; margin-left: .02em; position: relative; z-index: 1;
}

@keyframes heroLineIn {
  0% { opacity: 0; transform: translateY(70px) scale(.85) rotate(-2.5deg); }
  62% { opacity: 1; transform: translateY(-8px) scale(1.035) rotate(.6deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}
@keyframes goldPulse {
  0%, 100% { text-shadow: 0 0 18px rgba(227,166,5,.45); }
  50% { text-shadow: 0 0 34px rgba(227,166,5,.85); }
}

.hero-divider {
  width: 0; height: 3px; background: linear-gradient(90deg, var(--color-gold), var(--logo-gold));
  margin: 1.5rem 0; opacity: 0; transform-origin: left;
  animation: heroDividerIn .9s var(--ease) forwards; animation-delay: 2.85s;
}
@keyframes heroDividerIn { 0% { opacity: 0; width: 0; } 100% { opacity: 1; width: 110px; } }

.hero-meta {
  font-family: var(--font-body); font-size: 1.05rem; letter-spacing: .04em;
  opacity: 0; animation: heroLineIn .8s var(--ease) forwards; animation-delay: 3.02s;
}
.hero-meta strong { color: var(--color-gold-light); }

.hero-ticker {
  margin-top: 1.6rem; overflow: hidden;
  opacity: 0; animation: heroLineIn .8s var(--ease) forwards; animation-delay: 3.22s;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero-ticker-track {
  display: flex; align-items: center; width: max-content; white-space: nowrap;
  animation: heroTickerScroll 26s linear infinite;
}
.hero-ticker-item {
  font-size: .95rem; letter-spacing: .04em; color: #e7e2d3; opacity: .7;
  text-transform: uppercase; white-space: nowrap;
}
.hero-ticker-item a {
  color: var(--color-gold-light); text-decoration: underline;
  text-decoration-color: rgba(231,226,211,.4); text-underline-offset: .18em;
}
.hero-ticker-item a:hover { text-decoration-color: var(--color-gold-light); }
.hero-ticker-sep {
  margin: 0 1.4rem; color: #e7e2d3; opacity: .35;
}
@keyframes heroTickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-cta { margin-top: 2.1rem; opacity: 0; animation: heroLineIn .8s var(--ease) forwards; animation-delay: 3.42s; }
.hero-cta .btn { margin: .3rem .6rem .3rem 0; }

.hero-scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: #e7e2d3; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  opacity: .8; text-align: center;
}
.hero-scroll-cue span {
  display: block; width: 1px; height: 34px; background: var(--color-gold);
  margin: .6rem auto 0; animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue { 0% { transform: scaleY(0); transform-origin: top; opacity: 0;} 40% {transform: scaleY(1); transform-origin: top; opacity: 1;} 60% {transform: scaleY(1); transform-origin: bottom; opacity: 1;} 100% {transform: scaleY(0); transform-origin: bottom; opacity: 0;} }

/* ==========================================================================
   Reveal-on-scroll & parallax utilities
   ========================================================================== */

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: .1s; }
.reveal-delay-2.in-view { transition-delay: .22s; }
.reveal-delay-3.in-view { transition-delay: .34s; }
.reveal-delay-4.in-view { transition-delay: .46s; }

/*
 * Photo parallax band — same technique used across the site (and on the
 * reference DIMAURO project): an oversized absolutely-positioned background
 * layer carrying data-parallax="N" (percentage strength), translated via
 * transform: translate3d() in assets/js/main.js based on scroll position,
 * plus a separate scrim layer that darkens the photo for text legibility.
 */
.photo-band, .page-hero {
  position: relative; overflow: hidden; isolation: isolate;
}
.photo-band__bg, .page-hero__bg {
  position: absolute; inset: -15% 0; height: 130%;
  background-position: center; background-size: cover;
  z-index: -2; will-change: transform;
}
.photo-band__scrim, .page-hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,10,7,.6) 0%, rgba(12,10,7,.82) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .home-hero-bg, .home-hero-motif, .hero-scroll-cue span { animation: none !important; }
  .hero-emblem, .hero-title-lines .line, .hero-divider, .hero-meta, .hero-ticker, .hero-cta {
    opacity: 1; transform: none; animation: none;
  }
  .hero-ticker { overflow-x: auto; }
  .hero-ticker-track { animation: none; }
  .countries-ticker { overflow-x: auto; }
  .countries-ticker-track { animation: none; }
  .photo-band__bg, .page-hero__bg { transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */

.page-hero {
  min-height: 46vh; display: flex; align-items: flex-end;
  padding: calc(var(--nav-height) + 3rem) 0 3.5rem; color: #fff;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  font-size: .78rem; color: var(--color-gold-light); margin-bottom: .6rem;
}
.page-hero-title { color: #fff; margin: 0; font-size: clamp(1.9rem, 4.6vw, 3rem); }
.page-hero-subtitle { max-width: 640px; margin-top: .8rem; color: #e9e5d8; }

/* ==========================================================================
   Home sections
   ========================================================================== */

.intro-section .intro-lead {
  font-family: var(--font-title); font-size: 1.35rem; color: var(--color-title);
}

/* Decorative dragon-ink motif, parallaxed via the same data-parallax
   mechanism as the photo bands (assets/js/main.js). The wrapper handles
   static position/mirroring; the inner img gets the scroll-driven
   translate3d so the two transforms never fight each other. */
.section-motif-host { position: relative; overflow: hidden; isolation: isolate; }
.section-motif-host > .container { position: relative; z-index: 1; }
.section-motif {
  position: absolute; z-index: 0; bottom: 6%;
  width: clamp(185px, 27vw, 345px); pointer-events: none;
}
.section-motif img { display: block; width: 100%; height: auto; opacity: .16; will-change: transform; }
.section-motif--intro { right: 4%; }
.section-motif--training { left: 4%; transform: scaleX(-1); }

.quick-links-grid { --bs-gutter-x: 1.75rem; }
.quick-link-card {
  display: block; background: var(--color-surface); border: 1px solid #e7e3d8;
  border-top: 3px solid var(--color-gold); padding: 1.6rem 1.4rem; height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.quick-link-card:hover {
  transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,0,0,.08); border-top-color: var(--color-gold-dark);
}
.quick-link-card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.quick-link-card p { font-size: .92rem; color: #555; margin-bottom: 0; }
.quick-link-card .qlc-arrow { color: var(--color-gold-dark); font-weight: 700; }

.photo-band {
  color: #fff; text-align: center;
}
.photo-band .band-inner { padding: 6.5rem 0; position: relative; z-index: 1; }
.photo-band h2 { color: #fff; }
.photo-band p { color: #ece8db; max-width: 760px; margin: 0 auto; }

@media (max-width: 575.98px) {
  .photo-band .band-inner { padding-left: 1.5rem; padding-right: 1.5rem; }
}

.section-alt { background: #efece2; }
.section-dark { background: var(--color-dark); color: #ece8db; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-eyebrow { color: var(--color-gold-light); }
.section-dark .text-muted { color: #bfb9a4 !important; }

.culture-strip { display: flex; flex-wrap: wrap; gap: 1.8rem; justify-content: center; }
.culture-item { width: 170px; text-align: center; }
.culture-item img {
  width: 112px; height: 112px; object-fit: contain; margin: 0 auto 1rem;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.15));
  transition: transform .35s var(--ease);
}
.culture-item:hover img { transform: translateY(-6px) scale(1.06) rotate(-3deg); }
.culture-item h4 { font-size: .95rem; margin-bottom: .2rem; color: var(--color-gold-light); }
.section-dark .culture-item p { font-size: .82rem; color: #bfb9a4; }

/* Multilingual "stacked" text block */
.lang-block { border-left: 3px solid var(--color-gold); padding: 1.1rem 1.5rem; margin-bottom: 1.4rem; background: rgba(183,149,60,.045); }
.lang-block .lang-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  color: var(--color-gold-dark); text-transform: uppercase; margin-bottom: .5rem;
}
.lang-block p { margin-bottom: .6rem; }
.lang-block p:last-child { margin-bottom: 0; }

.announcement-section {
  position: relative; overflow: hidden; isolation: isolate;
}
.announcement-section::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("../images/gallery/vocotruyen-13.jpg") center / cover no-repeat;
  opacity: .15;
}
.announcement-section > .container { position: relative; z-index: 1; }

.announcement-card {
  background: rgba(255,255,255,.92); border: 1px solid #e7e3d8; padding: 2rem;
  backdrop-filter: blur(2px);
}
.announcement-card .announcement-meta { font-size: .85rem; color: #777; margin-top: 1rem; }
.announcement-photo {
  display: block; width: 100%; height: auto;
  margin: .4rem 0 1.6rem;
}

.acknow-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 3.2rem; }
.acknow-logos img { height: 92px; width: auto; opacity: .92; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.acknow-logos img:hover { opacity: 1; transform: translateY(-3px); }
.acknowledgements-section .acknow-logos { gap: 3.6rem; }
.acknowledgements-section .acknow-logos img { height: 118px; }
.page-contact .acknow-logos { gap: 3.6rem; }
.page-contact .acknow-logos img { height: 128px; }

@media (max-width: 991.98px) {
  .acknowledgements-section .acknow-logos { flex-direction: column; justify-content: center; }
}

.mascotte-figure { text-align: center; position: relative; }
.mascotte-figure::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 480px; max-width: 90%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(183,149,60,.28) 0%, rgba(183,149,60,.1) 45%, rgba(183,149,60,0) 72%);
  z-index: 0; pointer-events: none;
}
.mascotte-figure .mascotte-photo {
  position: relative; z-index: 1;
  max-height: 520px; width: auto; margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.2));
  animation: mascotteFloat 5s ease-in-out infinite;
}
@keyframes mascotteFloat { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-16px);} }
@media (max-width: 991.98px) { .mascotte-figure .mascotte-photo { max-height: 380px; } }

/* Golden Chim Lạc line-art motif, offset to the right behind the mascot
   photo — same transparent-motif + data-parallax treatment as the dragon
   in the intro and training sections. */
.mascotte-section { position: relative; overflow: hidden; }
.mascotte-section > .container { position: relative; z-index: 1; }
.mascotte-motif {
  position: absolute; z-index: 0; right: 0; bottom: 0;
  width: min(45%, 560px); pointer-events: none;
}
.mascotte-motif img { display: block; width: 100%; height: auto; opacity: .2; will-change: transform; }

/* Best wishes */
.wishes-section { text-align: center; }
.wishes-section blockquote {
  font-family: var(--font-title); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--color-title);
  max-width: 900px; margin: 0 auto 1.2rem; line-height: 1.5;
}
.wishes-section .wishes-sign { font-style: italic; color: var(--color-gold-dark); }

/* Countries / flags */
/* Participating-nations photo band: a planet-Earth parallax backdrop
   (same technique as #competitions) carrying an infinite-loop flag
   ticker, built exactly like the hero ticker (duplicated track,
   translateX(-50%), linear infinite). */
.countries-band-content { position: relative; z-index: 1; padding: 5rem 0 2.2rem; text-align: center; }
.countries-band-content h2 { color: #fff; }
.countries-band-content p { color: #ece8db; max-width: 640px; margin: 0 auto; }

.countries-ticker {
  position: relative; z-index: 1; overflow: hidden; padding: 1rem 0 4.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.countries-ticker-track {
  display: flex; align-items: flex-start; gap: 2.4rem; width: max-content;
  animation: countriesTickerScroll 38s linear infinite;
}
.countries-ticker:hover .countries-ticker-track { animation-play-state: paused; }
@keyframes countriesTickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.country-chip {
  position: relative; flex: 0 0 auto; display: flex; flex-direction: column;
  align-items: center; gap: .75rem; width: 5rem; margin: 0 .3rem;
}
.country-chip .fi {
  width: 4.6rem; height: 4.6rem; border-radius: 50%; flex: 0 0 auto;
  background-size: cover !important; background-position: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.35), 0 0 0 3px rgba(255,255,255,.92);
}
.country-chip .flag-special {
  display: flex; align-items: center; justify-content: center; width: 4.6rem; height: 4.6rem; flex: 0 0 auto;
  border-radius: 50%; background: var(--color-dark); color: var(--color-gold-light);
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(0,0,0,.35), 0 0 0 3px rgba(255,255,255,.92);
}
.country-chip .tbc-dot {
  position: absolute; top: 2px; right: 1px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--color-gold); border: 2px solid #fff;
}
.country-chip .country-name {
  font-size: .65rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: #ece8db; text-align: center; line-height: 1.25; max-width: 5.4rem;
}

/* ==========================================================================
   Gallery / cards
   ========================================================================== */

.gallery-grid { --bs-gutter-x: .9rem; --bs-gutter-y: .9rem; }
.gallery-item { display: block; overflow: hidden; position: relative; border: 1px solid #e7e3d8; }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; transition: transform .5s var(--ease); display: block; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-caption {
  position: absolute; inset: auto 0 0 0; padding: .7rem .9rem; background: linear-gradient(0deg, rgba(0,0,0,.72), transparent);
  color: #fff; font-size: .82rem; opacity: 0; transform: translateY(10px); transition: all .3s var(--ease);
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

.placeholder-tile {
  border: 2px dashed #cdbf94; background: #fbfaf5; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; height: 260px; color: #8a7d55; padding: 1rem;
}
.placeholder-tile .ph-icon { font-size: 2rem; margin-bottom: .5rem; }

/* Document / card lists */
.doc-card {
  display: flex; align-items: center; gap: 1.1rem; background: var(--color-surface);
  border: 1px solid #e7e3d8; border-left: 4px solid var(--color-gold); padding: 1.2rem 1.4rem; margin-bottom: 1rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.doc-card:hover { transform: translateX(4px); box-shadow: 0 12px 26px rgba(0,0,0,.06); }
.doc-card .doc-icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: rgba(183,149,60,.12);
  color: var(--color-gold-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .78rem;
}
.doc-card .doc-body { flex: 1 1 auto; }
.doc-card .doc-body h3 { font-size: 1.02rem; margin: 0 0 .25rem; }
.doc-card .doc-body p { margin: 0; font-size: .88rem; color: #666; }
.doc-card .doc-action { flex: 0 0 auto; }

.intro-video {
  display: block; width: 100%; height: auto; margin-top: 1.5rem;
  background: #000; border: 1px solid #e7e3d8;
}

.wfvv-letter {
  background: var(--color-surface); border: 1px solid #e7e3d8; border-top: 3px solid var(--color-gold);
  padding: 1.6rem 1.8rem; margin-bottom: 1.5rem;
}
.wfvv-letter p { margin-bottom: .8rem; }
.wfvv-letter .wfvv-signature { margin: 1.2rem 0 0; font-size: .95rem; color: #555; }

.info-card {
  background: rgba(255,255,255,.94); border: 1px solid #e7e3d8; height: 100%;
  padding: 3rem 2.5rem 2rem 2.5rem;
  opacity: 0.8;
}
/* .reveal.in-view resets opacity to 1 on scroll-in; this re-pins info-card
   at the requested 0.8 once it's revealed (same specificity, later in the
   stylesheet so it wins the tie). */
.info-card.in-view { opacity: 0.8; }
.info-card h3 { display: flex; align-items: center; gap: .6rem; }
.info-card .info-num {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border: 1px solid var(--color-gold); color: var(--color-gold-dark); font-family: var(--font-title); border-radius: 50%; font-size: .95rem;
}

/* Timetable */
.schedule-day { margin-bottom: 2.4rem; }
.schedule-day h3 { border-bottom: 2px solid var(--color-gold); padding-bottom: .6rem; margin-bottom: 1.2rem; }
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th, .schedule-table td { padding: .8rem .9rem; border-bottom: 1px solid #e7e3d8; text-align: left; vertical-align: top; }
.schedule-table th { font-family: var(--font-title); font-weight: 400; color: var(--color-title); width: 140px; }
.schedule-table tr:hover td { background: rgba(183,149,60,.05); }

.schedule-official-table th[scope="row"] { white-space: nowrap; font-size: 1.08rem; font-weight: 700; }
.schedule-official-table td:first-of-type { font-size: 1.08rem; }

.schedule-kicker {
  font-family: var(--font-body); font-weight: 700; letter-spacing: .06em;
  font-size: .85rem; color: var(--color-gold-dark);
}

/* Contact */
.contact-block { background: var(--color-surface); border: 1px solid #e7e3d8; padding: 2rem; height: 100%; }
.contact-block .contact-icon { color: var(--color-gold-dark); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; margin-bottom: .6rem; display: block; }

/* Venue address */
.venue-photo { display: block; width: 100%; height: auto; margin-bottom: 1.5rem; }
.venue-address {
  text-align: center; background: var(--color-surface); border: 1px solid #e7e3d8;
  padding: 3rem 2rem;
}
.venue-address-name {
  display: block; font-family: var(--font-title); font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--color-title); margin-bottom: .6rem;
}
.venue-address-line { font-size: 1.1rem; color: #555; margin: 0; }

/* Video */
.video-embed-wrapper {
  position: relative; padding-top: 56.25%; background: var(--color-dark); border: 1px solid #e7e3d8;
}
.video-embed-wrapper .video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #cfc8ac; text-align: center; padding: 1.5rem;
}

/* ==========================================================================
   Cookie banner
   ========================================================================== */

.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080;
  background: var(--color-dark-2); color: #ece8db; border-top: 3px solid var(--color-gold);
  transform: translateY(100%); transition: transform .5s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1200px; margin: 0 auto; padding: 1.3rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; justify-content: space-between;
}
.cookie-banner-text { flex: 1 1 480px; font-size: .88rem; margin: 0; color: #d8d3c0; }
.cookie-banner-text a { color: var(--color-gold-light); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-pref-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid #eee; }
.cookie-pref-row:last-child { border-bottom: none; }
.cookie-pref-row p { font-size: .82rem; color: #777; margin: .2rem 0 0; }
.form-check-input:checked { background-color: var(--color-gold); border-color: var(--color-gold); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--color-dark); color: #cfc8ac; padding: 4.5rem 0 2rem; }
.footer-logo-row { align-items: flex-end; }
.footer-logo-main { height: 104px; width: auto; max-width: 100%; }
.footer-mascotte { height: 104px; width: auto; max-width: 100%; opacity: .95; }
.footer-tagline { font-size: .92rem; color: #b7b09a; margin-bottom: 1rem; }
.footer-social a { color: var(--color-gold-light); font-size: .85rem; }
.footer-social .dot { margin: 0 .4rem; color: #6b6450; }
.footer-heading { color: #fff; font-family: var(--font-title); font-weight: 400; font-size: 1rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #b7b09a; font-size: .88rem; }
.footer-links a:hover { color: var(--color-gold-light); }
.footer-org-logos { align-items: center; }
.footer-org-logos img { height: 136px; width: auto; max-width: 100%; filter: drop-shadow(0 3px 10px rgba(0,0,0,.45)); }
.footer-org-note { font-size: .82rem; color: #9d977f; }
.footer-rule { border-color: rgba(183,149,60,.3); margin: 2.4rem 0 2rem; opacity: 1; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .8rem; color: #8f886f; border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.4rem; }
.footer-bottom a { color: #8f886f; }
.footer-contact-email a { color: var(--color-gold-light); }

/* Partner / institutional logos band (light, sits between page content and the dark footer) */
.partner-strip { background: #efece2; padding: 2.8rem 0; border-top: 1px solid #e2ddc9; }
.partner-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem 3.6rem; }
.partner-strip-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #8a7d55; font-weight: 700; flex: 0 0 auto; }
.partner-strip-logos { display: flex; align-items: center; gap: 3.6rem; flex-wrap: wrap; justify-content: center; }
.partner-strip-logos img { height: 72px; width: auto; }
@media (max-width: 575.98px) { .partner-strip .container { justify-content: center; text-align: center; } }

/* ==========================================================================
   Misc pages (privacy / cookie policy)
   ========================================================================== */

.policy-content h2 { margin-top: 2.4rem; }
.policy-content h2:first-child { margin-top: 0; }
.policy-content ul { padding-left: 1.3rem; }
.policy-content table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.policy-content table th, .policy-content table td { border: 1px solid #e2ddc9; padding: .6rem .8rem; font-size: .88rem; }
.policy-content table th { background: #f0ecdd; font-family: var(--font-title); font-weight: 400; }
