* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f5f0;
  color: #20201e;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

.container {
  width: min(1080px, calc(100% - 40px));
  margin: auto;
}

.external-link {
  color: #ff6602;
  text-decoration: none;
  font-weight: 600;
}

.external-link:hover,
.external-link:focus {
  color: #20201e;
  text-decoration: underline;
}

/* =========================
   HEADER E NAVIGAZIONE
   ========================= */

.site-header {
  background: #20201e;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  flex: 1;
}

.nav-wrap nav {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.nav-button {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid #666;
  border-radius: 3px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-button:hover,
.nav-button.active {
  background: #fff;
  color: #20201e;
}

/* =========================
   HERO
   ========================= */

.hero-image {
  height: 330px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.placeholder {
  background: #ddd9d0;
  color: #777;
  text-align: center;
}

.placeholder span {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.placeholder small {
  font-size: 0.75rem;
}

/* =========================
   INTRODUZIONE / TITOLI
   ========================= */

.intro-head,
.page-head {
  padding-top: 72px;
  padding-bottom: 30px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #716d63;
}

.intro-head h1,
.page-head h1 {
  font-family: Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.03;
  font-weight: 400;
  margin: 0 0 16px;
  max-width: 900px;
}

.subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 760px;
}

.presentation {
  max-width: 820px;
  margin-top: 20px;
  font-size: 1.1rem;
}

.quick-links {
  display: flex;
  gap: 12px;
  margin-top: 48px;
  max-width: 820px;
}

.quick-links a,
.route-button {
  background: #20201e;
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 3px;
  display: inline-block;
}

/* =========================
   NAVIGAZIONE PROGRAMMA
   ========================= */

.programme-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.programme-nav-button {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #20201e;
  border-radius: 3px;
  background: #fff;
  color: #20201e;
  text-decoration: none;
  font-size: 0.85rem;
}

.programme-nav-button:hover,
.programme-nav-button.active {
  background: #20201e;
  color: #fff;
}



/* =========================
   PARTNER
   ========================= */

.partners {
  padding: 70px 0;
}

.divider {
  height: 1px;
  background: #cbc7be;
  margin-bottom: 32px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.logo-placeholder {
  height: 90px;
  border: 1px dashed #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.logo-placeholder img {
  max-width: 90%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-spacer {
  height: 30px;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  border-top: 1px solid #d4d0c8;
  padding: 25px 0;
  margin-top: 40px;
  font-size: 0.82rem;
  color: #777;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.site-footer a {
  color: inherit;
}

/* =========================
   PROGRAMMA
   ========================= */

.programme-day {
  margin-bottom: 55px;
}

.programme-day h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 1.7rem;
  border-bottom: 1px solid #c8c4bb;
  padding-bottom: 12px;
}

.session {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 25px;
  padding: 20px 0;
  border-bottom: 1px solid #dedbd4;
}

.session time {
  font-weight: 700;
  font-size: 0.95rem;
}

.session h3 {
  margin: 3px 0;
  font-size: 1.15rem;
}

.session-title {
  font-size: 1.3rem;
  text-transform: uppercase;
  font-weight: 400;
  margin: 45px 0 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #c8c4bb;
}

.session p {
  margin: 0;
  color: #555;
}

.type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777;
}

.session-map-link {
  display: inline-block;
  margin-top: 8px;
  color: #20201e;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.session-map-link:hover {
  text-decoration: underline;
}

/* =========================
   ABSTRACT ESPANDIBILI
   ========================= */

.abstract-toggle {
  margin-top: 12px;
  padding: 9px 15px;
  border: 1px solid #20201e;
  border-radius: 3px;
  background: #20201e;
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
}

.abstract-toggle:hover {
  background: #fff;
  color: #20201e;
}

.abstract-content {
  display: none;
  margin-top: 12px;
  color: #555;
}

.abstract-content.open {
  display: block;
}

/* =========================
   DOWNLOAD
   ========================= */

.downloads {
  background: #ebe7de;
  padding: 30px;
  margin-bottom: 50px;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.download-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  background: #fff;
  color: #20201e;
  text-decoration: none;
  border: 1px solid #ccc;
}

.download-card span {
  color: #777;
  font-size: 0.8rem;
}

/* =========================
   SEDI E CONTATTI
   ========================= */

.locations {
  display: grid;
  gap: 55px;
}

.location {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 45px;
  align-items: center;
}

.location h2,
.contacts h2,
.legal h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 2rem;
}

.map-placeholder {
  min-height: 260px;
  background: #dedbd4;
  border: 1px solid #c7c3ba;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #777;
}

.route-button {
  margin-top: 10px;
  font-size: 0.85rem;
}

.contacts {
  margin-top: 65px;
}

.contact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact {
  background: #ebe7de;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.contact a {
  color: #20201e;
  margin-top: 8px;
}

.contact span {
  color: #777;
  font-size: 0.85rem;
}

.note {
  font-size: 0.8rem;
  color: #777;
  margin-top: 25px;
}

.map-load {
  display: inline-block;
  margin-top: 5px;
  padding: 10px 18px;
  border: 1px solid #20201e;
  border-radius: 3px;
  background: #20201e;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-load:hover {
  background: #fff;
  color: #20201e;
}

.map-consent small {
  display: block;
  max-width: 280px;
  margin: 14px auto 0;
  color: #777;
  font-size: 0.75rem;
  line-height: 1.5;
}

/* =========================
   NOTE LEGALI
   ========================= */

.legal {
  padding-top: 70px;
  max-width: 820px;
}

/* =========================
   COOKIE BANNER
   ========================= */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 100;
  background: #20201e;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  font-size: 0.85rem;
}

.cookie-banner a {
  color: #fff;
}

.cookie-banner button {
  border: 0;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 700;
}


/* =========================
   VERSIONE TABLET
   ========================= */

@media (min-width: 761px) and (max-width: 1024px) {

  .hero-image {
    height: 230px;
    overflow: hidden;
  }

  .hero-image img {
    width: auto;
    height: 230px;
    max-width: none;
    flex-shrink: 0;
  }

}

/* =========================
   VERSIONE MOBILE
   ========================= */

@media (max-width: 760px) {

  .nav-wrap {
    align-items: flex-start;
    padding: 15px 0;
    flex-direction: column;
  }

  .hero-image {
    height: 230px;
    overflow: hidden;
  }

  .hero-image img {
    width: auto;
    height: 230px;
    max-width: none;
    flex-shrink: 0;
  }

  .intro-head,
  .page-head {
    padding-top: 75px;
  }

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-grid .logo-placeholder:last-child {
    grid-column: span 2;
  }

  .location {
    grid-template-columns: 1fr;
  }

  .download-grid,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .session {
    grid-template-columns: 65px 1fr;
  }

  .quick-links {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-links a {
    width: 100%;
    text-align: center;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
    flex-direction: column;
    align-items: flex-start;
    overflow-wrap: break-word;
  }

  .site-footer .container {
    flex-direction: column;
  }

}

