/* ============================================
   main.css — Landing Page UI (LATEST VERSION)
   Updated: 2025-12-05
   Used by layout: main.hbs + home.hbs
============================================ */



@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap");
.form-group {
  color: blue;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #F4F6F8;
}

img {
  width: 100%;
}

.wrapper {
  display: grid;
  place-items: center;
  height: 100vh;
}

.btn {
  border: none;
  color: #fff;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-style: 16px;
  margin: 4px 2px;
  cursor: pointer;
  width: 100%;
  border-radius: 3px;
}

.btn-primary {
  background-color: #008CBA;
}


/* ----------------------------------------------------
   LANDING PAGE — HERO SECTION
---------------------------------------------------- */


.landing-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
}

.highlight {
  color: #4da3ff;
}

.landing-subtitle {
  font-size: 18px;
  margin-top: 20px;
}

.landing-trust {
  margin-top: 14px;
  color: #888;
  font-size: 14px;
}

.landing-actions {
  margin-top: 35px;
}

.landing-btn-primary {
  background: #4da3ff;
  color: white;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  margin-right: 10px;
  font-weight: 600;
}

.landing-btn-secondary {
  background: transparent;
  border: 2px solid #4da3ff;
  color: #4da3ff;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

/* ----------------------------------------------------
   WHY VMS SECTION
---------------------------------------------------- */
.why-vms {
  padding: 70px 20px;
}

.why-vms-wrapper {
  max-width: 1100px;
  margin: auto;
}

.why-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 15px;
}

.why-subtitle {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.why-card {
  padding: 25px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.why-icon {
  font-size: 32px;
  color: #4da3ff;
  margin-bottom: 12px;
}

/* ----------------------------------------------------
   FEATURES SECTION
---------------------------------------------------- */
.features-alt {
  padding: 80px 20px;
  background: #ffffff;
}

.features-alt-wrapper {
  max-width: 1100px;
  margin: auto;
}

.features-alt-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 15px;
}

.features-alt-subtitle {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.features-alt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.features-alt-card {
  background: #f4f6f8;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.features-alt-icon {
  width: 70px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.4));
}

.features-alt-card h3 {
  margin-bottom: 12px;
}

/* ----------------------------------------------------
   PRICING PAGE
---------------------------------------------------- */

.pricing-page {
  padding: 80px 20px;
  background: #f4f6f8;
}

.pricing-wrapper {
  max-width: 1100px;
  margin: auto;
}

.pricing-title {
  font-size: 38px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: #1a1d24;
}

.pricing-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
  color: #555;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 32px;
}

/* CARD */
.pricing-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  border: 1px solid #e4e6eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  position: relative;
  transition: 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* FEATURED (Standard Plan) */
.pricing-card-featured {
  border: 2px solid #4da3ff;
  box-shadow: 0 6px 20px rgba(77,163,255,0.25);
}

/* BADGE */
.pricing-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #4da3ff;
  color: white;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
}

/* TITLES */
.pricing-name {
  font-size: 24px;
  font-weight: 700;
  color: #1a1d24;
}

.pricing-price {
  font-size: 22px;
  font-weight: 700;
  color: #4da3ff;
  margin-top: 5px;
  margin-bottom: 18px;
}

.pricing-description {
  color: #555;
  margin-bottom: 20px;
}

/* FEATURES LIST */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.pricing-features li {
  margin-bottom: 8px;
  color: #333;
}

/* CTA BUTTON */
.pricing-btn-primary {
  display: block;
  padding: 12px;
  background: #4da3ff;
  color: white !important;
  font-weight: 600;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.25s ease;
}

.pricing-btn-primary:hover {
  background: #3c90e4;
}

/* ----------------------------------------------------
   CARD HOVER ANIMATION — MARITIME GLOW
---------------------------------------------------- */
.why-card, 
.features-alt-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}



/* ----------------------------------------------------
   HERO — Maritime Soft Texture + Gradient
---------------------------------------------------- */

