/* =============================================================
   FRATELLI BARRETTA – HOME PAGE CSS
   Dark Maritime Theme · Premium Design · 2025
============================================================= */

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

:root {
  /* Colors */
  --navy-deep:    #0d1a33;
  --navy-dark:    #122240;
  --navy-mid:     #172a4d;
  --navy-light:   #1a3a5c;
  --ocean-blue:   #1e4d78;
  --teal:         #0e7490;
  --teal-light:   #22d3ee;
  --gold:         #f0a500;
  --gold-light:   #fbbf24;
  --gold-dark:    #b45309;
  --white:        #ffffff;
  --text-primary: #e2eaf5;
  --text-secondary: #94a3b8;
  --text-muted:   #4a5568;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, rgba(6,13,28,0.78) 0%, rgba(8,15,30,0.52) 50%, rgba(6,13,28,0.7) 100%);
  --grad-gold: linear-gradient(135deg, #f0a500, #fbbf24);
  --grad-teal: linear-gradient(135deg, #0e7490, #22d3ee);
  --grad-navy: linear-gradient(180deg, #080f1e 0%, #0d1f35 100%);

  /* Typography */
  --font-body: 'Outfit', sans-serif;
  --font-display: 'Playfair Display', serif;

  /* Spacing */
  --section-pad: clamp(5rem, 8vw, 8rem);
  --container-max: 1280px;

  /* Effects */
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 30px rgba(240,165,0,0.2);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--navy-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

/* ---- Reveal Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Section Commons ---- */
.section-header { text-align: center; margin-bottom: clamp(3rem, 5vw, 5rem); }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(240,165,0,0.3);
  border-radius: 100px;
  background: rgba(240,165,0,0.07);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}
.gradient-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--grad-gold);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(240,165,0,0.4);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-spring);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(240,165,0,0.08);
  transform: translateY(-3px);
}

/* =============================================================
   NAVBAR
============================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, padding 0.4s;
}
.navbar.scrolled {
  background: rgba(6,13,28,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.8rem 0;
  border-bottom: none;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.navbar { will-change: padding, background; }
.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
}
.brand-since {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.brand-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
  line-height: 1;
}
.brand-name {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--white); background: var(--glass-bg); }
.nav-cta {
  background: var(--grad-gold) !important;
  color: var(--navy-deep) !important;
  font-weight: 700 !important;
  padding: 0.55rem 1.3rem !important;
}
.nav-cta:hover { box-shadow: var(--shadow-gold); transform: translateY(-1px); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(6,13,28,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 0.5rem;
    transform: translateY(-110%);
    transition: transform 0.4s var(--ease);
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.open { transform: translateY(0); }
  /* Dark background always visible on mobile */
  .navbar {
    background: rgba(6,13,28,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-top: max(2.2rem, env(safe-area-inset-top, 2.2rem));
    padding-bottom: 0.9rem;
  }
  /* Hide second brand line - show only "Impresa Fratelli Barretta" */
  .brand-sub { display: none; }
  /* Fallback: clip to 1 line regardless of HTML (works with <br> tag) */
  .brand-year {
    display: -webkit-box !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.85rem !important;
    max-width: calc(100vw - 120px); /* prevent overflow past hamburger */
  }
  .brand-since { font-size: 0.7rem !important; }
}

