/* ===== VARIABLES ===== */
:root {
  --gold: #ffc20e;
  --gold-dark: #e0a800;
  --gold-x-dark:#8F6B00;
  --dark: #343121;
  --light: #ffffff;
  --text: #333333;
  --light-bg: #f2f3f5;
  --border: #e2e2e2;
  --section-pad: 70px 0;
}
/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: box-shadow .3s;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo img { height: 50px; width: auto; }
nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
}
nav ul li a {
  display: block;
  padding: 8px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #333;
  border-radius: 3px;
  transition: color .2s, background .2s;
}
nav ul li a:hover { color: var(--gold-dark); }
.nav-btn {
  background: var(--gold) !important;
  color:  var(--dark) !important;
  border-radius: 25px !important;
  padding: 8px 20px !important;
}
.nav-btn:hover { background: var(--gold-dark) !important; }

/* Nav Dropdown */
.nav-has-dropdown { position: relative; }
.nav-dropdown-trigger { display: flex !important; align-items: center; gap: 5px; }
.nav-dropdown-arrow { font-size: 9px; line-height: 1; transition: transform .2s; display: inline-block; }
.nav-has-dropdown:hover .nav-dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  min-width: 190px;
  z-index: 200;
  padding: 6px 0;
  border-top: 3px solid var(--gold);
}
.nav-has-dropdown:hover .nav-dropdown { display: block; }
.nav-dropdown li { list-style: none; }
.nav-dropdown li a {
  display: block;
  padding: 10px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #333 !important;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-dropdown li a:hover { color: var(--gold-dark) !important; background: var(--light-bg); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: #333;
  transition: .3s;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  background: var(--gold);
  overflow: hidden;
  padding-top: 70px;
  padding-bottom: 10px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: auto 60%;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: .2;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  color: #fff;
  max-width: 750px;
  margin-left: max(20px, calc((100vw - 1200px)/2 + 20px));
}
.hero-label {
  display: inline-block;
  background: #fff;
  color: var(--dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
}
.hero-title span { color: var(--dark); }
.hero-subtitle {
  font-size: 19px;
  font-weight: 300;
  color: rgba(255,255,255);
  margin-bottom: 10px;
}
.hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}
.hero-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #fff;
}
.hero-info-item .icon {
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.hero-directors {
  margin: 25px 0;
  padding: 20px;
  border-left: 4px solid #fff;
  background: rgba(0,0,0,.1);
  border-radius: 0 6px 6px 0;
}
.hero-directors p {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.hero-directors strong {
  font-size: 18px;
  color: #fff;
  line-height: 1.8;
}
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color:  var(--dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 30px;
  transition: background .2s, transform .2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 30px;
  border: 2px solid #fff !important;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }

/* ===== SECTION WRAPPER ===== */
.section { padding: var(--section-pad); }
.section-alt { background: var(--light-bg); }
#programma { padding-bottom: 30px; }
#faculty { padding-top: 30px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-line { width: 60px; height: 4px; background: var(--gold); margin: 0 auto 20px; border-radius: 2px; }
.section-desc { max-width: 700px; margin: 0 auto; color: #666; font-size: 15px; line-height: 1.7; }

/* ===== PRESENTAZIONE ===== */
.pres-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.pres-text p { margin-bottom: 16px; color: #555; line-height: 1.8; font-size: 15px; }
.pres-text p strong { color: var(--dark); }
.pres-box { background: var(--dark); color: #fff; padding: 35px; border-radius: 8px; }
.pres-box h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.pres-box ul { list-style: none; padding: 0; }
.pres-box ul li {
  padding: 6px 0 6px 18px;
  position: relative;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pres-box ul li::before { content: '›'; position: absolute; left: 0; color: var(--gold); font-size: 18px; line-height: 1.2; }
.pres-box .pres-box-sub { margin-top: 22px; }
.pres-box .pres-box-sub h3 { margin-top: 0; }
.pres-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.pres-info-card { background: var(--light-bg); border-radius: 6px; padding: 20px; text-align: center; }
.pres-info-card .num { font-family: 'Montserrat', sans-serif; font-size: 28px; font-weight: 800; color: var(--dark); display: block; }
.pres-info-card .lbl { font-size: 12px; color: #777; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; color: var(--dark); }

/* ===== PREMIO ===== */
.prize-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #4a4535 100%);
  color: #fff;
  border-radius: 8px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  margin-top: 50px;
}
.prize-banner h3 { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.prize-banner p { font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.7; }
.prize-banner a.btn-primary { white-space: nowrap; }

/* ===== PROGRAMMA ===== */
.tabs { display: flex; gap: 0; margin-bottom: 0; border-bottom: 3px solid var(--border); }
.tab-br { display: none; }
.tab-btn {
  padding: 14px 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--dark);
  position: relative;
  transition: color .2s;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .2s;
}
.tab-btn.active { color: var(--dark); }
.tab-btn.active::after { transform: scaleX(1); }
.tab-panel { display: none; padding-top: 30px; }
.tab-panel.active { display: block; }

/* Sessions */
.session { margin-bottom: 30px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.session-header { background: var(--dark); color: #fff; padding: 14px 20px; display: flex; align-items: center; gap: 16px; }
.session-num {
  background: var(--gold);
  color:  var(--dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
}
.session-title-text { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; }
.session-moderator { font-size: 12px; color: rgba(255,255,255,.65); margin-left: auto; white-space: nowrap; }
.session-body { background: #fff; }
.prog-row { display: grid; grid-template-columns: 90px 1fr; gap: 0; border-bottom: 1px solid #f0f0f0; }
.prog-row:last-child { border-bottom: none; }
.prog-time {
  padding: 12px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  background: #fafafa;
  border-right: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  padding-top: 14px;
}
.prog-content { padding: 12px 20px; }
.prog-topic { font-size: 14px; font-weight: 600; color: var(--dark); }
.prog-speaker { font-size: 12px; font-weight: 400; color: #666; margin-top: 2px; }
.prog-row.special .prog-content { font-size: 13px; font-weight: 600; var(--dark); font-style: italic; display: flex; align-items: center; }
.prog-row.opening .prog-time { color: #a43a42; }
.prog-row.opening .prog-content { font-size: 13px; font-weight: 600; color: #a43a42; display: flex; align-items: center; }
.prog-row.social .prog-time { color: #5a7a3a; }
.prog-row.social .prog-content { font-size: 13px; font-weight: 600; color: #5a7a3a; display: flex; align-items: center; }

/* ===== FACULTY ===== */
.faculty-section { background: var(--light-bg); }
.faculty-subtitle { text-align: center; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color:var(--dark); margin: 40px 0 20px; }
.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.faculty-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 600px; margin: 0 auto; }
.faculty-card { background: #fff; border-radius: 8px; overflow: hidden; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; }
.faculty-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.faculty-photo { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; }
.faculty-info { padding: 18px 14px; }
.faculty-name { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.faculty-role { font-size: 12px; color: var(--gold-x-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.faculty-inst { font-size: 12px; color:  var(--dark); line-height: 1.4; }

/* Speakers list */
.speakers-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 10px; }
.speaker-item { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 8px 14px; font-size: 13px; color: #555; }
.speaker-item .speaker-name { font-weight: 600; color: var(--dark); }
.speaker-item .speaker-city { font-size: 11px; color: var(--dark); margin-top: 2px; }

/* ===== SPONSORS ===== */
.sponsor-tier { margin-bottom: 50px; }
.sponsor-tier-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 24px;
  color: #aaa;
  position: relative;
}
.sponsor-tier-title::before, .sponsor-tier-title::after {
  content: '';
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--border);
  vertical-align: middle;
  margin: 0 12px;
}
.sponsor-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px; }
.sponsor-logo { height: 90px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(30%); opacity: .8; transition: opacity .2s, filter .2s; }
.sponsor-logo:hover { filter: none; opacity: 1; }

/* Patrocinio */
.patrocinio { margin-top: 20px; margin-bottom: 60px; }
.patrocinio-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px; }
.patrocinio-logos img { height: 60px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(20%); opacity: .75; transition: opacity .2s; }
.patrocinio-logos img:hover { opacity: 1; }

/* ===== FOOTER ===== */
footer { background: var(--dark); color: var(--light); padding: 50px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 30px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: var(--light); }
.footer-brand-h4, .footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col p, .footer-col address { font-size: 14px; font-style: normal; line-height: 1.8; color: rgba(255,255,255,.65); }
.footer-col a { color: rgba(255,255,255,.65); transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12px;
  color: var(--light);
}
a.footer-links { color: var(--light); font-size: 12px; transition: color .2s;text-decoration:underline; }
a.footer-links:hover { color: var(--gold); }

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 6px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 900;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { transform: translateY(-3px); }

/* ===== PRIVACY MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9999; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 8px; width: 90vw; max-width: 900px; height: 85vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--dark); color: #fff; }
.modal-header h3 { font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 700; }
.modal-close { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; padding: 0 4px; opacity: .7; transition: opacity .2s; }
.modal-close:hover { opacity: 1; }
.modal-iframe { flex: 1; border: none; width: 100%; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .pres-grid { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .prize-banner { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 768px) {
  .dir-sep { display: none; }
  .dir-name { display: block; }
  .dir-br { display: none; }
  .tab-br { display: inline; }
  .nav-has-dropdown:hover .nav-dropdown { display: none; }
  .nav-has-dropdown.open .nav-dropdown-arrow { transform: rotate(180deg); }
  .nav-has-dropdown.open .nav-dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border-radius: 4px;
    border-top: none;
    border-left: 3px solid var(--gold);
    margin: 4px 0 4px 16px;
    padding: 4px 0;
    min-width: 0;
  }
  nav { display: none; }
  nav.open { display: block; }
  nav.open ul {
    flex-direction: column;
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    gap: 4px;
  }
  .hamburger { display: flex; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-grid .footer-brand,
  .footer-grid .footer-col { text-align: center; }
  .footer-grid .footer-brand p,
  .footer-grid .footer-col address,
  .footer-grid .footer-col p { text-align: center; }
  .footer-brand img, .footer-brand-h4 { margin-left: auto; margin-right: auto;font-size: 0.85rem; }
  .forumservice-logo { margin-left: auto; margin-right: auto; }
  .tabs { overflow-x: auto; }
  .tab-btn { white-space: nowrap; }
  .session-moderator { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-sep { display: none; }
}
@media (max-width: 480px) {
  .faculty-grid, .faculty-grid-2 { grid-template-columns: 1fr 1fr; }
  .pres-info-grid { grid-template-columns: 1fr 1fr; }
}