.landing-hero {
  padding: 150px 20px;
  text-align: center;

  /* Soft maritime gradient */
  background: linear-gradient(
      135deg,
      #e9f3ff 0%,
      #f4faff 40%,
      #ffffff 100%
    ),
    /* Maritime subtle wave texture (super light) */
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 Q25 40 50 50 T100 50 V100 H0 Z' fill='%23dce9f8' opacity='0.15'/%3E%3C/svg%3E");

  background-size: cover, 300px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ----------------------------------------------------
   HERO TITLE GLOW — Maritime Blue
---------------------------------------------------- */
.landing-title {
  position: relative;
  z-index: 2;
}


/* ----------------------------------------------------
   HERO FADE TO WHITE (smooth transition)
---------------------------------------------------- */
.landing-hero {
  position: relative;
}

.landing-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 80%);
}

/* ----------------------------------------------------
   WAVE SEPARATOR — between HERO and WHY section
---------------------------------------------------- */
.why-vms {
  position: relative;
  padding-top: 90px; /* extra spazio sopra per l'onda */
}

/* Onda bianca che “taglia” il fondo dell'hero */
.why-vms::before {
  content: "";
  position: absolute;
  top: -70px;
  left: 0;
  width: 100%;
  height: 70px;
  background: url("data:image/svg+xml,%3Csvg width='1440' height='80' viewBox='0 0 1440 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,32 C180,64 360,0 540,16 C720,32 900,80 1080,69.3 C1260,58.7 1350,45.3 1440,32 L1440,80 L0,80 Z' fill='%23ffffff'/%3E%3C/svg%3E")
    no-repeat center bottom;
  background-size: cover;
  pointer-events: none;
}

/* ----------------------------------------------------
   FADE-IN ANIMATIONS FOR SECTIONS
---------------------------------------------------- */

/* Animazioni base */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}

/* Ritardi per creare effetto "step" */
.fade-delay-1 { animation-delay: 0.2s; }
.fade-delay-2 { animation-delay: 0.4s; }
.fade-delay-3 { animation-delay: 0.6s; }
.fade-delay-4 { animation-delay: 0.8s; }


/* ----------------------------------------------------
   SECTION COLOR ALTERNATION (Professional SaaS)
---------------------------------------------------- */

/* WHY VMS: pure white */
.why-vms {
  background: #ffffff;
}

/* FEATURES: ultra light grey */
.features-alt {
  background: #f7f9fc;
}

/* ----------------------------------------------------
   CREDIBILITY SECTION
---------------------------------------------------- */
.credibility {
  padding: 70px 20px;
  background: #ffffff;
}

.credibility-wrapper {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.credibility-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1d24;
}

.credibility-subtitle {
  font-size: 17px;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

/* ----------------------------------------------------
   ICON MICRO-ANIMATIONS — Maritime Professional
---------------------------------------------------- */

.why-icon,
.features-alt-icon {
  transition: transform 0.3s ease, filter 0.3s ease;
}




/* ----------------------------------------------------
   HERO TITLE — Premium Glow (Maritime)
---------------------------------------------------- */

.landing-title {
  position: relative;
  text-shadow: 0 4px 12px rgba(0, 80, 160, 0.25);
}


/* ----------------------------------------------------
   CARD DRIFT ANIMATION (Premium Maritime)
---------------------------------------------------- */

.why-card,
.features-alt-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}


/* ----------------------------------------------------
   ICON GLOW + FLOAT (Professional Maritime)
---------------------------------------------------- */

.why-icon,
.features-alt-icon {
  transition: transform 0.35s ease, filter 0.35s ease;
  transform-origin: center;
}



/* ----------------------------------------------------
   HERO TITLE — Dynamic Glow + Fade In
---------------------------------------------------- */

/* Fade-in animation for hero content */
@keyframes heroFadeUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Apply fade-in to hero elements */
.landing-title,
.landing-subtitle,
.landing-trust,
.landing-actions {
  opacity: 0;
  animation: heroFadeUp 0.9s ease forwards;
}

/* Delay per creare effetto "sequenza" */
.landing-subtitle { animation-delay: 0.15s; }
.landing-trust    { animation-delay: 0.30s; }
.landing-actions  { animation-delay: 0.45s; }