.nav-divider {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: clamp(10px, 4vw, 40px); /* Height scales with width to maintain proportions */
  background-image: url('../img/cordone.jpg');
  background-size: 100% auto; /* Stretch width, keep height proportional */
  background-repeat: no-repeat;
  background-position: center top;
  filter: url(#white-rope);
  pointer-events: none;
  z-index: 1001;
  opacity: 0.75;
  margin-top: -4px;
  clip-path: inset(1px 0); 
}



/* =============================================================
   HERO
============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}
/* Animated CSS sea background (fallback/base layer under video) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(14,116,144,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 80% 20%, rgba(26,58,92,0.5) 0%, transparent 60%),
    linear-gradient(160deg, #060d1c 30%, #0a1e30 70%, #060d1c 100%);
  z-index: 0;
  animation: heroWave 15s ease-in-out infinite;
}
@keyframes heroWave {
  0%,100% { background-position: 0% 0%; }
  50% { opacity: 0.85; }
}
/* Floating particles */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(240,165,0,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 70%, rgba(240,165,0,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 40%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 80%, rgba(34,211,238,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 15%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(2px 2px at 90% 30%, rgba(240,165,0,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 55%, rgba(34,211,238,0.3) 0%, transparent 100%);
  animation: particleDrift 20s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes particleDrift {
  0% { transform: translateY(0) scale(1); opacity: 0.7; }
  100% { transform: translateY(-20px) scale(1.02); opacity: 1; }
}
.hero-video-wrapper {
  position: absolute;
  inset: -10%;
  z-index: 1;
  pointer-events: none;
}
.hero-video-wrapper iframe,
.hero-video-wrapper video {
  width: 100%;
  height: 120%;
  border: none;
  object-fit: cover;
  opacity: 0.8; /* Slightly reduced as requested */
  background: black;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--grad-hero);
}
/* Animated radial glow */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(14,116,144,0.25) 0%, transparent 70%);
  animation: heroPulse 8s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
  padding-top: 6rem;
}
.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-title-line {
  display: block;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(226,234,245,0.8);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(240,165,0,0.7), transparent);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
/* Wave */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  z-index: 3;
}
.hero-wave svg { display: block; }

/* =============================================================
   STATS
============================================================= */
.stats-section {
  background: var(--navy-deep);
  padding: 4rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.stat-card {
  background: var(--navy-dark);
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  transition: background 0.3s;
}
.stat-card:hover { background: var(--navy-mid); }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--grad-gold);
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 0.5rem;
}
.stat-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* =============================================================
   SERVICES
============================================================= */
.services-section {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--navy-dark) url('../img/core-business-bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .services-section { background-attachment: scroll; }
}

.services-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 13, 28, 0.82) 0%, rgba(8, 15, 30, 0.75) 100%);
  z-index: 1;
}

.services-section .container {
  position: relative;
  z-index: 2;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240,165,0,0.3);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}
.service-card--featured {
  border-color: rgba(240,165,0,0.25);
  background: linear-gradient(135deg, rgba(240,165,0,0.06), rgba(8,15,30,0.8));
}
.service-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  background: rgba(240,165,0,0.12);
  border: 1px solid rgba(240,165,0,0.3);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.5rem;
}
.service-icon-wrap {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240,165,0,0.1);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  transition: background 0.3s, transform 0.3s;
}
.service-card:hover .service-icon-wrap {
  background: rgba(240,165,0,0.2);
  transform: scale(1.1);
}
.service-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
}
.service-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.service-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 1.2rem;
  position: relative;
}
.service-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.service-glow {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(240,165,0,0.08) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s;
}
.service-card:hover .service-glow { opacity: 2; }

/* =============================================================
   FLEET
============================================================= */
.fleet-section {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--navy-dark) url('../img/fleet-bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .fleet-section { background-attachment: scroll; }
}

.fleet-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 15, 30, 0.82) 0%, rgba(6, 13, 28, 0.78) 100%);
  z-index: 1;
}

