/* ==========================================================================
   Associazione Velica Avia - 2026 Ultra-Luxury Nautical Design System
   "Riviera Heritage" | Light Theme | High Depth, Micro-Interactions & WOW Aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- Design Tokens & Variables --- */
:root {
  /* Surfaces & Backgrounds */
  --bg-body: #f6f8fb;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-alt: #eff4fa;
  --bg-surface-warm: #fcf9f4;
  --bg-hero-tint: #07152b;

  /* Primary Deep Oxford Navy */
  --navy-950: #040c18;
  --navy-900: #08162b;
  --navy-800: #0f2444;
  --navy-700: #173764;
  --navy-600: #1f4a86;
  --navy-100: #e0eaf5;
  --navy-50: #f0f5fb;

  /* Real Metallic Yacht Gold & Polished Brass */
  --gold-50: #fffdf7;
  --gold-100: #fbf3dc;
  --gold-200: #f5e4b2;
  --gold-300: #eed083;
  --gold-400: #e5bd57;
  --gold-500: #cca02d;
  --gold-600: #a9801c;
  --gold-700: #826012;

  /* Rich Gradients */
  --grad-gold-metallic: linear-gradient(135deg, #fae3ad 0%, #d4af37 40%, #aa8012 80%, #d4af37 100%);
  --grad-gold-btn: linear-gradient(135deg, #e5bd57 0%, #cca02d 50%, #a9801c 100%);
  --grad-gold-text: linear-gradient(135deg, #173764 0%, #08162b 100%);
  --grad-gold-shimmer: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  --grad-navy-rich: linear-gradient(145deg, #08162b 0%, #0f2b54 100%);
  --grad-card-warm: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
  --grad-hero-scrim: linear-gradient(180deg, 
    rgba(4, 12, 24, 0.4) 0%, 
    rgba(4, 12, 24, 0.72) 65%, 
    rgba(4, 12, 24, 0.92) 100%
  );

  /* Text Typography */
  --text-title: #061325;
  --text-heading: #061325;
  --text-main: #2b394e;
  --text-body: #2b394e;
  --text-muted: #5e718d;
  --text-light: #8ea0b8;

  /* Color Aliases */
  --color-navy-950: var(--navy-950);
  --color-gold-500: var(--gold-500);

  /* Fonts */
  --font-serif: 'Cinzel', Georgia, serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layered 3D Depth Shadows */
  --shadow-subtle: 0 2px 6px rgba(8, 22, 43, 0.04);
  --shadow-card: 0 10px 30px -5px rgba(8, 22, 43, 0.07), 0 4px 12px -2px rgba(8, 22, 43, 0.04);
  --shadow-card-hover: 0 24px 50px -10px rgba(8, 22, 43, 0.14), 0 8px 20px -4px rgba(204, 160, 45, 0.2);
  --shadow-gold-glow: 0 8px 25px rgba(204, 160, 45, 0.35);
  --shadow-inner-bevel: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.1);

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --border-glass: 1px solid rgba(255, 255, 255, 0.6);
  --border-light: 1px solid rgba(8, 22, 43, 0.08);
  --border-gold: 1px solid rgba(204, 160, 45, 0.35);

  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-base: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--trans-fast);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.container-narrow {
  max-width: 900px;
}

/* Section Common */
.section {
  padding: 7rem 0;
  position: relative;
}

.section-white {
  background-color: var(--bg-surface);
}

.section-alt {
  background-color: var(--bg-surface-alt);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(204, 160, 45, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(23, 55, 100, 0.05) 0%, transparent 50%);
}

.section-warm {
  background-color: var(--bg-surface-warm);
  border-top: 1px solid rgba(8, 22, 43, 0.06);
  border-bottom: 1px solid rgba(8, 22, 43, 0.06);
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--trans-base);
  padding: 1.35rem 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(8, 22, 43, 0.06);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  padding: 0.85rem 0;
  box-shadow: 0 8px 24px rgba(8, 22, 43, 0.08);
  border-bottom-color: rgba(204, 160, 45, 0.25);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.brand-logo-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--gold-400);
  box-shadow: 0 4px 14px rgba(204, 160, 45, 0.25);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}

.brand-link:hover .brand-logo-wrap {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(204, 160, 45, 0.45);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-950);
  line-height: 1.15;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}