/* Pulsing glow behind the title */
@keyframes heroGlowPulse {
  0%   { opacity: 0.45; transform: scale(1); }
  50%  { opacity: 0.75; transform: scale(1.08); }
  100% { opacity: 0.45; transform: scale(1); }
}


/* ----------------------------------------------------
   HERO BUTTONS — Premium SaaS Style (Glow + Lift)
---------------------------------------------------- */

.landing-btn-primary,
.landing-btn-secondary {
  position: relative;
  display: inline-block;
  transition: 0.28s ease;
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* PRIMARY BUTTON (blue) */
.landing-btn-primary {
  background: linear-gradient(135deg, #4da3ff, #3e8fe0);
  color: #fff !important;
  border: none;
}

/* SECONDARY BUTTON (outlined) */
.landing-btn-secondary {
  background: transparent;
  border: 2px solid #4da3ff;
  color: #4da3ff !important;
}

/* Hover – Lift + Glow */
.landing-btn-primary:hover,
.landing-btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(77,163,255,0.35);
}

/* Secondary hover override */
.landing-btn-secondary:hover {
  background: rgba(77,163,255,0.07);
}

/* Click (active) */
.landing-btn-primary:active,
.landing-btn-secondary:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Subtle pulse for the primary CTA */
@keyframes buttonPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.landing-btn-primary {
  animation: buttonPulse 4.8s ease-in-out infinite;
}

/* ----------------------------------------------------
   CARD FLOATING ANIMATION — Ultra Smooth SaaS
---------------------------------------------------- */

.why-card,
.features-alt-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.21,.98,.6,1),
              box-shadow 0.35s cubic-bezier(.21,.98,.6,1);
}

/* Hover: smooth lifting + maritime glow */

/* Glow subtle border on hover */
.why-card::after,
.features-alt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  box-shadow: inset 0 0 25px rgba(77,163,255,0.25);
}

.why-card:hover::after,
.features-alt-card:hover::after {
  opacity: 1;
}

/* ----------------------------------------------------
   SOFT FLOAT ANIMATION (cards gently move forever)
---------------------------------------------------- */

@keyframes softFloat {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-3px); }
  100% { transform: translateY(0px); }
}

.why-card,
.features-alt-card {
  animation: softFloat 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 1) * 0.3s);
  /* ogni card avrà un delay differente (naturale) */
}

/* ----------------------------------------------------
   VIEWPORT FADE + SLIDE IN (premium entrance)
---------------------------------------------------- */

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.why-card,
.features-alt-card {
  opacity: 0;
  animation: fadeSlideUp 0.9s ease forwards,
             softFloat 6s ease-in-out infinite;
}

/* ritardi naturale per ogni card */
.why-card:nth-child(1) { animation-delay: 0.15s; }
.why-card:nth-child(2) { animation-delay: 0.30s; }
.why-card:nth-child(3) { animation-delay: 0.45s; }
.why-card:nth-child(4) { animation-delay: 0.60s; }

.features-alt-card:nth-child(1) { animation-delay: 0.15s; }
.features-alt-card:nth-child(2) { animation-delay: 0.30s; }
.features-alt-card:nth-child(3) { animation-delay: 0.45s; }

/* ----------------------------------------------------
   TITLES ANIMATIONS — Premium SaaS Style
---------------------------------------------------- */

/* Fade & rise */
@keyframes titleRise {
  0% {
    opacity: 0;
    transform: translateY(25px);
    letter-spacing: -1px;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0px;
  }
}

/* Glow pulsante ultra-soft */
@keyframes titleGlow {
  0%   { text-shadow: 0 0 0px rgba(77,163,255,0.0); }
  50%  { text-shadow: 0 0 12px rgba(77,163,255,0.35); }
  100% { text-shadow: 0 0 0px rgba(77,163,255,0.0); }
}

/* Applica a titoli principali */
.landing-title,
.why-title,
.features-alt-title,
.pricing-title {
  opacity: 0;
  animation: 
    titleRise 0.8s ease forwards,
    titleGlow 4s ease-in-out infinite;
  animation-delay: 0.2s;
  transform-origin: center;
}