.fleet-section .container {
  position: relative;
  z-index: 2;
}
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.fleet-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s, box-shadow 0.3s;
}
.fleet-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240,165,0,0.3);
  box-shadow: var(--shadow-lg);
}
.fleet-card--new { border-color: rgba(34,211,238,0.3); }
.fleet-card-header {
  background: rgba(240,165,0,0.06);
  padding: 1.2rem 1.5rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fleet-card--new .fleet-card-header { background: rgba(34,211,238,0.06); }
.fleet-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  width: fit-content;
}
.fleet-badge--azimutale {
  background: rgba(240,165,0,0.15);
  color: var(--gold);
  border: 1px solid rgba(240,165,0,0.3);
}
.fleet-badge--convenzionale {
  background: rgba(148,163,184,0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(148,163,184,0.3);
}
.fleet-badge--new {
  background: rgba(34,211,238,0.15);
  color: var(--teal-light);
  border: 1px solid rgba(34,211,238,0.3);
}
.fleet-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}
.fleet-body { padding: 1.5rem; }
.fleet-visual {
  margin-bottom: 1.2rem;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.fleet-card:hover .fleet-visual { opacity: 1; }
.ship-silhouette { width: 100%; height: auto; }

.fleet-visual-img {
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
}
.fleet-visual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.fleet-card:hover .fleet-visual-img img {
  transform: scale(1.08);
}
.fleet-specs { display: flex; flex-direction: column; gap: 0.6rem; }
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.spec-row:last-child { border-bottom: none; padding-bottom: 0; }
.spec-label { color: var(--text-muted); }
.spec-value { font-weight: 600; color: var(--text-primary); }
.spec-value.highlight { color: var(--gold); font-weight: 700; }
.fleet-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fleet-status { font-size: 0.8rem; font-weight: 500; }
.fleet-status--active { color: #4ade80; }
.fleet-track {
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}
.fleet-track:hover { opacity: 0.7; }
/* Marine map */
.marine-map {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.map-header {
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--glass-border);
}
.map-header h3 { font-size: 1rem; font-weight: 600; color: var(--white); }
.map-live-badge {
  font-size: 0.72rem;
  color: #4ade80;
  font-weight: 600;
  letter-spacing: 1px;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.map-wrapper { height: 450px; }
.map-wrapper script { display: none; }

/* =============================================================
   STORIA / TIMELINE
============================================================= */
.storia-section {
  padding: var(--section-pad) 0;
  background: var(--navy-dark) url('../img/storia-bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .storia-section { background-attachment: scroll; }
}
.storia-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 15, 30, 0.85) 0%, rgba(6, 13, 28, 0.75) 100%);
  z-index: 1;
}
.storia-section .container {
  position: relative;
  z-index: 2;
}
.storia-section::before {
  content: 'DAL 1945';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 900;
  color: rgba(255,255,255,0.015);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.05em;
}
.timeline {
  position: relative;
  padding-left: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.8rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(240,165,0,0.1));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.65rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--navy-dark);
  box-shadow: 0 0 12px rgba(240,165,0,0.5);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  padding-top: 0.2rem;
  text-align: right;
}
.timeline-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.timeline-card:hover {
  border-color: rgba(240,165,0,0.2);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.timeline-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.timeline-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================================================
   VIDEO GALLERY
============================================================= */
.video-section {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--navy-dark) url('../img/video-gallery-bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .video-section { background-attachment: scroll; }
}

.video-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 13, 28, 0.85) 0%, rgba(8, 15, 30, 0.78) 100%);
  z-index: 1;
}

.video-section .container {
  position: relative;
  z-index: 2;
}
.video-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.vtab {
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  border: 1.5px solid var(--glass-border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.25s var(--ease);
}
.vtab:hover { border-color: var(--gold); color: var(--gold); }
.vtab.active {
  background: var(--grad-gold);
  border-color: transparent;
  color: var(--navy-deep);
}
.video-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.video-grid.active { display: grid; }
.video-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.video-card--featured {
  grid-column: span 1;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--navy-deep);
}
.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-info {
  padding: 1.2rem;
}
.video-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-light);
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 100px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.6rem;
}
.video-tag--gold {
  color: var(--gold);
  background: rgba(240,165,0,0.1);
  border-color: rgba(240,165,0,0.2);
}
.video-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.video-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 0.4rem;
}

/* =============================================================
   NORMAN ATLANTIC
============================================================= */
.norman-section {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--navy-dark) url('../img/norman-bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .norman-section { background-attachment: scroll; }
}

.norman-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 13, 28, 0.82) 0%, rgba(8, 15, 30, 0.75) 100%);
  z-index: 1;
}

.norman-section .container {
  position: relative;
  z-index: 2;
}
.norman-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 20rem);
  font-weight: 900;
  color: rgba(255,255,255,0.02);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.05em;
}
.norman-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.norman-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.norman-content p strong { color: var(--white); }
.norman-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.ntag {
  padding: 0.4rem 1rem;
  background: rgba(240,165,0,0.1);
  border: 1px solid rgba(240,165,0,0.25);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 500;
}
.norman-video { border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 768px) {
  .norman-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* =============================================================
   HQSE
============================================================= */
.hqse-section {
  position: relative;
  padding: var(--section-pad) 0;
  background: url('../img/hqse-mobile-bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

.hqse-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 13, 28, 0.88) 0%, rgba(8, 15, 30, 0.75) 100%);
  z-index: 1;
}