.nav-link {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-900);
  padding: 0.5rem 0.2rem;
  position: relative;
  transition: color var(--trans-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-gold-metallic);
  transition: width var(--trans-base);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-600);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid rgba(8, 22, 43, 0.12);
  box-shadow: var(--shadow-subtle);
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--navy-950);
  transition: transform var(--trans-base), opacity var(--trans-base);
  border-radius: 2px;
}

.mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION (WOW Monumental Aesthetics)
   ========================================================================== */
.hero-section {
  min-height: 86vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8.5rem;
  padding-bottom: 6rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.02);
  animation: heroCinematicDrift 28s infinite alternate ease-in-out;
}

@keyframes heroCinematicDrift {
  0% { transform: scale(1.02) translateY(0); }
  100% { transform: scale(1.08) translateY(-10px); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--grad-hero-scrim);
  z-index: 1;
}

/* Nautical Grid Watermark */
.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(204, 160, 45, 0.12) 0%, transparent 65%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 80px 80px, 80px 80px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

/* Monumental Hero Title Split on 2 Rows */
.hero-title {
  font-family: var(--font-serif);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

.hero-title-main {
  font-size: clamp(2.4rem, 6.2vw, 4.8rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 30%, #e2eaf5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-sub {
  font-size: clamp(2.6rem, 6.8vw, 5.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff7dc 0%, #e8c872 50%, #cca02d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 25px rgba(204, 160, 45, 0.35);
  position: relative;
  display: inline-block;
}

.hero-title-sub::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 25%;
  width: 50%;
  height: 2px;
  background: var(--grad-gold-metallic);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(204, 160, 45, 0.8);
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
  margin: 1.8rem auto 2.75rem;
  font-weight: 400;
  line-height: 1.85;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Luxury Buttons with Shimmer */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 2.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--trans-base);
}

.btn-primary {
  background: var(--grad-gold-btn);
  color: #ffffff;
  box-shadow: var(--shadow-gold-glow), var(--shadow-inner-bevel);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: var(--grad-gold-shimmer);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
}

.btn-primary:hover::before {
  left: 140%;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(204, 160, 45, 0.55), var(--shadow-inner-bevel);
  color: #ffffff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.98);
  color: var(--navy-950);
  border-color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.btn-sm {
  padding: 0.65rem 1.6rem;
  font-size: 0.82rem;
}

/* ==========================================================================
   STATS RIBBON (Elevated Glass & Foil Numbers)
   ========================================================================== */
.stats-ribbon {
  background: var(--bg-surface);
  border-bottom: 1px solid rgba(8, 22, 43, 0.08);
  padding: 3.8rem 0;
  position: relative;
  box-shadow: var(--shadow-card);
  margin-top: -2rem;
  z-index: 10;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
  padding: 0 1.25rem;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(8, 22, 43, 0.12), transparent);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, #08162b 0%, #1f4a86 70%, #cca02d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-600);
  font-weight: 800;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.85rem;
}

.section-tag::before,
.section-tag::after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1.5px;
  background: var(--gold-400);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.18;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ==========================================================================
   YACHT SHOWCASE (Editorial Layout with Watermarks & Corner Brackets)
   ========================================================================== */
.yacht-card-container {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.yacht-card {
  background: var(--bg-surface);
  border: 1px solid rgba(8, 22, 43, 0.08);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  position: relative;
  transition: transform var(--trans-base), box-shadow var(--trans-base);
}

.yacht-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.yacht-card.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.yacht-card.reverse .yacht-media {
  order: 2;
}

.yacht-card.reverse .yacht-body {
  order: 1;
}

/* Giant Subtle Year Watermark placed directly in content body behind data box */
.yacht-body {
  padding: 4rem 3.5rem 8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  min-height: 520px;
  overflow: hidden;
}

.yacht-body::before {
  content: attr(data-year);
  position: absolute;
  right: 2.5rem;
  left: auto;
  bottom: 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(6.5rem, 11vw, 9.5rem);
  font-weight: 900;
  color: rgba(204, 160, 45, 0.16);
  line-height: 1;
  pointer-events: none;
  z-index: 1;
  letter-spacing: -0.02em;
  user-select: none;
  transition: color var(--trans-base), transform var(--trans-base);
}

/* 1926 in basso a sinistra per Marilee */
.yacht-card.reverse .yacht-body::before {
  left: 2.5rem;
  right: auto;
  bottom: 0.5rem;
}

.yacht-card:hover .yacht-body::before {
  color: rgba(204, 160, 45, 0.25);
  transform: translateY(-5px);
}

.yacht-name,
.yacht-subtitle,
.yacht-text {
  position: relative;
  z-index: 2;
}

.yacht-media {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: var(--navy-950);
}

.yacht-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.yacht-card:hover .yacht-media-img {
  transform: scale(1.06);
}

/* Corner Hardware Bracket Accents */
.yacht-media::after {
  content: '';
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  border-radius: var(--radius-sm);
  transition: border-color var(--trans-base);
}

.yacht-card:hover .yacht-media::after {
  border-color: rgba(229, 189, 87, 0.6);
}

.yacht-media-tag {
  position: absolute;
  top: 1.8rem;
  left: 1.8rem;
  background: rgba(4, 12, 24, 0.9);
  border: 1px solid var(--gold-400);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.yacht-media-tag-right {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  background: rgba(4, 12, 24, 0.9);
  border: 1px solid var(--gold-400);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.yacht-name {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
  font-weight: 800;
  color: var(--navy-950);
  margin-bottom: 0.35rem;
  line-height: 1.15;
}

.yacht-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-600);
  margin-bottom: 1.6rem;
  font-weight: 600;
}

.yacht-text {
  font-size: 1.02rem;
  color: var(--text-main);
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

/* Tech Specs Grid - Posizionato sopra il watermark */
.tech-specs-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.6rem 0 0;
  padding: 1.5rem;
  background: rgba(239, 244, 250, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(8, 22, 43, 0.08);
  box-shadow: inset 0 2px 6px rgba(8, 22, 43, 0.03), 0 4px 12px rgba(8, 22, 43, 0.03);
}

.spec-box {
  display: flex;
  flex-direction: column;
}

.spec-name {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.spec-val {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-950);
}

/* ==========================================================================
   MAINTENANCE & HERITAGE (Warm Teak & Polished Brass Accents)
   ========================================================================== */
.maintenance-card {
  background: var(--bg-surface);
  border: 1px solid rgba(8, 22, 43, 0.08);
  border-radius: var(--radius-xl);
  padding: 4.5rem 4rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.maintenance-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(204, 160, 45, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.maintenance-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
}

.maintenance-lead {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--navy-900);
  line-height: 1.7;
  margin-bottom: 1.6rem;
  border-left: 4px solid var(--gold-500);
  padding-left: 1.5rem;
}

.maintenance-features {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 2.2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.feature-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-100);
  border: 1px solid var(--gold-400);
  color: var(--gold-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-subtle);
}

.feature-text h5 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-950);
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cycle-diagram {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.cycle-box {
  background: var(--bg-surface-alt);
  border: 1px solid rgba(8, 22, 43, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  text-align: center;
  transition: all var(--trans-base);
  box-shadow: var(--shadow-subtle);
}

.cycle-box:hover {
  transform: translateY(-5px);
  background: #ffffff;
  border-color: var(--gold-400);
  box-shadow: var(--shadow-card-hover);
}

.cycle-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold-600);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.cycle-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--navy-950);
  margin-bottom: 0.4rem;
}