/* ----------------------------------------------------
   SUBTITLE ANIMATIONS — Smooth Professional
---------------------------------------------------- */

@keyframes subtitleFade {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-subtitle,
.landing-trust,
.why-subtitle,
.features-alt-subtitle,
.pricing-subtitle {
  opacity: 0;
  animation: subtitleFade 1s ease forwards;
  animation-delay: 0.45s;
  color: #556; /* leggero scuro premium */
}

/* Micro glow on hover (optional premium touch) */
.landing-title:hover,
.why-title:hover,
.features-alt-title:hover {
  text-shadow: 0 0 18px rgba(77,163,255,0.4);
  transition: 0.4s ease;
}

/* ----------------------------------------------------
   PREMIUM CTA BUTTONS — Linear / Stripe Style
---------------------------------------------------- */

/* Base smooth transition */
.landing-btn-primary,
.landing-btn-secondary,
.public-navbar-btn,
.public-btn,
.pricing-btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.28s ease;
  cursor: pointer;
}

/* Hover lift effect */
.landing-btn-primary:hover,
.landing-btn-secondary:hover,
.public-navbar-btn:hover,
.public-btn:hover,
.pricing-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(77,163,255,0.25);
}

/* Subtle glow */
.landing-btn-primary:hover,
.public-navbar-btn:hover,
.pricing-btn-primary:hover {
  filter: brightness(1.08);
}

/* Shine animation on hover */
.landing-btn-primary::after,
.landing-btn-secondary::after,
.public-navbar-btn::after,
.public-btn::after,
.pricing-btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  transition: 0.4s;
}

/* Move shine on hover */
.landing-btn-primary:hover::after,
.landing-btn-secondary:hover::after,
.public-navbar-btn:hover::after,
.public-btn:hover::after,
.pricing-btn-primary:hover::after {
  left: 120%;
}

/* ----------------------------------------------------
   CLICK RIPPLE EFFECT
---------------------------------------------------- */
@keyframes rippleEffect {
  0% {
    opacity: 0.6;
    transform: scale(0);
  }
  100% {
    opacity: 0;
    transform: scale(3.5);
  }
}

.landing-btn-primary:active::before,
.landing-btn-secondary:active::before,
.public-navbar-btn:active::before,
.public-btn:active::before,
.pricing-btn-primary:active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  background: rgba(77,163,255,0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: rippleEffect 0.6s ease forwards;
}

/* ----------------------------------------------------
   HERO MICRO-PARALLAX WRAPPER
---------------------------------------------------- */
.landing-hero {
  perspective: 1000px;
  position: relative;
  overflow: hidden;
}

.landing-hero {
  background-position: center;
  animation: heroParallax 16s ease-in-out infinite alternate;
}

@keyframes heroParallax {
  0% { background-position: 50% 50%; }
  100% { background-position: 52% 48%; }
}

.landing-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(77,163,255,0.22),
    rgba(255,255,255,0) 60%
  );
  animation: heroLight 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes heroLight {
  0% { transform: translate(0,0) scale(1);}
  100% { transform: translate(4%,3%) scale(1.06);}
}

.landing-content {
  position: relative;
  z-index: 5;
}

.landing-title::after {
  width: 120%;
  height: 70%;
  background: radial-gradient(
    circle,
    rgba(77,163,255,0.35) 0%,
    rgba(77,163,255,0) 75%
  );
  filter: blur(30px);
}

/* ----------------------------------------------------
   SCROLL REVEAL — Premium Stripe Style
---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(25px) scale(0.98);
  transition: opacity .8s ease, transform .8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --------------------------------------------
   ICON BREATHING ANIMATION (Ultra Professional)
--------------------------------------------- */
@keyframes iconBreathing {
  0%   { transform: scale(1); opacity: 0.95; }
  50%  { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); opacity: 0.95; }
}



/* --------------------------------------------
   ICON BREATHING — Premium Deep Breathing
   (accentuato, elegante, stile VisionOS)
--------------------------------------------- */

