/* =========================
   Base & Tokens
========================= */
:root {
  --bg-dark: #161616;
  --bg-light: #f9f9f9;
  --text-dark: #0f172a;           
  --text-light: #f9f9f9;
  --muted: #6c757d;          
  --primary: #f45b5b;       
  --secondary : #5268ff;
  --card: #ffffff;
  --border: #e5e7eb;        
  --ring: 0 0 0 4px rgba(37, 99, 235, .15);
  --radius: 16px;
  --shadow: 0 10px 24px rgba(15, 23, 42, .06);
  --gradient: linear-gradient(to right, #f58c8c, #ff1951);
  --gradient-light: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --light-blue: #eff2fa;
  --secondary-light: #e5e9fc;
  --bs-gutter-x: 1rem;
}

/* =========================
   Base
========================= */

body {
  background: var(--bg-dark);
  color: var(--text-dark);
  /* font-family: "Source Sans 3", sans-serif; */
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-optical-sizing: auto;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1{
  font-size: 1.8rem;
  font-weight: 700;
}
h2 {
  font-size: 1.8rem;
  font-weight: 700;
}
h2.title{
  font-size: 2.2rem;
  font-weight: 600;
}
h3, h4, h5, h6 {
  font-weight: 500;
}
p{
  font-size: 1rem;
}

.b-dark{
  background: var(--bg-dark);
  color: var(--text-light);
}

.b-light{
  background: var(--bg-light);
}

.b-lightblue{
  background: var(--light-blue);
}

/* =========================
   Layout
========================= */
.container {
  max-width: 760px;
  padding-right: var(--bs-gutter-x);
  padding-left: var(--bs-gutter-x);
}

/* =========================
   Navbar
========================= */

.navbar {
  color: var(--text-light);
  padding: 0;
  min-height: 50px;
  backdrop-filter: blur(5px);
  transition: background .3s ease, box-shadow .3s ease;
}

.navbar img {
  height: 28px;
  transition: transform .2s ease;
}

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

.navbar a {
  color: white !important;
}

.navbar a:hover {
  color: var(--primary) !important;

}

/* =========================
   Hero
========================= */

.hero {
  background-color: var(--bg-light);
  background-image: var(--gradient-light);
  color: var(--text-dark);
  text-align: center;
  padding: 0;
}

.hero .container{
  max-width: 100%;
  height: 100vh;
}

.hero .logo{
  width: 60%;
  max-width: 1000px;
  padding-bottom: 1rem;
  padding-top: 5rem;
}

.hero .subtitle{
  /*font-size: 2.5rem;*/
  font-size: clamp(1rem, 3vw + 0.2rem, 3rem);
  font-weight: 200;
  letter-spacing: -0.5px;
}

.hero .caption{
  font-size: 2rem;
  font-weight: 700;
  padding: 5.5rem 0 0.5rem 0;
  line-height: 1.5;
}
.hero .caption #city{
  color: var(--text-light);
  font-weight: 300;
  background: var(--gradient);
  border-radius: 1rem;
  padding: 0 1.2rem;
}
.hero .caption #city:hover{
  color: var(--text-light);
  opacity: 60%;
}
.hero .caption #city i{
  font-size: 1.5rem;
}

.hero .btn {
  padding: 0.6rem 2.5rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

#locationModal .btn{
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-dark);
}
#locationModal .btn:hover{
  color: var(--primary);
}
/* Media Query per smartphone */
@media (max-width: 768px) {
  .hero .container{
    height: 100svh;
  }
  .hero .logo{
    width: 100%;
  }
  .hero .subtitle{
  font-size: 2rem;
  }

  .hero .caption{
    font-size: 1.8rem;
    max-width: 320px;
    padding: 0 0 0.5rem 0;
  }

  .hero .caption #city i{
    font-size: 1.5rem;
  }

  .hero .btn{
    width: 100%;
    border-radius: 0.25rem;
  }
}

/* =========================
   What How Why Section
========================= */

