/* ===== VARIABILI CSS ===== */
:root {
  --primary-color: #2980b9;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --white: #ffffff;
  --gray-light: #bdc3c7;
  --gray-dark: #7f8c8d;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-ocean: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-light: 0 2px 15px rgba(0,0,0,0.1);
  --shadow-medium: 0 5px 25px rgba(0,0,0,0.15);
  --shadow-heavy: 0 10px 40px rgba(0,0,0,0.2);
  --border-radius: 10px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white);
  overflow-x: hidden;
}

/* ===== HEADER ===== */
#header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  z-index: 997;
}

#header.header-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-medium);
}

.logo h1 a {
  text-decoration: none;
}

.logo img {
  max-height: 60px;
  transition: var(--transition);
}

.code-box {
  background: var(--gradient-primary);
  padding: 8px 15px;
  border-radius: 25px;
  box-shadow: var(--shadow-light);
}

.code-text {
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===== NAVIGAZIONE ===== */
.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
  margin: 0 10px;
}

.navbar a, .navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-color);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
  color: var(--primary-color);
}

.navbar a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.navbar a:hover::after, .navbar .active::after {
  width: 100%;
}

.book-button {
  background: var(--gradient-primary) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 25px !important;
  margin-left: 15px;
  box-shadow: var(--shadow-light);
  transform: translateY(0);
}

.book-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* ===== HERO SECTION ===== */
#hero {
  width: 100%;
  height: 100vh;
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
}

#hero::before {
  content: "";
  background: rgba(0, 0, 0, 0.3);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

#hero .container {
  position: relative;
  z-index: 2;
}

#hero h1 {
  margin: 0 0 20px 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#hero h2 {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  font-size: 20px;
  font-weight: 300;
}

.btn-get-started, .btn-book {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 25px;
  transition: var(--transition);
  margin: 10px;
  text-decoration: none;
  box-shadow: var(--shadow-light);
  transform: translateY(0);
}

.btn-get-started {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.btn-book {
  background: var(--accent-color);
  color: var(--white);
  border: 2px solid var(--accent-color);
}

.btn-get-started:hover, .btn-book:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

.btn-get-started:hover {
  background: var(--white);
  color: var(--primary-color);
}

.btn-book:hover {
  background: transparent;
  color: var(--white);
}

.hero-img img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  transition: var(--transition);
}

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

/* ===== SECTIONS GENERALI ===== */
.section-title {
  text-align: center;
  padding-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark-color);
  position: relative;
  margin-bottom: 20px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  bottom: -10px;
  left: calc(50% - 40px);
  border-radius: 2px;
}

.section-title p {
  margin-bottom: 0;
  font-size: 18px;
  color: var(--gray-dark);
}

.section-bg {
  background-color: #f8f9fa;
}

/* ===== FEATURES SECTION ===== */
.features {
  padding: 80px 0;
}

.feature-box {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--primary-color);
}

.feature-box h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 15px;
}

.feature-box p {
  font-size: 16px;
  color: var(--gray-dark);
  line-height: 1.6;
}

/* ===== GALLERY SECTION ===== */
.gallery {
  padding: 80px 0;
}

.gallery-filters {
  list-style: none;
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--gray-dark);
  border: 2px solid transparent;
  border-radius: 25px;
  transition: var(--transition);
  background: var(--white);
}

.gallery-filters li:hover, .gallery-filters li.filter-active {
  color: var(--white);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-light);
  transform: translateY(-2px);
}

.gallery-item {
  margin-bottom: 30px;
}

.gallery-wrap {
  transition: var(--transition);
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.gallery-wrap:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-heavy);
}

.gallery-wrap img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-wrap:hover img {
  transform: scale(1.1);
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--white);
  padding: 20px;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-wrap:hover .gallery-info {
  transform: translateY(0);
}

.gallery-info h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.gallery-info p {
  font-size: 14px;
  margin: 0;
  opacity: 0.8;
}

/* ===== PRICING SECTION ===== */
.pricing {
  padding: 80px 0;
}

.pricing .box {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.pricing .box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.pricing .box:hover::before {
  transform: scaleX(1);
}

.pricing .box.featured {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

.pricing .box.featured::before {
  transform: scaleX(1);
}

.pricing .box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-heavy);
}

.pricing .box.featured:hover {
  transform: translateY(-10px) scale(1.07);
}

.pricing h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 20px;
}

