/* =========================
   RESET BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #0e1f28; /* BLU NAVY */
  color: #f2f2f2;
  line-height: 1.6;
}


a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================
   HEADER
========================= */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background-color: transparent !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 1000;
}

.main-header nav a {
  margin-left: 25px;
  font-weight: 500;
  opacity: 0.85;
}

.main-header nav a:hover {
  opacity: 1;
}
.main-header nav a {
  position: relative;
  margin-left: 25px;
  font-weight: 500;
  opacity: 0.9;
}

.main-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.main-header nav a:hover::after {
  width: 100%;
}
.header-box {
  margin: 40px 0;
  padding: 30px;
  border: 2px solid rgba(255,255,255,0.4);
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  text-align: center;
  letter-spacing: 0.5px;
}

/* =========================
   SEZIONI GENERALI
========================= */
section {
  padding: 120px 0;
}

h1, h2, h3 {
  font-weight: 700;
}

h2 {
  font-size: 36px;
  margin-bottom: 30px;
}

p {
  max-width: 700px;
  margin-bottom: 20px;
  color: #d0d0d0;
}
section:first-of-type {
  padding-top: calc(120px + 80px);
}

/* =========================
   HERO
========================= */
.hero {
  min-height: calc(100vh - 80px);
  background: url("img/hero.png") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}


.hero-content p {
  font-size: 20px;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.hero-content h1 {
  line-height: 1.1;
}

.hero-content p {
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.95;
}

.btn {
  padding: 14px 28px;
  background-color: #ffffff;
  color: #111;
  font-weight: 600;
  border-radius: 30px;
  display: inline-block;
}

.btn:hover {
  opacity: 0.9;
}

/* =========================
   VIDEO
========================= */
.video-custom {
  background-color: #0e1f28;

}

.video-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.video-preview {
  position: relative;
  cursor: pointer;
}

.video-preview img {
  border-radius: 12px;
}

.play-button {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 60px;
  background-color: rgba(0,0,0,0.35);
  border-radius: 12px;
}

.video-text h2 {
  color: #ffffff;
}

.video-cta {
  margin-top: 60px;
  text-align: center;
}

/* =========================
   ABOUT
========================= */
.about-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-claim {
  margin-top: 30px;
  font-weight: 600;
  color: #ffffff;
}
.about {
  background-color: #0e1f28;
}
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-images img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.about-gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 30px;
}

.about-gallery img {
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.about-gallery img:hover {
  opacity: 1;
  transform: scale(1.03);
}
.about-images img,
.about-gallery img,
.boat-gallery img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-images img:hover,
.about-gallery img:hover,
.boat-gallery img:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.45);
}
.about-frames {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5cm, 1fr));
  gap: 30px;
}


.about-frame {
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
}


.about-frame img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

/* =========================
   PROJECT
========================= */
.project {
  background-color: #ffffff;
  color: #111;
}

.project p {
  color: #333;
}

.project-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   CHARTER
========================= */
.section-charter {
  background-color: #0e1f28;
}

.charter-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.charter-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.charter-note {
  margin-top: 30px;
  font-style: italic;
  opacity: 0.8;
}
section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   EVENTI
========================= */
#eventi {
  background-color: #0e1f28;
  color: #white;
  text-align: center;
}

#eventi p {
  margin: 0 auto;
  color: #white;
}

/* =========================
   FOOTER
========================= */
footer {
  background-color: #0e1f28;
  padding: 60px 20px;
  text-align: center;
}

.footer-social {
  margin-top: 20px;
}

.footer-social a {
  margin: 0 10px;
  font-size: 22px;
}

.footer-copy {
  margin-top: 30px;
  font-size: 14px;
  opacity: 0.6;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .video-inner,
  .about-container,
  .charter-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 36px;
  }
}
/* PROGETTI */
.projects {
  padding: 120px 80px;
}

.projects h2 {
  font-size: 2.4rem;
  margin-bottom: 60px;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.project-card {
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  transition: transform 0.3s ease, border 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.5);
}

.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.project-card p {
  opacity: 0.9;
}

/* CHARTER */
.charter {
  padding: 140px 80px;
  background: linear-gradient(
    to bottom,
    #0e1f28 0%,
    #102a36 100%
  );
}