.why-icon,
.features-alt-icon {
  animation: iconBreathingStrong 3.8s ease-in-out infinite;
  transform-origin: center;
  transition: filter 0.4s ease, transform 0.4s ease;
}


@keyframes iconBreathingStrong {
  0%   { transform: scale(1);     opacity: 0.88; }
  50%  { transform: scale(1.10);  opacity: 1; }
  100% { transform: scale(1);     opacity: 0.88; }
}


/* MARITIME WAVE FLOAT — effetto barca che galleggia sulle onde */
@keyframes waveFloat {
  0%   { transform: translateY(0px) translateX(0px) rotate(0deg); }
  20%  { transform: translateY(-4px) translateX(2px) rotate(0.4deg); }
  40%  { transform: translateY(-2px) translateX(-2px) rotate(-0.3deg); }
  60%  { transform: translateY(-5px) translateX(1px) rotate(0.6deg); }
  80%  { transform: translateY(-2px) translateX(-1px) rotate(-0.4deg); }
  100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
}

.why-icon,
.features-alt-icon {
  animation: waveFloat 5.5s ease-in-out infinite;
  transform-origin: center;
  transition: 0.35s ease;
  opacity: 0.95;
}

.why-card,
.features-alt-card {
  animation: waveFloat 6.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 1) * 0.5s);
  /* Ogni card oscilla leggermente sfalsata → effetto naturale */
}


.why-card:hover,
.features-alt-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 18px 38px rgba(77,163,255,0.25);
}

.why-card:hover .why-icon,
.features-alt-card:hover .features-alt-icon {
  transform: translateY(-9px) scale(1.18) rotate(0deg);
  filter: drop-shadow(0 0 14px rgba(77,163,255,0.50));
}

section {
  position: relative;
  overflow: hidden;
}

section::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 70px;
  pointer-events: none;

  background: url("data:image/svg+xml,%3Csvg width='1440' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 Q360,0 720,50 T1440,50 V100 H0 Z' fill='%23ffffff'/%3E%3C/svg%3E")
             repeat-x;
  background-size: 1440px 100px;

  animation: waveSection 14s ease-in-out infinite;
}

@keyframes waveSection {
  0%   { transform: translateX(0px); }
  50%  { transform: translateX(-60px); }
  100% { transform: translateX(0px); }
}


.landing-btn-primary,
.landing-btn-secondary,
.public-navbar-btn,
.public-btn {
  animation: buoyFloat 4.8s ease-in-out infinite;
  transform-origin: center bottom;
}

.landing-btn-primary:hover,
.landing-btn-secondary:hover,
.public-navbar-btn:hover,
.public-btn:hover {
  transform: translateY(-6px) scale(1.02) rotate(0deg);
  box-shadow: 0 12px 28px rgba(77,163,255,0.35);
}

/* ======================================
   NEXT LEVEL OCEAN — 3 LAYERS OF REAL WAVES
====================================== */

.ocean-waves {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.wave-layer {
  position: absolute;
  width: 200%;
  height: 180px;
  left: -50%;
  opacity: 0.20;
  animation-timing-function: linear;
  background-repeat: repeat-x;
}

/* LAYER 1 – onda più grande */
.wave-layer.wave1 {
  bottom: 0;
  height: 180px;
  background-size: 1000px 180px;
  background-image: url("data:image/svg+xml,%3Csvg width='1000' height='180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 90 Q250 10 500 90 T1000 90 V180 H0 Z' fill='%234da3ff' fill-opacity='0.18'/%3E%3C/svg%3E");
  animation: waveMove1 18s infinite;
}

/* LAYER 2 – cresta più veloce */
.wave-layer.wave2 {
  bottom: 10px;
  height: 130px;
  opacity: 0.25;
  background-size: 900px 130px;
  background-image: url("data:image/svg+xml,%3Csvg width='900' height='130' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60 Q225 0 450 60 T900 60 V130 H0 Z' fill='%234da3ff' fill-opacity='0.22'/%3E%3C/svg%3E");
  animation: waveMove2 12s infinite;
}

/* LAYER 3 – piccole onde rapide */
.wave-layer.wave3 {
  bottom: 25px;
  height: 80px;
  opacity: 0.30;
  background-size: 700px 80px;
  background-image: url("data:image/svg+xml,%3Csvg width='700' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40 Q175 10 350 40 T700 40 V80 H0 Z' fill='%234da3ff' fill-opacity='0.28'/%3E%3C/svg%3E");
  animation: waveMove3 7s infinite;
}

/* ANIMAZIONI – movimenti indipendenti */
@keyframes waveMove1 {
  0%   { transform: translateX(0px); }
  100% { transform: translateX(-500px); }
}

@keyframes waveMove2 {
  0%   { transform: translateX(0px); }
  100% { transform: translateX(-650px); }
}

@keyframes waveMove3 {
  0%   { transform: translateX(0px); }
  100% { transform: translateX(-400px); }
}

/* ======================================
   SUPER VISIBLE OCEAN WAVES — FIXED
====================================== */

.ocean-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px; /* solo per l’hero */
  pointer-events: none;
  z-index: 1; /* sotto il testo ma sopra il background */
  overflow: hidden;
}