.pricing h4 {
  font-size: 36px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 30px;
}

.pricing h4 span {
  font-size: 16px;
  color: var(--gray-dark);
  font-weight: 300;
}

.pricing ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.pricing li {
  padding: 10px 0;
  color: var(--gray-dark);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.pricing li:last-child {
  border-bottom: none;
}

.btn-wrap .btn-book {
  background: var(--gradient-primary);
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
}

.btn-wrap .btn-book:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 80px 0;
}

.about .content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--gray-dark);
}

/* ===== BOOKING SECTION ===== */
.booking {
  padding: 80px 0;
}

.booking-contact-info {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border-left: 4px solid var(--primary-color);
}

.booking-contact-info h3 {
  color: var(--dark-color);
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: 700;
}

.contact-item h4 {
  color: var(--primary-color);
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.contact-item h4 i {
  margin-right: 10px;
  width: 20px;
}

.contact-item p {
  font-size: 16px;
  margin-bottom: 5px;
}

.contact-item a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--primary-color);
}

.contact-item small {
  color: var(--gray-dark);
  font-size: 14px;
}

.booking-cta {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
}

.booking-cta h4 {
  color: var(--white);
  margin-bottom: 15px;
}

.booking-cta p {
  color: rgba(255,255,255,0.9);
}

.booking-cta .btn {
  margin: 5px;
  border-radius: 25px;
  padding: 12px 25px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.booking-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.booking-info {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.booking-info h3 {
  color: var(--dark-color);
  font-size: 24px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
}

.booking-info h3 i {
  margin-right: 10px;
  color: var(--primary-color);
}

.info-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item i {
  margin-right: 10px;
  color: var(--primary-color);
  width: 20px;
}

.info-item strong {
  color: var(--dark-color);
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 80px 0;
}

.contact .info {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  height: 100%;
}

.contact .info h4 {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.contact .info p {
  color: var(--gray-dark);
  line-height: 1.6;
  margin-bottom: 0;
}

.contact .address, .contact .email, .contact .phone {
  margin-bottom: 30px;
  padding: 20px;
  border-left: 4px solid var(--primary-color);
  background: rgba(52, 152, 219, 0.05);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.map-container iframe {
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.map-container:hover {
  box-shadow: var(--shadow-medium);
}

/* ===== FOOTER ===== */
#footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 60px 0 30px 0;
}

.footer-info h3 {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--white);
}

.footer-info p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 0;
  color: rgba(255,255,255,0.8);
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.footer-links h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 30px;
  background: var(--primary-color);
}

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

.footer-links ul li {
  padding: 8px 0;
}

.footer-links ul a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links ul a:hover {
  color: var(--primary-color);
  padding-left: 10px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  #hero h1 {
    font-size: 40px;
    line-height: 48px;
  }
}

@media (max-width: 992px) {
  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    z-index: 999;
    padding: 100px 30px 30px;
    box-shadow: var(--shadow-heavy);
  }
  
  .navbar ul {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .navbar li {
    margin: 10px 0;
    width: 100%;
  }
  
  .navbar a {
    padding: 15px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    width: 100%;
  }
  
  .book-button {
    margin-left: 0 !important;
    margin-top: 20px;
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  #hero {
    height: auto;
    padding: 120px 0 80px 0;
  }
  
  #hero h1 {
    font-size: 32px;
    line-height: 40px;
  }
  
  #hero h2 {
    font-size: 18px;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
  
  .feature-box {
    margin-bottom: 30px;
  }
  
  .gallery-filters {
    padding: 0 15px;
  }
  
  .gallery-filters li {
    font-size: 12px;
    padding: 8px 15px;
  }
  
  .pricing .box.featured {
    transform: none;
    margin-bottom: 30px;
  }
  
  .booking-cta .d-flex {
    flex-direction: column !important;
  }
  
  .booking-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .code-box {
    display: none;
  }
  
  #hero h1 {
    font-size: 28px;
    line-height: 36px;
  }
  
  .btn-get-started, .btn-book {
    padding: 10px 20px;
    font-size: 14px;
    display: block;
    text-align: center;
    margin: 10px 0;
  }
  
  .section-title h2 {
    font-size: 24px;
  }
  
  .gallery-wrap img {
    height: 200px;
  }
}


/* Stili per i link alle policy nel footer */
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom p a {
    color: #bdc3c7;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-bottom p a:hover {
    color: #3498db;
}