/* === Global === */
:root {
    --bg-light: #f8f9fa;
    --text-dark: #111;
    --primary: #1f2a63;
    --accent: #4dc0ff;
    --card-bg: #fff;
    --font: 'Inter', sans-serif;
  }
  
  * {
    margin: 0; padding: 0; box-sizing: border-box;
  }
  body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--bg-light);
  }
  
  .container {
    width: 90%; max-width: 1200px; margin: auto;
  }
  
  
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
  }
  
  /* Navbar base */
.navbar {
  background-color: var(--primary); /* colore chiaro simile al tuo */
  color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Link navbar */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links li {
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #007bff; /* colore al passaggio */
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #000;
  margin-bottom: 4px;
  border-radius: 3px;
}

/* Media query per dispositivi mobili */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--primary);
    position: absolute;
    top: 60px;
    left: 0;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

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

  .nav-links li {
    text-align: center;
    margin: 0.5rem 0;
  }

  .menu-toggle {
    display: flex;
  }
}

  
  /* === Hero === 
  .hero {
    background: url('https://source.unsplash.com/1600x800/?technology,ai') center/cover no-repeat;
    color: #1f2a63;
    height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
  }
  .hero-content { width: 100%; }
  .hero h1 { font-size: 2.8rem; margin-bottom: 0.8rem; }
  .hero p  { font-size: 1.2rem; margin-bottom: 1.2rem; }
  .btn {
    background: var(--accent);
    padding: 0.8rem 1.6rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: 0.3s;
  }
  .btn:hover { background: #3598db; color: white; }
  .btn.outline {
    background: transparent; border: 2px solid var(--accent);
    color: var(--text-dark);
  }*/

  /* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 90vh;
    background-image: url("assets/images/duomo.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
  }
  
  .hero-logo {
    width: 280px;
    margin-bottom: 0.8rem;
  }

  /* Overlay scuro elegante */
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(10, 15, 40, 0.75),
      rgba(10, 15, 40, 0.45)
    );
    z-index: 1;
  }
  
  /* Contenuto */
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;

  
  }
  
  .hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    margin-top: 0.1rem;
    opacity: 0.9;
  }
  
  /* Bottone */
  .hero-btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    background: #4dc0ff;
    color: #0b0f34;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
  }
  
  .hero-btn:hover {
    background: #ffffff;
    color: #0b0f34;
    transform: translateY(-2px);
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .hero {
      height: 75vh;
      background-attachment: scroll;
    }
  
    .hero-content h1 {
      font-size: 2.2rem;
    }
  
    .hero-content p {
      font-size: 1.1rem;
      
    }
  }
  
  
  /* === Sections === */
  .section { padding: 3rem 0; }
  .section.light { background: #fff; }
  .section h2 { font-size: 2rem; margin-bottom: 1rem; }
  
  /* === Cards === */
  .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    justify-content: center;
  }
  .card {
    background: var(--card-bg);
    padding: 1.6rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 280px;
  }
  .price-card { text-align: center; font-weight: bold; }
  
  /* === Schedule === */
  .schedule-list { display: grid; gap: 0.8rem; }
  .schedule-day {
    background: #fff; padding: 1rem; border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  }

    /* === Topics === */
  .topic-list { display: grid; gap: 0.8rem; }
  .topic-item {
    background: #fff; padding: 1rem; border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  }
  
  /* === Footer === */
  .footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .speaker-card img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
  }

 /* ===== Venue Section ===== */
.venue-section {
  margin: 4rem 0;
}

.venue-banner {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.venue-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

/* Testo centrato */
.venue-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  padding: 1rem 2rem;
  max-width: 800px;
  width: 90%; /* aggiunto per adattarsi a schermi piccoli */
  box-sizing: border-box; /* include padding nella larghezza */
}

.venue-text h2 {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.venue-text p {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  word-wrap: break-word; /* forza il testo a spezzarsi se troppo lungo */
}

.venue-btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: #4dc0ff;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  margin-top: 0.8rem;
  transition: 0.3s ease;
}

.venue-btn:hover {
  background: #3598db;
  color: #fff;
}

/* ===== Media query per dispositivi mobili ===== */
@media (max-width: 768px) {
  .venue-text {
    padding: 0.5rem 1rem; /* meno padding su mobile */
    max-width: 95%; /* più spazio disponibile */
  }

  .venue-text h2 {
    font-size: 1.8rem; /* ridotto per smartphone */
  }

  .venue-text p {
    font-size: 1rem; /* leggermente più piccolo */
  }

  .venue-btn {
    padding: 0.6rem 1.2rem; /* bottone più piccolo su mobile */
    font-size: 0.95rem;
  }
}


  .highlight-red {
    color: red;
    font-weight: bold;
  }
  
  
  