/* 
  =========================================
  UP SLIP NODELY - STILE RIVIERA COASTAL
  Design System & Stili Generali
  =========================================
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
  /* Tavolozza Colori */
  --color-navy: #0F1E36;
  --color-navy-light: #1E2E4A;
  --color-teak: #B45309;
  --color-teak-dark: #78350F;
  --color-brass: #D97706;
  --color-brass-light: #F59E0B;
  --color-brass-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #92400E 100%);
  --color-sail: #F8FAFC;
  --color-sand: #F1F5F9;
  --color-shadow: rgba(15, 30, 54, 0.1);
  --color-glass: rgba(248, 250, 252, 0.85);

  /* Tipografia */
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Quicksand', sans-serif;

  /* Transizioni */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease-in-out;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-sail);
  color: var(--color-navy);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Texture Ponte in Teak Pregiato */
.teak-decking-texture {
  background: repeating-linear-gradient(
    90deg,
    #B45309,
    #B45309 48px,
    #8F3F06 48px,
    #78350F 50px
  );
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4), 
              0 8px 30px rgba(0, 0, 0, 0.15);
  position: relative;
}

.teak-decking-texture::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.15),
    rgba(0, 0, 0, 0.25)
  );
  pointer-events: none;
}

/* Layout & Struttura */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header & Navigazione */
header {
  background-color: var(--color-navy);
  color: var(--color-sail);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 2px solid var(--color-brass);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

header.scrolled {
  background-color: rgba(15, 30, 54, 0.95);
  backdrop-filter: blur(10px);
  padding: 5px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  transition: var(--transition-smooth);
}

.logo {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--color-sail);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--color-brass);
}

.logo-anchor {
  border: 2px solid var(--color-brass);
  padding: 4px 8px;
  border-radius: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-brass);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-brass-light);
}

/* Pulsante Menu Mobile */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-sail);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
  color: var(--color-brass);
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sail);
  text-align: center;
  overflow: hidden;
  margin-top: 80px;
}

.hero-video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(15, 30, 54, 0.7), rgba(15, 30, 54, 0.85)), url('https://images.unsplash.com/photo-1540555700478-4be289fbecef?q=80&w=1920') no-repeat center center/cover;
  z-index: -1;
  transform: scale(1.05);
  animation: zoom-slow 20s infinite alternate;
}

@keyframes zoom-slow {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-content {
  max-width: 800px;
  padding: 30px;
  z-index: 10;
  background: rgba(15, 30, 54, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 4px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* Pulsanti Premium */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 3px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-brass {
  background: var(--color-brass-gradient);
  color: var(--color-sail);
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
  border: 1px solid var(--color-brass);
}

.btn-brass:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.6);
  background: linear-gradient(135deg, #F59E0B 0%, #F59E0B 100%);
}

.btn-outline {
  background: transparent;
  color: var(--color-sail);
  border: 2px solid var(--color-sail);
}

.btn-outline:hover {
  background: var(--color-sail);
  color: var(--color-navy);
  transform: translateY(-3px);
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Sezioni */
.section {
  padding: 100px 0;
}

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

.section-title-wrapper {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-brass);
}

.section-subtitle {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  opacity: 0.8;
}

/* Griglia d'eccellenza */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.feature-card {
  background: white;
  border-radius: 4px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px var(--color-shadow);
  transition: var(--transition-smooth);
  border: 1px solid rgba(15, 30, 54, 0.05);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-brass-gradient);
  transform: scaleX(0);
  transition: var(--transition-smooth);
  transform-origin: left;
}

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

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(15, 30, 54, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--color-brass);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--color-navy);
}

.feature-card p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Vetrina Prodotti e Catalogo */
.products-filter-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--color-navy);
  background: transparent;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--color-navy);
  color: var(--color-sail);
}

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

.product-card {
  background: white;
  border: 1px solid rgba(15, 30, 54, 0.08);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 25px var(--color-shadow);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(15, 30, 54, 0.15);
}

.product-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #E2E8F0;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-brass-gradient);
  color: var(--color-sail);
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
}

.product-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-navy);
}

.product-desc {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 15px;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(15, 30, 54, 0.08);
  padding-top: 15px;
  margin-top: 10px;
}

.product-price {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-teak);
}

.product-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-navy);
  border-bottom: 2px solid var(--color-brass);
  padding-bottom: 2px;
}

.product-link:hover {
  color: var(--color-brass);
}