.cycle-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   EVENTS & AWARDS (Embossed 3D Metallic Badges & High Contrast)
   ========================================================================== */

/* Season Year Dividers (Visual Chronological Division) */
.season-divider {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin: 4.5rem 0 2.2rem;
}

.season-divider:first-of-type {
  margin-top: 0;
}

.season-year-badge {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy-950);
  background: #ffffff;
  border: 2px solid var(--gold-500);
  padding: 0.6rem 2.2rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(8, 22, 43, 0.06);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.season-year-badge span {
  color: var(--gold-600);
}

.season-line {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(204, 160, 45, 0.6) 0%, rgba(8, 22, 43, 0.08) 100%);
  border-radius: 2px;
}

.event-card {
  background: var(--bg-surface);
  border: 1px solid rgba(8, 22, 43, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all var(--trans-base);
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold-400);
}

/* ==========================================================================
   BADGES & MEDALS (Gold, Silver, Bronze, Placements & Boat Tags)
   ========================================================================== */
.event-boat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--navy-950);
  border: 1px solid var(--gold-400);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-serif);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  line-height: 1;
}

.event-badge-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 1.3rem;
  border-radius: var(--radius-full);
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  line-height: 1;
}

/* 🥇 Gold Medal */
.rank-gold {
  background: linear-gradient(135deg, #fff3b0 0%, #ffd700 45%, #c59b27 100%);
  color: #3d2600 !important;
  border: 1px solid #ffec99;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* 🥈 Silver Medal */
.rank-silver {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #94a3b8 100%);
  color: #0f172a !important;
  border: 1px solid #ffffff;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(148, 163, 184, 0.35);
}

/* 🥉 Bronze Medal */
.rank-bronze {
  background: linear-gradient(135deg, #ffd7a8 0%, #cd7f32 50%, #8b4513 100%);
  color: #ffffff !important;
  border: 1px solid #ffe0b2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 15px rgba(184, 115, 51, 0.35);
}

/* 🏅 Standard / 4° - 6° Placement Badge */
.rank-placement {
  background: var(--navy-950);
  color: #ffffff !important;
  border: 1px solid var(--gold-400);
  box-shadow: 0 4px 12px rgba(8, 22, 43, 0.3);
}

/* ==========================================================================
   EVENTS HORIZONTAL ROWS (2025 with Media & 2024 Streamlined Rows)
   ========================================================================== */
.events-rows-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.event-row-card {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: 2.2rem;
  background: #ffffff;
  border: 1px solid rgba(8, 22, 43, 0.08);
  border-left: 6px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--trans-base), box-shadow var(--trans-base), border-color var(--trans-base);
}

.event-row-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold-400);
  border-left-color: var(--gold-600);
}