.wave-layer {
  position: absolute;
  width: 200%;
  left: -50%;
  bottom: 0;
  opacity: 0.55; /* molto più visibili */
  background-repeat: repeat-x;
}

/* ONDA GRANDE */
.wave1 {
  height: 160px;
  background-size: 900px 160px;
  background-image: url("data:image/svg+xml,%3Csvg width='900' height='160' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 80 Q225 10 450 80 T900 80 V160 H0 Z' fill='%234da3ff' fill-opacity='0.55'/%3E%3C/svg%3E");
  animation: wave1 14s linear infinite;
}

/* ONDA MEDIA */
.wave2 {
  height: 120px;
  opacity: 0.45;
  background-size: 700px 120px;
  background-image: url("data:image/svg+xml,%3Csvg width='700' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60 Q175 0 350 60 T700 60 V120 H0 Z' fill='%234da3ff' fill-opacity='0.45'/%3E%3C/svg%3E");
  animation: wave2 10s linear infinite;
}

/* ONDA PICCOLA */
.wave3 {
  height: 80px;
  opacity: 0.35;
  background-size: 500px 80px;
  background-image: url("data:image/svg+xml,%3Csvg width='500' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40 Q125 5 250 40 T500 40 V80 H0 Z' fill='%234da3ff' fill-opacity='0.35'/%3E%3C/svg%3E");
  animation: wave3 7s linear infinite;
}

/* Animazioni */
@keyframes wave1 {
  0% { transform: translateX(0); }
  100% { transform: translateX(-450px); }
}
@keyframes wave2 {
  0% { transform: translateX(0); }
  100% { transform: translateX(-350px); }
}
@keyframes wave3 {
  0% { transform: translateX(0); }
  100% { transform: translateX(-250px); }
}


/* ======================================
   BOTTOM / MIDDLE WAVES — Ocean Layers
====================================== */

.footer-waves {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: transparent;
  margin-top: -60px; /* sale sopra la sezione */
  z-index: 2;
}

/* Base wave layer */
.footer-wave {
  position: absolute;
  left: -50%;
  width: 200%;
  opacity: 0.5;
  bottom: 0;
  background-repeat: repeat-x;
}

/* WAVE SHAPES (SVG) */
.fw1 {
  height: 110px;
  background-size: 900px 110px;
  background-image: url("data:image/svg+xml,%3Csvg width='900' height='110' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 55 Q225 0 450 55 T900 55 V110 H0 Z' fill='%234da3ff' fill-opacity='0.55'/%3E%3C/svg%3E");
  animation: fw1Anim 12s linear infinite;
}

.fw2 {
  height: 80px;
  opacity: 0.35;
  background-size: 700px 80px;
  background-image: url("data:image/svg+xml,%3Csvg width='700' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40 Q175 5 350 40 T700 40 V80 H0 Z' fill='%234da3ff' fill-opacity='0.35'/%3E%3C/svg%3E");
  animation: fw2Anim 8s linear infinite reverse;
}

