/* Stile base per il redesign di Festival Riviera House */
:root {
  --primary-color: #ff7f27;
  --secondary-color: #2c8c99;
  --accent-color: #f4a261;
  --text-color: #333;
  --light-bg: #f9f9f9;
  --dark-bg: #2a2a2a;
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-bg);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header e navigazione */
header {
  background-color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 18px;
}

.logo {
  font-family: var(--font-secondary);
  font-size: 2rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  flex: 1;
  justify-content: flex-end;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

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

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.language-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  z-index: 1001;
}

.language-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  font-size: 1.15rem;
  line-height: 1;
  filter: saturate(1.08);
}

.language-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.language-select {
  max-width: 132px;
  padding: 7px 26px 7px 9px;
  border: 1px solid rgba(44, 140, 153, 0.35);
  border-radius: 999px;
  background: #fff;
  color: var(--text-color);
  font: 500 0.78rem var(--font-primary);
  cursor: pointer;
}

.language-select:focus {
  outline: 3px solid rgba(255, 127, 39, 0.35);
  outline-offset: 2px;
}

/* Hero section */
.hero {
  height: 80vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero-content {
  position: relative;
  color: white;
  max-width: 600px;
  padding: 0 20px;
}

.hero-title {
  font-family: var(--font-secondary);
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid white;
  margin-left: 15px;
}

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

/* Sezioni */
section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

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

/* About section */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

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

/* Features */
.features {
  background-color: var(--light-bg);
}

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

.feature-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 250px;
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: white;
  text-align: center;
  padding: 20px;
}

/* Contact */
.contact {
  background-color: var(--light-bg);
}

.contact-container {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 2;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--font-primary);
  font-size: 1rem;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 60px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  color: white;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-links h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

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

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

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.booking-comparison-intro {
  font-size: 1.15rem;
  margin: 0 auto 20px;
  max-width: 700px;
}

.booking-comparison {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.booking-primary-link {
  background-color: #2c8c99;
  flex: 1 1 260px;
  max-width: 320px;
  margin: 0;
}

.booking-secondary-link {
  display: inline-block;
  margin-top: 22px;
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

.whatsapp-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding: 14px 24px;
  border-radius: 999px;
  background-color: #25D366;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.25);
  transition: var(--transition);
}

.whatsapp-primary-button:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.32);
}

.whatsapp-link {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.booking-button.happy-rentals {
  background-color: #2c8c99;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* Responsive */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }
  
  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
  }

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

  .nav-item {
    margin: 15px 0;
  }

  .hamburger {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .booking-comparison {
    flex-direction: column;
    align-items: stretch;
  }

  .booking-primary-link {
    max-width: none;
  }

  .booking-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .booking-button {
    width: 100%;
  }
}

/* Animazioni */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeIn 0.8s ease forwards;
}


/* Adattamento del nome esteso agli schermi mobili */
@media (max-width: 768px) {
  .logo {
    max-width: 190px;
    font-size: clamp(1rem, 4.4vw, 1.35rem);
    line-height: 1.1;
    white-space: normal;
    flex-shrink: 1;
    letter-spacing: -0.02em;
  }

  .language-picker {
    margin-left: 0;
    margin-right: 2px;
  }

  .language-select {
    max-width: 96px;
    padding: 6px 18px 6px 7px;
    font-size: 0.68rem;
  }

  .hamburger {
    flex-shrink: 0;
  }
}