.event-row-media {
  width: 240px;
  height: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy-950);
  border: 1px solid rgba(204, 160, 45, 0.25);
  box-shadow: 0 4px 14px rgba(8, 22, 43, 0.1);
}

.event-row-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.event-row-card:hover .event-row-img {
  transform: scale(1.08);
}

.event-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.event-row-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.event-row-title {
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 800;
  color: var(--navy-950);
  margin: 0.15rem 0;
  line-height: 1.3;
}

.event-row-desc {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.65;
  margin: 0;
}

.event-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.85rem;
  min-width: 180px;
  flex-shrink: 0;
}

.event-row-actions .event-badge-rank {
  min-width: 165px;
  justify-content: center;
}

.event-row-actions .btn-pdf {
  min-width: 165px;
  justify-content: center;
}

/* Event Row Compact (Stagione 2024 Tutto in Riga) */
.event-row-compact {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2.5rem;
  background: #ffffff;
  border: 1px solid rgba(8, 22, 43, 0.08);
  border-left: 5px solid var(--navy-900);
  border-radius: var(--radius-md);
  padding: 1.4rem 2.2rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--trans-base), box-shadow var(--trans-base), border-color var(--trans-base);
}

.event-row-compact:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-left-color: var(--gold-500);
  border-color: var(--gold-400);
}

.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  background: var(--gold-50);
  border: 1px solid var(--gold-400);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold-700);
  transition: all var(--trans-fast);
}

.btn-pdf:hover {
  background: var(--grad-gold-btn);
  color: #ffffff;
  border-color: var(--gold-600);
  box-shadow: var(--shadow-subtle);
  transform: translateY(-2px);
}

/* ==========================================================================
   PALMARES ROWS (Streamlined & Monumental WOW Layout)
   ========================================================================== */
.palmares-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
}

