﻿/* ═══════════════════════════════════════════════════════════════
   Baia del Conte – style.enhance.css
   Aggiunge sopra style.min.css — non modifica la logica PHP
   ═══════════════════════════════════════════════════════════════ */

/* ─── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Lato:wght@300;400;700&display=swap');

/* ─── TOKENS ────────────────────────────────────────────────── */
:root {
  --gold: #c8a96a;
  --gold-lt: #dfc08e;
  --gold-dk: #a8864a;
  --sea: #1e5f72;
  --sea-lt: #2e8fa8;
  --dusk: #1a2a35;
  --cream: #f7f3ec;
  --sand: #ede5d0;
  --text: #2a3830;
  --muted: #6a7a72;
  --white: #ffffff;
  --radius-sm: 4px;
  --radius-md: 10px;
  --shadow-sm: 0 2px 16px rgba(26, 42, 53, .08);
  --shadow-md: 0 8px 40px rgba(26, 42, 53, .13);
  --shadow-lg: 0 20px 60px rgba(26, 42, 53, .18);
  --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

/* ─── BACKGROUND SLIDESHOW ──────────────────────────────────── */
.body-bg-slide {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease;
  will-change: opacity;
}

.body-bg-active {
  opacity: 1;
}

/* ─── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 4vw;
  background: transparent;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled,
.navbar.solid {
  background: rgba(26, 42, 53, .96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.8rem 4vw !important;
  box-shadow: 0 2px 30px rgba(0, 0, 0, .2);
}

/* Logo */
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.navbar .logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.navbar .logo-text::after {
  content: 'Porto Cesareo · Salento';
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  margin-top: 2px;
}

/* Nav links */
/* Nav links */
@media (min-width: 769px) {
  .navbar .menu {
    display: flex;
    align-items: center;
    gap: 0.2rem;
  }

  .navbar .menu>a,
  .navbar .menu .dropbtn {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
  }

  .navbar .menu>a:hover,
  .navbar .menu .dropbtn:hover,
  .navbar .menu .dropdown:hover .dropbtn {
    color: var(--gold-lt);
    background: rgba(255, 255, 255, .06);
  }

  /* Dropdown */
  .navbar .dropdown {
    position: relative;
  }

  .navbar .dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    background: rgba(26, 42, 53, .97);
    border-top: 2px solid var(--gold);
    padding: 0.5rem 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition);
    box-shadow: var(--shadow-md);
  }

  .navbar .dropdown-content-right {
    left: auto;
    right: 0;
  }

  .navbar .dropdown:hover .dropdown-content {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  .navbar .dropdown-content a {
    display: block;
    padding: 0.55rem 1.3rem;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, .72);
    transition: color var(--transition), padding-left var(--transition);
    text-decoration: none;
  }

  .navbar .dropdown-content a:hover {
    color: var(--gold-lt);
    padding-left: 1.7rem;
  }

  /* Submenu */
  .navbar .dropdown-submenu {
    position: relative;
  }

  .navbar .dropdown-submenu-content {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 190px;
    background: rgba(26, 42, 53, .97);
    border-top: 2px solid var(--gold-dk);
    padding: 0.5rem 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-6px);
    transition: opacity var(--transition), transform var(--transition);
    box-shadow: var(--shadow-md);
  }

  .navbar .dropdown-submenu:hover .dropdown-submenu-content {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
  }
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block !important;
  }

  .navbar .menu,
  #nav-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(26, 42, 53, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2.5rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--gold);
    z-index: 999;
  }

  .navbar .menu.active,
  #nav-menu.active {
    display: flex !important;
    animation: slideDownMobile 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  }

  @keyframes slideDownMobile {
    from {
      opacity: 0;
      transform: translateY(-15px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .navbar .menu a {
    color: #fff;
    padding: 1.2rem 2.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navbar .menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold-lt);
  }

  /* Show dropdowns on mobile when active */
  .navbar .dropdown-content,
  .navbar .dropdown-submenu-content {
    display: none;
    position: static;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .navbar .dropdown.active>.dropdown-content,
  .navbar .dropdown-submenu.active>.dropdown-submenu-content {
    display: block !important;
  }

  .navbar .dropdown-content a {
    padding-left: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }

  .navbar .dropdown-submenu-content a {
    padding-left: 4.5rem;
  }
}

/* Hamburger Base */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  transition: color var(--transition);
  z-index: 1001;
}

.menu-toggle:hover {
  color: var(--gold);
}


/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 5vw 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
      rgba(10, 22, 32, .55) 0%,
      rgba(10, 22, 32, .35) 50%,
      rgba(10, 22, 32, .6) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  animation: heroFadeUp 1.1s ease both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Location card (hero box) */
.location-card {
  background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 3rem 3.5rem;
  max-width: 700px;
  width: 100%;
}

.location-card .hero-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  margin: 0 auto 1.6rem;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .3));
}

.location-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: #fff !important;
  margin-bottom: 0.7rem;
  line-height: 1.15;
}

.location-card h3 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: #fff !important;
  margin-bottom: 1.4rem !important;
  line-height: 1.5 !important;
}

.location-card p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: #fff !important;
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* CTA buttons in hero */
.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Scroll hint */
.hero::after {
  content: '';
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}