@import url('https://fonts.googleapis.com/css2?family=Evolventa:wght@400;700&display=swap');

:root {
  --primary-blue: #293462;
  --secondary-purple: #9f0962;
  --orange-color: #FF8C00;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Evolventa", sans-serif;
}

body {
  color: var(--primary-blue);
  background-color: #fff;
  line-height: 1.7; /* Slightly increased for better readability */
  font-size: 1.18rem; /* Base font size increased */
}

/* Hero Section */
.hero {
  position: relative;
  background: url('bck.jpg') center/cover no-repeat;
  min-height: 90vh; /* Changed to min-height to allow content to expand */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px; /* Add some padding for smaller screens */
}
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay */
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px; /* Increased max-width */
  padding: 0 20px; /* Keep existing padding, re-evaluate if needed */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box; /* Ensure padding is included in width */
}

.logo-container {
  text-align: center; /* Center the logo if it's the only element in its line */
  margin-bottom: 20px; /* Add some space below the logo */
}

.logo-container img {
  max-width: 150px; /* Adjust as needed */
  height: auto;
  display: block; /* Ensures margin auto works for horizontal centering */
  margin-left: auto;
  margin-right: auto;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem); /* Responsive font size */
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem); /* Responsive font size */
  margin-bottom: 2rem;
  max-width: 600px;
}
.event-details {
  display: flex;
  flex-wrap: wrap; /* Allow details to wrap on smaller screens */
  justify-content: center;
  gap: 1.5rem; /* Spacing between details */
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}
.event-details span {
  display: flex; /* Use flex for icon and text alignment if icons are added */
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0; /* Reset margin */
}
.hero-content .btn-primary { /* Specific selector for button in hero */
  margin-top: 30px; /* Add padding above the button */
}
.btn-primary {
  background: var(--secondary-purple);
  color: #fff;
  padding: 15px 40px; /* Larger padding */
  border: none;
  border-radius: 50px; /* More rounded button */
  text-decoration: none;
  font-weight: 700; /* Bolder text */
  display: inline-block;
  font-size: 1.1rem; /* Larger font size for button */
  transition: all 0.3s ease; /* Smooth transition */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
}
.btn-primary:hover {
  background: var(--primary-blue);
  transform: translateY(-3px); /* Lift effect on hover */
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

/* Sezioni generiche */
section {
  padding: 100px 20px; /* More vertical padding */
  max-width: 1200px; /* Increased max-width for content */
  margin: 0 auto;
}
h2 {
  text-align: center;
  margin-bottom: 60px; /* More margin below heading */
  color: var(--primary-blue);
  font-size: clamp(2rem, 4vw, 3rem); /* Responsive font size */
  line-height: 1.2;
}
h3 { /* Default styling for h3, especially for cards */
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 0.8rem;
}

/* Cards */
.why-content {
  max-width: 900px; /* Constrain width for 2x2 layout */
  margin: 0 auto; /* Center the content */
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Default for smaller screens */
  gap: 40px; /* Increased gap */
}

@media (min-width: 992px) {
  .cards {
    grid-template-columns: repeat(2, 1fr); /* 2x2 layout on larger desktops */
  }
}

.card {
  text-align: center;
  background: #dbe2f1; /* Light primary blue */
  padding: 30px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 220px;
}
.card:hover {
  background: #f1e0ea; /* Light secondary purple */
  color: var(--primary-blue); /* Ensure text remains readable on hover */
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Agenda */
.agenda {
  text-align: center; /* Center content within the agenda section */
}

.agenda h3 {
  color: var(--primary-blue);
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.agenda h3 {
  color: var(--primary-blue);
  margin-top: 0; /* Reset top margin for h3 inside cards */
  margin-bottom: 20px;
  font-size: 1.6rem; /* Slightly smaller for card headings */
}

.agenda-cards {
  display: grid;
  grid-template-columns: 1fr; /* Stacked by default for smaller screens */
  gap: 30px;
  max-width: 1000px;
  margin: 40px auto 60px auto; /* Adjust margins for the grid container */
  padding: 0 20px;
}

@media (min-width: 1024px) {
  .agenda-cards {
    grid-template-columns: repeat(3, 1fr); /* Three columns on wider screens */
    max-width: 1200px; /* Allow more width for 3 columns */
  }
}

.agenda-card {
  background: #e78b8b;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.agenda-card p {
  margin-bottom: 10px; /* Smaller margin for paragraphs inside cards */
  font-size: 1.1rem; /* Slightly smaller font for card content */
  max-width: none; /* Remove max-width constraint for card content */
}

.agenda-card p:last-of-type {
  margin-bottom: 0; /* Remove bottom margin for the last paragraph in a card */
}

.agenda-language {
  text-align: center;
  margin-top: 40px; /* Space above language paragraph */
  margin-bottom: 30px; /* Space below language paragraph */
  font-size: 1.18rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.agenda .btn-primary {
  margin-top: 0; /* Reset margin top as it's now controlled by surrounding elements */
}

/* Who */
.who p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.2rem; /* Larger text for who intro */
}
.who blockquote {
  margin-top: 30px; /* More margin */
  font-style: italic;
  text-align: center;
  color: var(--secondary-purple); /* Highlight quote with secondary color */
  font-size: 1.3rem; /* Larger quote text */
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  border-left: 5px solid var(--secondary-purple); /* Add a subtle border */
}

/* Info */
.info p {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.2rem; /* Larger text for info */
}
.info p strong {
  color: #092f57;
}
.map-button {
  margin-top: 40px; /* More space above map button */
  text-align: center;
}




/* Organizzatori */
.organizer {
  text-align: center;
  padding-bottom: 60px; /* Adjusted for footer */
}
.organizer .logo {
  max-width: 150px; /* Adjust logo size */
  height: auto;
  margin-bottom: 20px;
}
.organizer p {
  font-size: 1.2rem;
  font-weight: 600;
  color: #092f57;
}

/* Footer */
footer {
  background-color: #f5f5f5; /* Light background for footer */
  padding: 40px 20px;
  text-align: center;
  color: #555;
  font-size: 0.9rem;
}
.copyright {
  margin-top: 20px;
  color: #777;
  font-size: 0.95rem;
}

/* Secondary Button */
.btn-secondary {
  background: #fff;
  color: var(--secondary-purple);
  padding: 15px 40px;
  border: 2px solid var(--secondary-purple); /* Outline button */
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 30px; /* Space above the button */
}
.btn-secondary:hover {
  background: var(--secondary-purple);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Malaga Lovers Section */
.malaga-lovers {
  background-color: #f8f8f8; /* Light background for distinction */
  text-align: center;
  padding-bottom: 80px; /* More padding at the bottom */
}

.malaga-lovers h3 {
  color: var(--secondary-purple);
  margin-bottom: 35px;
  font-size: 1.8rem;
  font-weight: 700; /* Make it bolder */
}

.malaga-lovers blockquote {
  margin: 30px auto 40px auto; /* Adjust margins */
  font-style: italic;
  text-align: center;
  color: var(--primary-blue); /* Use primary blue for this quote */
  font-size: 1.3rem; /* Larger quote text */
  max-width: 700px;
  padding: 20px;
  border-left: 5px solid var(--primary-blue); /* A solid border */
}

.malaga-lovers p {
  margin-bottom: 25px;
  font-size: 1.18rem; /* Adjusted to new base font size */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.malaga-lovers ul {
  list-style: none;
  padding: 0;
  margin: 30px auto 40px auto; /* Center lists and adjust margins */
  max-width: 700px; /* Constrain list width */
  text-align: left;
}

.malaga-lovers li {
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: var(--primary-blue);
  position: relative;
  padding-left: 25px; /* Space for custom bullet */
}

.malaga-lovers li::before {
  content: '✦'; /* Custom star bullet */
  color: var(--secondary-purple);
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1;
}

.malaga-lovers .btn-secondary {
  margin-top: 50px; /* More space above the button */
}

/* About Us Section */
.about-us {
  text-align: center;
  background-color: #fff;
  padding-top: 80px; /* More padding at the top */
  padding-bottom: 80px; /* More padding at the bottom */
}

.about-us p {
  margin-bottom: 25px;
  font-size: 1.18rem; /* Adjusted to new base font size */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-us h3 {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  color: var(--primary-blue);
  font-size: 1.8rem;
}

.organizers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto 50px auto;
  padding: 0 20px;
}

.organizer-card {
  background: #f5f5f5;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.organizer-card h4 {
  color: var(--secondary-purple);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.organizer-card p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Banner Section */
.banner {
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-purple)); /* Gradient background */
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}
.banner h2 {
  color: #fff;
  margin-bottom: 30px;
}
.banner p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.social-links a {
  color: #fff; /* Changed social links color to white for better contrast on gradient */
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 15px;
  transition: color 0.3s ease;
}
.social-links a:hover {
  color: #eee; /* Lighter color on hover */
}

.btn-orange {
  background: var(--orange-color);
  color: #fff;
  padding: 15px 40px; /* Larger padding */
  border: none;
  border-radius: 50px; /* More rounded button */
  text-decoration: none;
  font-weight: 700; /* Bolder text */
  display: inline-block;
  font-size: 1.1rem; /* Larger font size for button */
  transition: all 0.3s ease; /* Smooth transition */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
}

.btn-orange:hover {
  background: var(--primary-blue);
  transform: translateY(-3px); /* Lift effect on hover */
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
  .malaga-lovers h3 {
    font-size: 1.5rem;
  }
  .malaga-lovers p, .about-us p, .malaga-lovers li, .about-us li {
    font-size: 1rem;
  }
  .banner h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .banner p {
    font-size: 1rem;
  }
  .social-links a {
    font-size: 1rem;
    margin: 0 10px;
  }
  .btn-secondary {
    font-size: 1rem;
    padding: 12px 25px;
  }
}

@media (max-width: 480px) {
  .malaga-lovers h3 {
    font-size: 1.3rem;
  }
  .banner h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .social-links a {
    display: block;
    margin: 10px auto;
  }
  .btn-secondary {
    font-size: 1rem;
    padding: 12px 20px;
  }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh; /* Changed to min-height */
  }
  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .subtitle {
    font-size: clamp(1rem, 3.5vw, 1.5rem);
  }
  .event-details {
    flex-direction: column;
    gap: 1rem;
    font-size: 1rem;
  }
  section {
    padding: 60px 15px;
  }
  h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 40px;
  }
  .cards {
    grid-template-columns: 1fr; /* Stack cards on small screens */
  }
  .card {
    min-height: auto; /* Allow height to adjust */
    padding: 25px;
  }
  .agenda p, .who p, .info p, .register p, .organizer p {
    font-size: 1rem;
  }
  .schedule {
    font-size: 1.1rem;
    padding: 20px;
  }
  .who blockquote {
    font-size: 1.1rem;
  }
  .map iframe {
    height: 300px;
  }
  .form input[type="text"],
  .form input[type="email"],
  .form textarea {
    font-size: 1rem;
  }
  .btn-primary {
    font-size: 1rem;
    padding: 12px 25px;
  }
  footer {
    padding: 30px 15px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 70vh; /* Changed to min-height */
  }
  .hero h1 {
    margin-bottom: 1rem;
  }
  .subtitle {
    margin-bottom: 1.5rem;
  }
  .event-details {
    gap: 0.8rem;
  }
  section {
    padding: 40px 10px;
  }
  h2 {
    margin-bottom: 30px;
  }
  .card {
    padding: 20px;
  }
  .schedule {
    margin-top: 30px auto 0 auto;
  }
  .who blockquote {
    margin-top: 20px;
  }
  .map iframe {
    height: 250px;
  }
  .form input[type="text"],
  .form input[type="email"],
  .form textarea {
    font-size: 1rem;
  }
  .btn-primary {
    font-size: 1rem;
    padding: 12px 25px;
  }
  footer {
    padding: 25px 10px;
  }
}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
  padding-top: 20px; /* Reduced space above the slideshow */
  padding-bottom: 20px; /* Reduced space below the slideshow */
}

/* Hide the images by default */
.mySlides {
  display: none;
  position: relative; /* Make mySlides the positioning context for arrows */
}

.mySlides img {
  max-height: 400px; /* Set a maximum height for the images */
  width: 100%; /* Ensure images take full width of their container */
  object-fit: cover; /* Crop images to cover the area without distortion */
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  -webkit-transform: translateY(-50%); /* For Safari */
  -ms-transform: translateY(-50%);    /* For Internet Explorer */
  transform: translateY(-50%);
  font-size: 18px;
  transition: 0.6s ease;
  user-select: none;
  background-color: rgba(0,0,0,0.8);
  /* Adjust positioning to be relative to .mySlides */
}

.prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background with a little more opacity */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,1);
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}