.palmares-row {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: 2.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #fcfbf9 100%);
  border: 1px solid rgba(204, 160, 45, 0.25);
  border-left: 6px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 1.6rem 2.2rem;
  box-shadow: 0 10px 30px rgba(8, 22, 43, 0.06), 0 2px 8px rgba(8, 22, 43, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.palmares-row::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background: radial-gradient(circle at 100% 50%, rgba(204, 160, 45, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.palmares-row:hover {
  transform: translateY(-6px);
  border-color: var(--gold-400);
  border-left-color: var(--gold-600);
  box-shadow: 0 20px 45px rgba(8, 22, 43, 0.12), 0 0 25px rgba(229, 189, 87, 0.25);
}

.palmares-thumb-wrap {
  position: relative;
  width: 240px;
  height: 155px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy-950);
  border: 1px solid rgba(204, 160, 45, 0.3);
  box-shadow: 0 6px 18px rgba(8, 22, 43, 0.15);
}

.palmares-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.palmares-row:hover .palmares-thumb {
  transform: scale(1.08);
}

.palmares-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.palmares-meta-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.palmares-date,
.palmares-location {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
}

.palmares-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.3vw, 1.95rem);
  font-weight: 800;
  color: var(--navy-950);
  margin: 0.1rem 0 0.2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.palmares-subtitle {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.palmares-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 180px;
}

.palmares-badge-wrap .event-badge-rank {
  position: static;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   GALLERY (Curated Grid & Glowing Zoom Reticle)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.6rem;
}

.gallery-item {
  position: relative;
  height: 290px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(8, 22, 43, 0.08);
  box-shadow: var(--shadow-card);
  background: var(--navy-950);
  transition: all var(--trans-base);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

/* Gallery Item Hover - Solo Lente di Ingrandimento */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 24, 0.4);
  opacity: 0;
  transition: opacity var(--trans-base);
  pointer-events: none;
  z-index: 1;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.08);
}

.gallery-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--grad-gold-btn);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  opacity: 0;
  transition: all var(--trans-base);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(229, 189, 87, 0.5);
  z-index: 2;
}

.gallery-item:hover .gallery-zoom-icon {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ==========================================================================
   ABOUT & GOVERNANCE
   ========================================================================== */
.governance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.75rem;
  max-width: 920px;
  margin: 3.5rem auto 0;
}

.gov-card {
  background: var(--bg-surface);
  border: 1px solid rgba(8, 22, 43, 0.08);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 3.25rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--trans-base);
}

.gov-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.gov-avatar-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  background: var(--gold-100);
  border: 2px solid var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-700);
  font-size: 2.6rem;
  box-shadow: var(--shadow-subtle);
}

.gov-role {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-600);
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.gov-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-950);
  margin-bottom: 0.85rem;
}

.gov-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-section-wrap {
  margin-top: 4.5rem;
  background: var(--bg-surface);
  border: 1px solid rgba(8, 22, 43, 0.08);
  border-radius: var(--radius-xl);
  padding: 4.5rem 3.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 3rem;
  border-radius: var(--radius-full);
  background: var(--grad-gold-btn);
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-top: 1.75rem;
  box-shadow: var(--shadow-gold-glow);
  transition: all var(--trans-fast);
}

.contact-email-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(204, 160, 45, 0.5);
  color: #ffffff;
}

/* ==========================================================================
   CREDITS PAGE
   ========================================================================== */
.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.credits-card {
  padding: 2.5rem;
}

/* ==========================================================================
   PAGE BANNER (Subpages)
   ========================================================================== */