.fw3 {
  height: 60px;
  opacity: 0.28;
  background-size: 500px 60px;
  background-image: url("data:image/svg+xml,%3Csvg width='500' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q125 0 250 30 T500 30 V60 H0 Z' fill='%234da3ff' fill-opacity='0.28'/%3E%3C/svg%3E");
  animation: fw3Anim 5s linear infinite;
}

/* Animazioni */
@keyframes fw1Anim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-450px); }
}

@keyframes fw2Anim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-350px); }
}

@keyframes fw3Anim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-250px); }
}


@keyframes buoyFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.landing-btn-primary,
.landing-btn-secondary {
  animation: buoyFloat 5.2s ease-in-out infinite;
  animation-delay: 0.4s;
}


/* ----------------------------------------------------
   REGISTER PAGE — SOFT PREMIUM STYLE (VMS)
---------------------------------------------------- */

.register-wrapper {
  max-width: 520px;
  margin: 120px auto 60px auto;
}

.register-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  border: 1px solid #e5e8eb;
}

.register-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1d24;
  margin-bottom: 18px;
  text-align: center;
}

.register-card .form-label {
  font-weight: 600;
  color: #1a1d24;
}

.register-card .form-control {
  border-radius: 10px;
  border: 1px solid #d4d9df;
  padding: 10px 14px;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.register-card .form-control:focus {
  border-color: #4da3ff;
  box-shadow: 0 0 0 3px rgba(77,163,255,0.18);
}

/* Pretty submit button */
.register-btn {
  width: 100%;
  border: none;
  padding: 12px;
  background: linear-gradient(135deg, #4da3ff, #3c90e4);
  color: white;
  font-weight: 600;
  border-radius: 10px;
  transition: 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(77,163,255,0.35);
}

.register-btn:active {
  transform: translateY(1px);
}

/* Extra spacing for invite alert */
.register-card .alert {
  border-radius: 10px;
}


.register-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1d24;
  text-align: center;
}

.register-body {
  margin-top: 10px;
}

/* Maritime Corporate Enhancements */
.table-hover tbody tr:hover {
  background-color: #f1f5fa !important;
}

.badge.bg-danger {
  background-color: #c92a2a !important;
}

.badge.bg-success {
  background-color: #2b8a3e !important;
}

.card {
  border-radius: 12px !important;
}

.btn-outline-primary {
  border-color: #1b6ec2;
  color: #1b6ec2;
}

.btn-outline-primary:hover {
  background: #1b6ec2;
  color: white;
}

.btn-primary {
  background-color: #1b6ec2 !important;
  border: none !important;
}


/* ============================================
   PUBLIC NAVBAR
============================================ */

.public-navbar {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e6e8eb;
  padding: 0px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.public-navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.public-navbar-brand {
  display: flex;
  align-items: center;
  font-size: 20px;
  color: #1a1d24;
  text-decoration: none;
  font-weight: 700;
}

.public-navbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.public-navbar-link {
  color: #1a1d24;
  text-decoration: none;
  font-weight: 500;
  transition: 0.25s ease;
}

.public-navbar-link:hover {
  color: #4da3ff;
}

.public-navbar-btn {
  padding: 8px 18px;
  background: #4da3ff;
  color: white !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.25s ease;
}

.public-navbar-btn:hover {
  background: #3c90e4;
}

.public-btn {
  padding: 8px 18px;
  border: 2px solid #4da3ff;
  color: #4da3ff !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.25s ease;
}

.public-btn:hover {
  background: #4da3ff;
  color: white !important;
}


/* ===============================
   PUBLIC NAVBAR
================================ */

.public-navbar {
  width: 100%;
  background: #0b1220;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.public-navbar-inner {
  max-width: 2600px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.public-navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

/* Links (desktop) */
.public-navbar-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile toggle */
.public-navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 768px) {

  .public-navbar-toggle {
    display: block;
  }

  .public-navbar-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #0b1220;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    display: none;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .public-navbar-links.active {
    display: flex;
  }

  .public-navbar-btn,
  .public-btn {
    width: 100%;
    text-align: center;
  }
}