.hqse-section .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .hqse-section { background-attachment: scroll; }
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s;
}
.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240,165,0,0.3);
}
.cert-icon { font-size: 2rem; flex-shrink: 0; }
.cert-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cert-body strong { font-size: 1rem; color: var(--white); font-weight: 700; }
.cert-body span { font-size: 0.88rem; color: var(--text-secondary); }
.cert-body small { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }
.hqse-note {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
}
.hqse-note strong { color: var(--white); }

/* =============================================================
   CARRIERE
============================================================= */
.carriere-section {
  padding: var(--section-pad) 0;
  background: var(--navy-mid);
}
.carriere-card {
  background: linear-gradient(135deg, rgba(240,165,0,0.08), rgba(8,15,30,0.5));
  border: 1px solid rgba(240,165,0,0.2);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.carriere-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(240,165,0,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.carriere-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  margin: 0.6rem 0 1rem;
}
.carriere-content p { color: var(--text-secondary); font-size: 1rem; line-height: 1.8; }
.carriere-icon {
  width: clamp(100px, 15vw, 180px);
  height: clamp(100px, 15vw, 180px);
  flex-shrink: 0;
  opacity: 0.7;
}
.carriere-icon svg { width: 100%; height: 100%; }
@media (max-width: 640px) {
  .carriere-card { grid-template-columns: 1fr; gap: 2rem; }
  .carriere-icon { display: none; }
}

/* =============================================================
   FOOTER
============================================================= */
.footer-membership {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem; /* Further reduced gap */
  flex-wrap: wrap;
}
.membership-label {
  flex-basis: 100%;
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  margin-bottom: -8px; /* Negative margin to bring items up */
  font-style: italic;
}
.membership-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}
.membership-item small {
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.membership-item img {
  height: 48px; /* Slightly larger image */
  width: auto;
  object-fit: contain;
  padding: 6px;
  background: white; /* White background to make the logo pop inside the gold border */
  border: 3px solid var(--gold);
  border-radius: 6px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.membership-item img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(240, 165, 0, 0.3);
}
.footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--glass-border);
  padding: clamp(4rem, 6vw, 6rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.footer-company {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.7rem;
}
.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer-member {
  padding: 0.6rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}
.footer-member small { font-size: 0.75rem; color: var(--text-muted); }
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }
.footer-col p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.contact-item a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.contact-item a:hover { color: var(--gold); }
.contact-icon { flex-shrink: 0; margin-top: 0.1rem; }
.footer-link {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--gold); }

/* --- Language Switcher --- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 15px;
}
.lang-flag {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  padding: 2px;
}
.lang-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.lang-flag:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(240,165,0,0.1);
}
.lang-flag.active {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(240,165,0,0.3);
}

@media (max-width: 991px) {
  .lang-switcher {
    margin: 20px 0 0 0;
    justify-content: center;
    width: 100%;
  }
}
.badge-no-cookie {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #22d3ee;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem;
}
.badge-no-cookie::before {
  content: '✓';
  font-size: 0.8rem;
}
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(5) { grid-column: span 2; }
  .timeline { padding-left: 2rem; }
  .timeline-item { grid-template-columns: 70px 1fr; gap: 1rem; }
  .timeline::before { left: 0.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .fleet-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.3rem, 11vw, 3.8rem); }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .timeline { padding-left: 1.2rem; }
  .timeline-item { 
    grid-template-columns: 1fr; 
    gap: 0.5rem; 
    margin-bottom: 2.5rem;
  }
  .timeline-year {
    text-align: left;
    font-size: 1rem;
    padding-bottom: 0.2rem;
  }
  .timeline::before { left: 0.4rem; top: 1.5rem; }
  .timeline-item::before {
    left: -1.05rem;
    top: 0.5rem;
  }
}

/* =============================================================
   LOADER / page appearance
============================================================= */
body { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