.page-banner {
  padding-top: 10.5rem;
  padding-bottom: 5.5rem;
  background: var(--grad-navy-rich);
  position: relative;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(204, 160, 45, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.page-banner-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-banner-desc {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==========================================================================
   FOOTER (Prestigious Navy Base)
   ========================================================================== */
.site-footer {
  background-color: var(--navy-950);
  color: rgba(255, 255, 255, 0.82);
  border-top: 3px solid var(--gold-500);
  padding: 5rem 0 2.2rem;
  position: relative;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4.5rem;
  align-items: center;
  margin-bottom: 3.8rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
}

.footer-brand-desc {
  font-size: 0.98rem;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 460px;
}

/* Big Clickable Email in Footer */
.footer-email-box {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-email-label {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-400);
}

.footer-email-link {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  word-break: break-all;
  transition: color var(--trans-fast);
}

.footer-email-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-gold-metallic);
  transition: width var(--trans-base);
  border-radius: 2px;
}

.footer-email-link:hover {
  color: var(--gold-300);
}

.footer-email-link:hover::after {
  width: 100%;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer-copy strong {
  color: #ffffff;
}

.footer-credit {
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer-credit a {
  color: var(--gold-300);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--trans-fast);
}

.footer-credit a:hover {
  color: #ffffff;
}

/* ==========================================================================
   LIGHTBOX & MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 12, 24, 0.97);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-base);
  padding: 1.5rem;
}

.lightbox-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: background var(--trans-fast), border-color var(--trans-fast), color var(--trans-fast);
  z-index: 2010;
}

.lightbox-close-btn:hover {
  background: var(--gold-500);
  border-color: var(--gold-400);
  color: #ffffff;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(4, 12, 24, 0.85);
  border: 1px solid rgba(204, 160, 45, 0.5);
  color: var(--gold-300);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--trans-fast);
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: var(--gold-500);
  color: #ffffff;
}

.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

.lightbox-image-wrap {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(204, 160, 45, 0.4);
}

.lightbox-caption-bar {
  margin-top: 1.5rem;
  text-align: center;
}

.lightbox-caption-counter {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
  background: rgba(4, 12, 24, 0.8);
  border: 1px solid rgba(204, 160, 45, 0.4);
  padding: 0.45rem 1.4rem;
  border-radius: var(--radius-full);
  display: inline-block;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 404 Page */
.error-page-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 1.5rem 6rem;
  background: var(--bg-surface);
}

.error-code {
  font-family: var(--font-serif);
  font-size: clamp(5.5rem, 13vw, 10rem);
  font-weight: 900;
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: 1rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Ordered Descending)
   ========================================================================== */

/* --- Tablet Landscape / Small Desktop (<= 1024px) --- */
@media (max-width: 1024px) {
  .yacht-card,
  .yacht-card.reverse {
    grid-template-columns: 1fr;
  }
  .yacht-card.reverse .yacht-media {
    order: 1;
  }
  .yacht-card.reverse .yacht-body {
    order: 2;
  }
  .maintenance-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Tablet Portrait / Intermediate (<= 900px) --- */
@media (max-width: 900px) {
  .event-row-card {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .event-row-media {
    width: 100%;
    height: 180px;
  }
  .event-row-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }
  .event-row-actions .event-badge-rank,
  .event-row-actions .btn-pdf {
    width: 100%;
    min-width: unset;
    justify-content: center;
  }
  .event-row-compact {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .palmares-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.6rem;
  }
  .palmares-thumb-wrap {
    width: 100%;
    height: 200px;
  }
  .palmares-badge-wrap {
    justify-content: flex-start;
  }
}

/* --- Mobile Landscape / Large Mobile (<= 768px) --- */
@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 2.5rem;
    gap: 2.2rem;
    transition: right var(--trans-smooth);
    border-left: 1px solid rgba(8, 22, 43, 0.1);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
  }
  .nav-menu.is-open {
    right: 0;
  }
  .nav-link {
    font-size: 1.35rem;
    color: var(--navy-950);
  }
  .yacht-media-tag,
  .yacht-media-tag-right {
    display: none;
  }
  .yacht-body {
    padding-bottom: 6rem;
  }
  .event-row-card,
  .event-row-compact {
    padding: 1.6rem 1.4rem;
  }
  .season-year-badge {
    font-size: 1.25rem;
    padding: 0.5rem 1.4rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
  .tech-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .governance-grid {
    grid-template-columns: 1fr;
  }
  .contact-section-wrap {
    padding: 1.5rem;
  }
  .credits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .credits-card {
    padding: 1.8rem 1.4rem;
  }
  .maintenance-card {
    padding: 2.5rem 1.6rem;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .lightbox-prev {
    left: 0.75rem;
  }
  .lightbox-next {
    right: 0.75rem;
  }
}

/* --- Mobile Portrait (<= 480px) --- */
@media (max-width: 480px) {
  .section {
    padding: 5rem 0;
  }
  .yacht-body {
    padding: 2.5rem 1.6rem 6rem;
  }
  .maintenance-card {
    padding: 2.75rem 1.6rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .stat-item::after {
    display: none !important;
  }
  .cycle-diagram {
    grid-template-columns: 1fr;
  }
}
