:root {
  --primary-color: #007bff; /* Azzurro */
  --secondary-color: #f8f9fa; /* Bianco sporco */
  --text-color: #343a40; /* Grigio scuro */
  --accent-color: #ffc107; /* Giallo (per accenti) */
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--secondary-color);
}

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

/* --- Header & Navigation --- */
.header {
  background-color: var(--secondary-color);
  padding: 1rem 0;
  border-bottom: 2px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.nav-menu ul {
  list-style: none;
  display: flex;
}

.nav-menu ul li {
  margin-left: 25px;
}

.nav-menu ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 5px 0;
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

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

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

/* --- Main Sections --- */
.hero-slider {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
}

.slider-btn {
  background-color: rgba(0, 123, 255, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.slider-btn:hover {
  background-color: rgba(0, 123, 255, 0.8);
}

.section {
  padding: 60px 0;
  border-bottom: 1px solid #e0e0e0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.about-guide {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-guide-text {
  flex: 1;
}

.about-guide-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-guide-image {
  flex: 1;
  text-align: right;
}

.about-guide-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.what-is-cyclotourism {
  text-align: center;
}

.what-is-cyclotourism p {
  max-width: 800px;
  margin: 0 auto;
}

.full-width-image {
  width: 100%;
  height: 700px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
}

.image-caption {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 15px 30px;
  font-size: 1.5rem;
  text-align: center;
  border-radius: 5px;
}

/* --- Footer --- */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-col {
  flex-basis: 300px;
}

.footer-col h4 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

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

.footer-col ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--accent-color);
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Contatti Page --- */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-form {
  flex: 2;
  min-width: 300px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-group textarea {
  resize: vertical;
}

.submit-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #0056b3;
}

.map-container {
  height: 400px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


/* --- Itinerari Page --- */
.itineraries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.itinerary-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s;
}

.itinerary-card:hover {
  transform: translateY(-10px);
}

.itinerary-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.itinerary-card-content {
  padding: 20px;
}

.itinerary-card-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* --- Responsività --- */
@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
  }

  .nav-menu {
    width: 100%;
    margin-top: 15px;
    display: none;
    flex-direction: column;
    text-align: center;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu ul {
    flex-direction: column;
    width: 100%;
  }

  .nav-menu ul li {
    margin: 10px 0;
  }

  .hamburger {
    display: block;
  }

  .about-guide {
    flex-direction: column;
    text-align: center;
  }
  
  .full-width-image {
    height: 300px;
  }

  .image-caption {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
  }
}