
/* === BODY & GENERALE === */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #1D1D1D;
  color: white;
  margin: 0;
  padding: 0;
}

/* === HERO SECTION === */
.hero {
  height: 100vh;
  background: url('/images/header.jpg') no-repeat center center/cover;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* === TESTO HERO === */
.scroll-down {
  margin-top: 20px;
  font-size: 1rem;
  color: #ccc;
}

/* === INTRO SECTION === */
.intro {
  background-color: #314A30;
  padding: 4rem 0;
}

/* === FOOTER === */
footer p {
  margin: 0;
}


.custom-footer {
  background: rgba(29, 29, 29, 0.95);
  backdrop-filter: blur(12px);
  color: white;
  font-family: 'Poppins', sans-serif;
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.footer-col h4 {
  font-family: 'Lexend Giga', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: #fff;
}

.footer-col p,
.footer-col li {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links li a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-logo {
  width: 90px;
  height: auto;

  filter: brightness(0) invert(1); /* trasforma un logo scuro in bianco */
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-col {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.footer-col:nth-child(1) {
  animation-delay: 0.2s;
}
.footer-col:nth-child(2) {
  animation-delay: 0.4s;
}
.footer-col:nth-child(3) {
  animation-delay: 0.6s;
}

.footer-logo:hover {
  transform: translateY(-3px) scale(1.05);
  transition: transform 0.4s ease;
}

.footer-links li a:hover {
  color: #fff;
  text-decoration: underline;
  animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}



/* === NAVBAR FISSA CON BLUR === */
.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  z-index: 999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(18, 18, 18, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

/* === SPACER SOTTO LA NAVBAR === */
.navbar-spacer {
  height: 80px;
}

/* === NAVBAR TOGGLER (sempre visibile) === */
.navbar-toggler {
  display: block !important;
  border: none;
  outline: none;
  background: none;
}

/* === MENU FULLSCREEN CON BLUR === */
.navbar-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow-y: auto; /* per lo scroll */
  padding: 2rem 1rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95); 
  transition: opacity 0.5s ease, transform 0.4s ease;
  scroll-behavior: smooth; /* optional */
}

.navbar-menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* === CHIUDI MENU (X) === */
.btn-close-menu {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1100;
}

.btn-close-menu:hover {
  transform: rotate(90deg);
}

/* === MENU GRID === */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  justify-items: center;
}

/* === VOCI === */
.menu-section {
  max-width: 380px;
  text-align: center;
}

.menu-section h3 {
  font-family: 'Lexend Giga', sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid white;
  display: inline-block;
  color: white;
  letter-spacing: 0.05em;
}

.menu-section p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0 auto;
}

/* === CTA: Bottone Prenota === */
.menu-cta {
  margin-top: 2rem;
  padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 5rem); /* spazio extra */
  text-align: center;
}

.menu-cta .btn {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

/* === DESKTOP: 2 COLONNE CENTRATE === */
@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 4rem;
  }

  .menu-cta {
    grid-column: span 2;
  }
}


/* HERO VIDEO HOMEPAGE */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: white;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  padding: 3rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 1rem;
  backdrop-filter: blur(5px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  color: white;
}

/* HERO TEXT */
#hero-text {
  margin-bottom: 1rem;
  font-family: 'Lexend Giga', sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

#nav-title {
  font-family: "Lexend Giga", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 1.5rem;
}




/* Servizi Section */
.servizi-scroll {
  background-color: #8A7D7B;
  overflow: hidden;
}

.scroll-points {
  background-color: #8A7D7B;
  overflow: hidden;
}

.scroll-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.scroll-track {
  display: flex;
  animation: scroll-snap 100s linear infinite;
  gap: 4rem;
}

.scroll-item {
  min-width: 300px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Animazione a scatti */
@keyframes scroll-snap {
  0% { transform: translateX(0); }
  10% { transform: translateX(-300px); }
  20% { transform: translateX(-600px); }
  30% { transform: translateX(-900px); }
  40% { transform: translateX(-1200px); }
  50% { transform: translateX(-1500px); }
  60% { transform: translateX(-1800px); }
  70% { transform: translateX(-2100px); }
  80% { transform: translateX(-2400px); }
  90% { transform: translateX(-2700px); }
  100% { transform: translateX(-3000px); }
}

/* homepage INTRO SECTION */

.intro-glass {
  min-height: 100vh;
  background: url('/images/bg-water.jpg') center center/cover no-repeat;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2rem;
  padding: 3rem;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  animation: glass-pop 0.8s ease forwards;
}

.image-wrapper img {
  border-radius: 1rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}

.intro-title {
  font-family: 'Lexend Giga', sans-serif;
  text-transform: uppercase;
  font-size: 2.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s ease forwards;
}

.intro-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards 0.4s;
}

.btn-outline-light {
  border: 1px solid white;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: white;
  color: #000;
}

/* Animazioni */
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes glass-pop {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Video full background */
.video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.5;
}

/* Overlay effetto vetro */
.glass-overlay {
  position: relative;
  z-index: 1;
  backdrop-filter: blur(20px);
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 2rem;
  padding: 4rem 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  color: white;
  overflow: hidden;
}

