body 
{
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
}

header {
  /* background-color: #0077c2; */
  background-image: url(../images/semana_hero_background.svg);
  background-size: cover;          
  background-position: center;    
  background-repeat: no-repeat;    
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  z-index: 0;
  position: relative;
}

header h1,
header h2,
header h3 {
  background-color: rgba(0, 0, 0, 0.55);
  display: inline;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  line-height: 1.5; 
}


/* FIXME Use if you need to reduce background image visibility */

/* header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); 
  z-index: 1;
}

header > * {
  position: relative;
  z-index: 1;
} */

/* NAVIGATION TOOLBAR */

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center; /* vertical centering */
  gap: 1rem;
  list-style: none;
  padding: 1rem 2rem;
  margin: 0;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul li a {
  text-decoration: none;
  color: #0077c2;
  font-weight: 600;
  /* font-size: 1.1rem; */
  padding: 0.6rem 1rem;
  border-radius: 5px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

nav ul li a:hover,
nav ul li a:focus {
  background-color: #0077c2;
  color: white;
}

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
 nav ul {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 1rem 2rem;
  }
  nav ul li a {
    width: 100%;
    text-align: center;
  }
}

/* GENERAL */
section 
{
    padding: 2rem 1rem;
    max-width: 960px;
    margin: auto;
    scroll-margin-top: 100px;
}

footer 
{
    background: #efefef;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

html {
  scroll-behavior: smooth;
  font-size: 11px; /* FIXME Base font size for scaling */
}

/* ORGANIZERS */

.organizer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: left;
  padding-top: 1rem;
}

.organizer-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  width: 220px;
  transition: transform 0.2s ease;
}

.organizer-card:hover {
  transform: scale(1.05);
}

.organizer-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #0077c2;
  margin-bottom: 0.5rem;
}

.organizer-card .info h4 {
  margin: 0.3rem 0 0.1rem;
  font-size: 2rem;
}

.organizer-card .info p {
  font-size: 1.3rem;
  color: #666;
}

.organizer-img {
  position: relative;
  display: inline-block;
}

.organizer-img img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #0077c2;
}

.bio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1rem;
  padding: 1rem;
}

.organizer-img:hover .bio-overlay {
  opacity: 1;
}

/* SPEAKERS */

#speakers {
  max-width: 960px;
  margin: auto;
  padding: 2rem 1rem;
}

.speaker-card {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1.5rem;
  justify-content: left;
}

.speaker-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #0077c2;
}


.speaker-card:hover {
  transform: scale(1.05);
}

.speaker-info h3 {
  margin: 0 0 0.3rem;
  font-size: 2rem;
  color: #666;
}

.speaker-info p {
  margin: 0.3rem 0;
  line-height: 1.5;
  color: #666;
}

/* Responsive stacking on mobile */
@media (max-width: 600px) {
  .speaker-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .speaker-info h3,
  .speaker-info p {
    text-align: center;
  }
}

/* TABLE */
.table-container {
    max-width: 90%;
    margin: 2rem auto;
    overflow-x: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 1.25rem;
}
th, td {
    padding: 1rem;
    border: 2px solid #d1d5db;
}
th {
    background-color: #1f2937;
    color: #f9fafb;
    text-align: left;
    font-weight: 600;
}
td {
    background-color: #ffffff;
    vertical-align: top;
}
/* tr:nth-child(even) td {
    background-color: #f9fafb;
} */
.rotated-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}



/* ── Dates banner ── */
  .dates-banner {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    overflow: hidden;
    margin-bottom: 3rem;
  }
 
  .date-item {
    padding: 1.25rem 1.5rem;
    border-right: 1px solid var(--border);
  }
 
  .date-item:last-child { border-right: none; }
 
  .date-item.highlight {
    background: var(--green-light);
    border-right-color: #9FE1CB;
  }
 
  .date-label {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
  }
 
  .date-value {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--text);
  }
 
  .date-item.highlight .date-label { color: var(--green); }
  .date-item.highlight .date-value { color: var(--green); }
 

  /* ── Poster clusters ── */
  .clusters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 1.25rem;
  }
 
  @media (max-width: 500px) { .clusters { grid-template-columns: 1fr; } }
 
  .cluster-card {
    border-left: 3px solid var(--green-mid);
    padding: 1rem 1.25rem;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 0 6px 6px 0;
  }
 
  .cluster-label {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
  }
 
  .cluster-name {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text);
  }


  /* ── CTA block ── */
  .cta-block {
    background: #0077c2;
    border-radius: 8px;
    padding: 2.5rem;
    /* color: #00ff44; */
    text-align: center;
    margin-bottom: 3rem;
  }
 
  .cta-block h2 {
    color: #fff;
  }
 
  .cta-block p {
    color: rgba(255,255,255,0.8);
  }
 
  .cta-btn {
    display: inline-block;
    background:  #03446c;
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: opacity 0.2s;
  }
 
  .cta-btn:hover { opacity: 0.9; }


  .lista-due-colonne {
  column-count: 2;       /* Divide la lista in 2 colonne */
  column-gap: 20px;      /* Spazio tra le due colonne */
  list-style-position: inside; /* Mantiene i pallini ben allineati */
}