.lead-section .container{
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.lead-section p, strong{
  font-size: 2rem;
}

.lead-section strong{
  font-weight: 600;
  margin-top: 1rem;
  color: var(--text-light);
}

.lead-section p{
  font-weight: 300;
  margin-top: 1rem;
}

.lead-section h2{
  font-size: 4rem;
  font-weight: 200;
}

/* Media Query per smartphone */
@media (max-width: 768px) {
  .lead-section p, strong{
    font-size: 1.5rem;
    line-height: 1.2;
  }
}

/* =========================
   Events Page
========================= */

#eventi {
  padding-top: 70px;
}

/* =========================
   Event Cards
========================= */
.card {
  background: var(--card);
  /*border: 1px solid var(--border);*/ border: 0px;
  border-radius: var(--radius);
  /*box-shadow: var(--shadow);*/
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15,23,42,.10);
  border-color: color-mix(in oklab, var(--border), var(--secondary) 25%);
}

.card-footer {
    padding: .5rem 1rem;
    background-color: transparent;
    border: 0px;
}

.card-title {
  font-size: 1rem;
}

.card p{
  font-size: 0.9rem;
}

.card-location {
  font-size: 0.8rem;
  color: var(--muted);

}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
}

.card .btn{
  font-size: 0.8rem;
}

/* =========================
   Chip
========================= */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card), var(--bg) 12%);
  color: var(--text);
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .08s ease, filter .2s ease;
}

.chip:hover {
  background: color-mix(in oklab, var(--card), var(--bg) 22%);
  border-color: color-mix(in oklab, var(--border), var(--secondary) 35%);
  filter: saturate(1.1);
}

.chip:active {
  transform: translateY(1px);
}

/* =========================
   Date Heading
========================= */
.date-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 28px;
  font-size: 28px;
  /*text-transform: uppercase;*/
  /*letter-spacing: .08em;*/
  color: var(--text);
}

.date-heading h2{
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}

.date-heading .rule {
  flex: 1;
  height: 1px;
  background: var(--border);
  opacity: .8;
}

/* =========================
   Animazioni sui bottoni
========================= */
.btn, .btn-primary, .btn-outline-secondary {
  transition: all 0.3s ease;
  border: 0px
}
.btn-primary {
  background: var(--secondary);
  color: var(--text-light);
}
.btn-primary:hover {
  background: var(--bg-dark);
  color: var(--text-light);
}
.btn-secondary {
  background: var(--muted);
  color: var(--text-light);
}
.btn-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}
.btn:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
}
.btn-3 {
  background: white;
  color: var(--text-dark);
  border: 1.5px solid rgb(192, 208, 214);
  border-radius: 30px;
}
.btn-check:checked+.btn-3 {
  background: var(--secondary-light);
  color: var(--secondary);
  font-weight: 700;
  border: 1.5px solid var(--secondary);
}
/* =========================
   Sfumature
========================= */
.b-gradient {
  background: linear-gradient(to right, #f58c8c, #ff1951);
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* per Safari */
  color: transparent; /* fallback */
}
.gradient-text-light {
  background: linear-gradient(135deg, #f5f7fa 0%, #6a7687 100%);;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* per Safari */
  color: transparent; /* fallback */
}

/* =========================
   Pagination
========================= */
.page-item.active .page-link {
    z-index: 3;
    color: var(--text-light);
    background-color: var(--secondary);
    border-color: var(--secondary);
}
.page-link {
    z-index: 3;
    color: var(--secondary);
    background-color: #ffffff;
}

/* =========================
   Form
========================= */
.form-control, .input-group-text{
  font-size: 0.9rem;
  border-radius: 30px;
  padding: 0.5rem;
}

.form-control:focus {
  border-color: #5268ff;
}

*:focus {
  outline: none !important;
  box-shadow: none !important;
}
.form-check {
  margin-bottom: 0.7rem;
}
.form-label {
  /*text-transform: uppercase !important;*/
  /*font-size: 1rem !important;
  font-weight: 500 !important;*/
  font-size: 1rem;
  margin-bottom: 1rem;
}
.form-check-input:checked {
  background-color: var(--bg-dark);
  border-color: var(--bg-dark);
}

.form-br {
  margin-left: -20px; 
  margin-right: -20px; 
  padding: 3px; 
  background-color: var(--secondary); 
  opacity: 0.10;
}

input {
  font-size: 0.9rem;
}

label.btn {
  font-size: 0.9rem;
}