.charter-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.charter h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.charter-intro {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.charter-list {
  list-style: none;
  margin-bottom: 50px;
}

.charter-list li {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.charter-btn {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s ease, color 0.3s ease;
}

.charter-btn:hover {
  background: #ffffff;
  color: #0e1f28;
}.charter-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

.charter-logo {
  background-color: #0e1f28; /* blu navy */
  padding: 30px;
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.charter-logo img {
  width: 8cm;
  height: 8cm;
  object-fit: contain;
}
.target-barca {
  text-align: center;
  margin: 50px auto;
}

.target-barca ul {
  list-style-position: inside;
  padding: 0;
}
.target-barca-center {
  max-width: 700px;
  margin: 60px auto;
  text-align: center;
}

.target-barca-center ul {
  list-style-position: inside;
  padding: 0;
}


/* MOBILE */
@media (max-width: 900px) {
  .charter-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .charter-logo {
    margin-top: 40px;
  }
}


.calendar-wrapper {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.calendar-wrapper iframe {
  width: 100%;
  height: 600px;
  background: #fff;
}
.boat-gallery {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.boat-gallery img {
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

}
.not-for {
  background-color: #0e1f28;
  padding: 140px 20px;
}

.not-for-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.not-for h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
}

.not-for p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.not-for-claim {
  margin-top: 40px;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 1;
}

/* CONTATTI */
.contact {
  padding: 140px 80px;
  background-color: #0e1f28;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  font-size: 2.4rem;
  margin-bottom: 30px;
}

.contact-text {
  font-size: 1.15rem;
  margin-bottom: 60px;
  opacity: 0.95;
}

.contact-box {
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  padding: 40px;
}

.contact-box p {
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.contact-box a {
  color: #ffffff;
  text-decoration: underline;
}

.contact-note {
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.7;
  font-style: italic;
}
/* ===== GALLERIA MINIATURE ===== */
.boat-gallery {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.boat-gallery img {
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.boat-gallery img:hover {
  transform: scale(1.05);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox-content {
  position: relative;
  background-color: #0e1f28;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

/* IMMAGINE */
.lightbox-content img {
  width: 10cm;
  max-width: 90vw;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* CHIUSURA */
.lightbox .close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  color: #ffffff;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.lightbox .close:hover {
  opacity: 1;
}

/* FRECCE */
.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.lightbox .nav:hover {
  opacity: 1;
}

.lightbox .prev {
  left: -50px;
}

.lightbox .next {
  right: -50px;
}

/* MOBILE */
@media (max-width: 600px) {
  .lightbox-content img {
    width: 90vw;
  }

  .lightbox .prev {
    left: 5px;
  }

  .lightbox .next {
    right: 5px;
  }
}

/* MOBILE */
@media (max-width: 900px) {
  .boat-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .boat-gallery img {
    height: 130px;
  }
}
.about-gallery {
  grid-template-columns: 1fr;
}

.about-gallery img {
  height: 220px;
}
@media (max-width: 768px) {
  .about-frame img {
    height: 180px;
  }
}

/* === FIX VISIVO GALLERIA === */
.section-charter {
  background-color: #0e1f28;
}

.boat-gallery {
  margin-top: 60px;
  padding: 20px;
  background-color: transparent;
}

.boat-gallery img {
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
  transition: transform 0.3s ease;
}
.section-divider {
  width: 80%;
  max-width: 1000px;
  height: 1px;
  margin: 70px auto;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
}
.charter-box {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}

.charter-box h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

.charter-description {
  text-align: center;
  margin-bottom: 40px;
  opacity: 0.9;
}

.charter-included,
.charter-excluded {
  margin-bottom: 30px;
}

.charter-included h4,
.charter-excluded h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.charter-box ul {
  list-style: none;
  padding-left: 0;
}

.charter-box li {
  margin-bottom: 10px;
  opacity: 0.9;
}
.charter-cta {
  margin-top: 60px;
  text-align: center;
}

.charter-cta p {
  margin-bottom: 30px;
  font-size: 1.05rem;
  opacity: 0.9;
}
.boat-profile {
  margin: 60px auto;
  max-width: 700px;
  text-align: center;
}

.boat-profile h3 {
  margin-bottom: 25px;
  font-size: 1.6rem;
}

.boat-profile-list {
  list-style: none;
  padding: 0;
}

.boat-profile-list li {
  margin-bottom: 14px;
  font-size: 1.05rem;
  opacity: 0.95;
}
.boat-description {
  max-width: 900px;
  margin: 80px auto;
  text-align: center;
}

.boat-description h2 {
  margin-bottom: 30px;
}

.boat-description p {
  margin-bottom: 20px;
  opacity: 0.95;
}
/* ===== MOBILE REFINEMENT ===== */
@media (max-width: 768px) {

  header.main-header {
    padding: 0 20px;
  }

  header.main-header nav a {
    margin-left: 15px;
    font-size: 14px;
  }

  section {
    padding: 90px 20px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  p {
    font-size: 16px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .charter {
    padding: 100px 20px;
  }

  .charter h2 {
    font-size: 30px;
  }

  .contact {
    padding: 100px 20px;
  }
}
.final-cta {
  background: linear-gradient(
    to bottom,
    #0e1f28 0%,
    #102a36 100%
  );
  padding: 140px 20px;
  text-align: center;
}

.final-cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.final-cta p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  opacity: 0.95;
}

.final-cta-claim {
  font-weight: 600;
  letter-spacing: 0.5px;
}
a:focus,
button:focus {
  outline: 2px dashed #ffffff;
  outline-offset: 4px;
}