/* Recensioni & Testimonianze */
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 30px;
  border-radius: 4px;
  position: relative;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 25px;
  font-weight: 300;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-brass-gradient);
  border: 2px solid var(--color-brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--color-sail);
}

.author-info h4 {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.author-info p {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Modulo di Contatto e Mappa Harbor */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form-container {
  background: white;
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 10px 40px var(--color-shadow);
  border: 1px solid rgba(15, 30, 54, 0.05);
}

/* Campi modulo con etichetta fluttuante */
.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-input {
  width: 100%;
  padding: 16px 12px 6px 12px;
  border: none;
  border-bottom: 2px solid rgba(15, 30, 54, 0.2);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-navy);
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-bottom-color: var(--color-brass);
}

.form-label {
  position: absolute;
  left: 12px;
  top: 14px;
  font-size: 1rem;
  color: rgba(15, 30, 54, 0.6);
  pointer-events: none;
  transition: var(--transition-fast);
}

/* Effetto galleggiante sull'etichetta */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -6px;
  left: 12px;
  font-size: 0.8rem;
  color: var(--color-brass);
  font-weight: 600;
}

textarea.form-input {
  height: 120px;
  resize: none;
}

.map-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-card {
  height: 100%;
  min-height: 350px;
  background: #E2E8F0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  border: 4px solid var(--color-navy);
  box-shadow: 0 8px 30px var(--color-shadow);
}

/* Yacht Harbor Custom Map Style CSS Mock */
.harbor-map-mock {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #C5E1A5; /* Land color */
  background-image: radial-gradient(circle at 100% 50%, #81D4FA 40%, #0288D1 45%, transparent 46%);
}

.harbor-map-water {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-color: #0F1E36; /* Navy Sea */
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05) 10px, transparent 10px, transparent 20px);
}

.harbor-map-land {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background-color: #F1F5F9;
  border-right: 4px dashed var(--color-brass);
}

.map-marker {
  position: absolute;
  top: 45%;
  left: 36%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
}

.marker-pin {
  width: 32px;
  height: 32px;
  background: var(--color-brass-gradient);
  border: 3px solid var(--color-sail);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  margin: 0 auto;
}

.marker-label {
  background: var(--color-navy);
  color: var(--color-sail);
  padding: 4px 8px;
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 3px;
  margin-top: 5px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.harbor-info-box {
  background: var(--color-navy);
  color: var(--color-sail);
  padding: 25px;
  border-radius: 4px;
  border-left: 5px solid var(--color-brass);
}

.harbor-info-box h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-brass);
}

.harbor-info-box p {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

/* Pagine Informative e Legali */
.legal-container {
  max-width: 800px;
  margin: 140px auto 100px auto;
  padding: 0 20px;
}

.legal-container h1 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: var(--color-navy);
  border-bottom: 2px solid var(--color-brass);
  padding-bottom: 15px;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 30px 0 15px 0;
  color: var(--color-navy);
}

.legal-content p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  opacity: 0.85;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 20px;
  margin-left: 20px;
  font-size: 0.95rem;
  opacity: 0.85;
}

.legal-content li {
  margin-bottom: 8px;
}

.consent-id-container {
  background: var(--color-sand);
  border: 1px solid rgba(15, 30, 54, 0.1);
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
  font-family: monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

/* Footer Premium */
footer {
  background-color: var(--color-navy);
  color: var(--color-sail);
  padding: 80px 0 30px 0;
  border-top: 5px solid var(--color-brass);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.footer-brand h3 span {
  color: var(--color-brass);
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-links-col h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--color-brass);
}

.footer-links-col ul {
  list-style: none;
}

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

.footer-links-col a {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-links-col a:hover {
  opacity: 1;
  color: var(--color-brass-light);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(248, 250, 252, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 15px;
}

/* Banner Cookie GDPR */
.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: var(--color-glass);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(219, 144, 34, 0.3);
  box-shadow: 0 10px 30px rgba(15, 30, 54, 0.25);
  border-radius: 4px;
  padding: 25px;
  z-index: 2000;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-navy);
}

.cookie-text a {
  color: var(--color-brass);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-btn-group {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 8px 16px;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.cookie-accept {
  background: var(--color-brass-gradient);
  color: var(--color-sail);
}

.cookie-accept:hover {
  background: var(--color-brass-light);
}

.cookie-decline {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid rgba(15, 30, 54, 0.2);
}

.cookie-decline:hover {
  background: rgba(15, 30, 54, 0.05);
}

/* Animazioni Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: var(--transition-smooth);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

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