/* ============================================
   CANTIERE NAUTICO GARAVAGLIA - Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --navy:        #0A1628;
  --navy-light:  #1B2A4A;
  --navy-mid:    #132238;
  --white:       #FFFFFF;
  --off-white:   #F5F5F0;
  --gold:        #C9A84C;
  --gold-light:  #D4B86A;
  --gold-dark:   #A8893D;
  --sea-blue:    #2E86AB;
  --sea-light:   #3A9BC5;
  --text-dark:   #1A1A2E;
  --text-light:  #6B7280;
  --text-muted:  #9CA3AF;
  --border:      #E5E7EB;
  --shadow:      0 4px 24px rgba(10, 22, 40, 0.12);
  --shadow-lg:   0 12px 48px rgba(10, 22, 40, 0.18);
  --radius:      8px;
  --radius-lg:   16px;
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Utility Bar --- */
.utility-bar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.utility-bar a {
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.utility-bar a:hover {
  color: var(--gold-light);
}

.utility-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* --- Header / Navigation --- */
.header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-menu a {
  color: rgba(255,255,255,0.8);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

/* --- Hero Slider --- */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
  background: var(--navy);
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.85) 0%,
    rgba(10, 22, 40, 0.5) 50%,
    rgba(10, 22, 40, 0.3) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  left: 0;
  right: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 700px;
  margin-bottom: 20px;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 550px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Slider indicators */
.hero-indicators {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-indicators button {
  width: 40px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition);
}

.hero-indicators button.active {
  background: var(--gold);
  width: 60px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* --- Section Styles --- */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-light {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.6);
}

/* --- About Preview --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy-light), var(--sea-blue));
}

.about-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 4rem;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: 30px;
  background: var(--gold);
  color: var(--navy);
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.experience-badge .number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.experience-badge .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-content h2 em {
  color: var(--gold);
  font-style: normal;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.stat-item .stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
}

.stat-item .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.2);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--gold);
}

.service-card h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--white);
}

.service-card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- Brands Bar --- */
.brands-section {
  padding: 60px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.brands-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.brand-item {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.5;
  transition: var(--transition);
  letter-spacing: 1px;
  cursor: default;
}

.brand-item:hover {
  opacity: 1;
  color: var(--navy);
}

/* --- Featured Boats --- */
.boats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.boat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.boat-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy-light), var(--sea-blue));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 3rem;
  overflow: hidden;
}

.boat-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.boat-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.boat-info {
  padding: 24px;
}

.boat-info h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy);
}

.boat-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.boat-spec {
  font-size: 0.82rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.boat-spec strong {
  color: var(--text-dark);
  font-weight: 600;
}

.boat-card .btn {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 0.85rem;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-contacts {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.05rem;
}

.cta-contact-item .icon {
  width: 40px;
  height: 40px;
  background: rgba(201,168,76,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--navy);
}

.footer h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  align-items: flex-start;
}

.footer-contact-item .icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
  color: var(--gold);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 20px 24px;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: 0.88rem;
  flex: 1;
  min-width: 280px;
}

.cookie-inner a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
}

/* --- Page Banner --- */
.page-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 120px 0 60px;
  text-align: center;
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.page-banner p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
}

/* --- Scroll to top --- */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 998;
  box-shadow: var(--shadow);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--gold);
  color: var(--navy);
}

/* =============================
   RESPONSIVE
   ============================= */

@media (max-width: 1024px) {
  .about-preview { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .boats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .utility-bar { display: none; }

  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 32px 24px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu a {
    font-size: 1.1rem;
    padding: 14px 16px;
    width: 100%;
  }

  .hero { height: 70vh; min-height: 450px; }
  .hero h1 { font-size: 2rem; }

  .services-grid { grid-template-columns: 1fr; }
  .boats-grid { grid-template-columns: 1fr; }

  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stat-item .stat-number { font-size: 1.5rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-contacts { flex-direction: column; align-items: center; }

  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .brands-grid { gap: 30px; }
  .brand-item { font-size: 1rem; }
  .about-stats { grid-template-columns: 1fr; text-align: center; }
}

/* --- Loading animation for page --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