/* Animazione: inizialmente invisibili */
.animate-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Classi con delay */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

/* Appare solo quando visibile */
.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* FINE homepage INTRO SECTION */



/* CHI SIAMO HOMEPAGE*/
.chi-siamo-section {
  position: relative; /* ✅ Aggiungi questa riga */
  background-color: #f6f0e9;
  min-width: 200px;
  padding: 6rem 2rem;
  font-family: 'Poppins', sans-serif;
  overflow: hidden; /* (facoltativo) per tagliare overflow del video */
}

.chi-siamo-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.chi-siamo-text {
  flex: 1;
  min-width: 300px;
 background: rgba(255, 255, 255, 0.15); /* più visibile */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.chi-siamo-text h2 {
  font-family: 'Lexend Giga', sans-serif;
  text-transform: uppercase;
  font-size: 2rem;
  color: #0a3d3d;
  margin-bottom: 1rem;
}

.chi-siamo-text p {
  font-size: 1rem;
  color: #7e706a;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.btn-storia {
  padding: 0.75rem 1.5rem;
  border: 1px solid #0a3d3d;
  background: transparent;
  color: #0a3d3d;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-storia:hover {
  background-color: #0a3d3d;
  color: #fff;
}

/* === GALLERY === */
.chi-siamo-gallery {
  flex: 1;
  overflow: hidden;
  max-width: 500px;
  border-radius: 1rem;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  animation: scrollImages 20s linear infinite;
}

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

.gallery-track img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 1rem;
  object-fit: cover;
}



/* RESPONSIVE */
@media (max-width: 768px) {
  .chi-siamo-container {
    flex-direction: column;
  }

  .chi-siamo-gallery {
    max-width: 100%;
  }
}

.chi-siamo-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.chi-siamo-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  pointer-events: none;
}



/* === FLOTTA SECTION (Barca) === */
.flotta-section {
  position: relative;
  min-width: 800px;
  padding: 6rem 2rem;
  background-color: #eaf4f4; /* più fresco, differente dagli add-ons */
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  z-index: 1;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150%;
  background-image: url('/images/boat.jpg'); /* sostituibile con altro background */
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
}

.flotta-container {
  position: relative;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  z-index: 1;
}

.flotta-content {
  flex: 1;
  min-width: 280px;
}

.flotta-content h2 {
  font-family: 'Lexend Giga', sans-serif;
  text-transform: uppercase;
  font-size: 2rem;
  color: #0a3d3d;
  margin-bottom: 1rem;
}

.flotta-content p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.flotta-info {
  list-style: none;
  padding: 0;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.8;
}

.flotta-info li {
  margin-bottom: 0.5rem;
}

.flotta-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.flotta-image img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

/* === Animazioni === */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-fade-up.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.3s;
}

/* === Responsive === */
@media (max-width: 768px) {
  .flotta-container {
    flex-direction: column;
    text-align: center;
  }

  .flotta-info {
    text-align: left;
    margin: 0 auto;
    max-width: 300px;
  }
}






/* === ADD-ONS SECTION === */
.addons-section {
  padding: 6rem 2rem;
  background: #f6f0e9;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

.addons-title {
  font-family: 'Lexend Giga', sans-serif;
  text-transform: uppercase;
  font-size: 2rem;
  color: #0a3d3d;
  margin-bottom: 0.5rem;
}

.addons-subtitle {
  color: #5f5f5f;
  font-size: 1rem;
  margin-bottom: 3rem;
}

.addons-carousel-wrapper {
  width: 100vw;
  overflow: hidden;
  padding: 0 8vw; /* margine simmetrico */
  position: relative;
  
}

.addons-carousel {
  display: flex;
  gap: 2rem;
  width: calc(280px * 10 + 2rem * 9); /* 5 card x 2 cicli + gap */
  padding: 0 8vw; /* padding laterale bilanciato */
  animation: scrollAddons 30s linear infinite;
}

.addon-spacer {
  flex: 0 0 1rem; /* spazio fittizio, regola la misura come ti serve */
}

.addons-carousel:hover {
  animation-play-state: paused;
}

@keyframes scrollAddons {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.addons-carousel::before,
.addons-carousel::after {
  content: "";
  flex: 0 0 8vw; /* bilancia i margini */
}

.addon-card {
  flex: 0 0 280px;
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.addons-carousel-wrapper:hover .addons-carousel {
  animation-play-state: paused;
}

.addon-card:hover {
  transform: scale(1.05);
  z-index: 10;
}

@media (max-width: 768px) {
  .addons-carousel-wrapper {
    padding: 2rem 5vw;
  }
}

.addon-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.addon-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0a3d3d;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.addon-card p {
  font-size: 0.95rem;
  color: #666;
}

/* Call-to-action */
.addons-cta {
  margin-top: 3rem;
}

.btn-scopri-tutti {
  padding: 0.8rem 2rem;
  border: 1px solid #0a3d3d;
  background: transparent;
  color: #0a3d3d;
  font-weight: 500;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-scopri-tutti:hover {
  background-color: #0a3d3d;
  color: #fff;
}