@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

@font-face {
  font-family: "Georgia SIF";
  src: url("assets/fonts/Georgia-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0f2a4b;
  --blue: #006c9f;
  --blue-deep: #07507d;
  --cyan: #75d7d0;
  --green: #6bccb8;
  --green-deep: #0b8f91;
  --green-soft: #e6faf6;
  --line: #cfd5dc;
  --font-title: "Georgia SIF", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-body);
}

.page-shell {
  width: min(100%, 1920px);
  margin: 0 auto;
  padding-right: clamp(30px, 4.8vw, 92px);
  padding-left: clamp(30px, 4.8vw, 92px);
}

.site-header {
  height: 112px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 42, 71, 0.08);
  position: relative;
  z-index: 10;
}

.navbar {
  min-height: 112px;
  padding: 0;
}

.navbar-brand {
  padding: 0;
}

.navbar-brand img {
  width: 318px;
  max-width: 46vw;
  height: auto;
  display: block;
}

.navbar-toggler {
  border: 0;
  box-shadow: none;
}

.navbar-nav .nav-link {
  color: #071f3e;
  font-size: 21px;
  font-weight: 700;
  padding: 12px 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #007ea9;
}

.dropdown-toggle::after {
  margin-left: 0.36rem;
  vertical-align: 0.12em;
}

.home-hero {
  min-height: 500px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(115deg, #074f7a 0%, #055d8a 100%);
}

.home-hero__art {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(7, 79, 122, 0.96) 0%, rgba(7, 79, 122, 0.72) 42%, rgba(5, 93, 138, 0.12) 100%),
    url("assets/kv-stamp-bg.png");
  background-repeat: no-repeat;
  background-size: cover, min(64vw, 980px) auto;
  background-position: center, right -90px center;
  opacity: 0.95;
}

.home-hero__content {
  position: relative;
  min-height: 500px;
  display: grid;
  justify-items: start;
  align-content: center;
  max-width: 1920px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #75d7d0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-heading h2 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0;
}

.hero-title-art {
  width: min(42vw, 540px);
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(0, 27, 48, 0.22));
}

.hero-date-art {
  width: min(36vw, 460px);
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 14px;
  filter: drop-shadow(0 12px 22px rgba(0, 27, 48, 0.18));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 800;
}

.hero-actions .btn-primary {
  background: #008dbd;
  border-color: #008dbd;
}

.quick-info {
  background: #fff;
  border-bottom: 1px solid #e6ebef;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.quick-grid article {
  padding: 24px 28px;
  border-right: 1px solid #e6ebef;
}

.quick-grid article:last-child {
  border-right: 0;
}

.quick-grid span {
  display: block;
  margin-bottom: 4px;
  color: #61708a;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.quick-grid strong {
  color: #0b4c83;
  font-size: 18px;
  line-height: 1.25;
}

.schedule-section {
  padding: 48px 0 58px;
  background: #f4f8fa;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  color: #0b4c83;
  font-size: clamp(32px, 3vw, 48px);
}

.schedule-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.schedule-tools {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 7px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.schedule-tools label {
  color: #0b4c83;
  font-weight: 800;
}

.schedule-tools .form-select {
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  color: #0f2a4b;
  background-color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 42, 75, 0.11);
}

.schedule-reset {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 2px;
}

.quick-type-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.quick-type-filter button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 6px 11px;
  color: #0b4c83;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quick-type-filter button:hover,
.quick-type-filter button:focus,
.quick-type-filter button.is-active {
  color: #fff;
  background: #0b4c83;
  text-decoration: none;
  outline: 0;
}

.btn-reset-filters {
  min-height: 38px;
  border: 1px solid rgba(11, 76, 131, 0.2);
  border-radius: 999px;
  padding: 8px 18px;
  color: #0b4c83;
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 42, 75, 0.08);
}

.btn-reset-filters:hover,
.btn-reset-filters:focus {
  color: #fff;
  background: #0b4c83;
  outline: 0;
}

.schedule-list {
  display: grid;
  gap: 10px;
}

.schedule-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  overflow: hidden;
  border: 1px solid #d8e2e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(12, 39, 66, 0.06);
}

.schedule-card--next {
  border-color: var(--green);
  background: linear-gradient(90deg, rgba(107, 204, 184, 0.18), #fff 42%);
  box-shadow: 0 12px 28px rgba(11, 143, 145, 0.18);
}

.schedule-card--next .schedule-card__time {
  background: var(--green-deep);
}

.schedule-card__time {
  display: grid;
  place-items: center;
  padding: 18px 14px;
  color: #fff;
  background: #007ea9;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.schedule-card__body {
  padding: 16px 18px 18px;
}

.schedule-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}

.schedule-card__meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  color: #0b4c83;
  background: #e6f6f4;
  font-size: 12px;
  font-weight: 800;
}

.schedule-card h3 {
  margin: 0;
  color: #0f2a4b;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.schedule-card__speakers {
  margin: 8px 0 0;
  color: #61708a;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.info-page {
  background: #f4f8fa;
}

.info-hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0 70px;
  color: #fff;
  background: linear-gradient(115deg, #074f7a 0%, #055d8a 100%);
}

.info-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/kv-stamp-bg.png") no-repeat right -120px center / min(56vw, 820px) auto;
  opacity: 0.18;
}

.info-hero .page-shell {
  position: relative;
  z-index: 1;
}

.info-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(42px, 4.2vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.info-hero p:last-child {
  max-width: 740px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
}

.info-content {
  padding: 46px 0 58px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.info-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid #d8e2e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 42, 75, 0.07);
}

.info-card--wide {
  margin-bottom: 18px;
}

.info-card__label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 4px 12px;
  color: #0b4c83;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.info-card h2 {
  margin: 0 0 14px;
  color: #0b4c83;
  font-family: var(--font-title);
  font-size: clamp(25px, 2vw, 34px);
  line-height: 1.12;
  letter-spacing: 0;
}

.info-card p,
.info-card li {
  color: #334761;
  font-size: 17px;
  line-height: 1.62;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-card a {
  color: #007ea9;
  font-weight: 700;
}

.reach-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.reach-grid div {
  padding: 16px;
  border-radius: 8px;
  background: #f4f8fa;
}

.reach-grid strong {
  display: block;
  margin-bottom: 6px;
  color: #0b4c83;
  font-size: 15px;
}

.fee-table {
  margin-bottom: 12px;
}

.fee-table th {
  color: #0b4c83;
  background: var(--green-soft);
  font-size: 13px;
  text-transform: uppercase;
}

.fee-table td,
.fee-table th {
  padding: 13px 14px;
}

.fee-table td:not(:first-child),
.fee-table th:not(:first-child) {
  width: 140px;
  text-align: right;
  font-weight: 800;
}

.info-note {
  color: #61708a;
  font-size: 13px;
  font-weight: 700;
}

.programme-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 10px;
  background: var(--green);
}

.programme-strip article {
  padding: 18px;
  border-radius: 8px;
  background: #fff;
}

.programme-strip span {
  display: block;
  margin-bottom: 4px;
  color: #61708a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.programme-strip strong {
  color: #0b4c83;
  font-size: 18px;
}

.info-list {
  padding-left: 20px;
  margin-bottom: 14px;
}

.hero-section {
  height: calc(100vh - 222px);
  min-height: 650px;
  max-height: 760px;
  position: relative;
  overflow: hidden;
  background: #075881;
}

.hero-art {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(5, 95, 135, 0.02), rgba(0, 91, 129, 0.18)),
    url("assets/sif-hero-kv.png?v=4");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center, left center;
}

.hero-art::after {
  content: "";
  position: absolute;
  top: 0;
  left: 48px;
  width: min(350px, 26vw);
  height: 116px;
  background: linear-gradient(90deg, #315d88 0%, #315d88 76%, rgba(49, 93, 136, 0) 100%);
}

.login-card {
  position: absolute;
  top: 44px;
  right: clamp(28px, 3.3vw, 52px);
  width: min(520px, calc(100% - 56px));
  min-height: 0;
  padding: 34px 40px 24px 44px;
  background: #fff;
  border: 1px solid rgba(18, 49, 75, 0.1);
  border-radius: 13px;
  box-shadow: 0 24px 52px rgba(0, 35, 65, 0.17);
}

.login-card h1 {
  margin: 0 98px 8px 0;
  color: #0b4c83;
  font-family: var(--font-title);
  font-size: 31px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
}

.login-copy {
  width: 320px;
  max-width: 100%;
  margin: 0 0 24px;
  color: #314b6d;
  font-size: 17px;
  line-height: 1.38;
  font-weight: 500;
}

.stamp-lines {
  position: absolute;
  top: 50px;
  right: -13px;
  width: 118px;
  height: 86px;
  overflow: hidden;
  opacity: 0.9;
}

.stamp-lines span {
  display: block;
  width: 145px;
  height: 18px;
  margin-bottom: 4px;
  border-top: 5px solid var(--cyan);
  border-radius: 50%;
  transform: rotate(8deg);
}

.form-label {
  margin-bottom: 8px;
  color: #2c405e;
  font-size: 16px;
  font-weight: 800;
}

.form-field {
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(11, 30, 52, 0.04);
}

.form-field .input-group-text {
  width: 58px;
  padding: 0 0 0 19px;
  color: var(--blue-deep);
  background: #fff;
  border: 0;
}

.form-field .form-control {
  color: #3e536f;
  border: 0;
  box-shadow: none;
  font-size: 16px;
  font-weight: 600;
}

.forgot-wrap {
  text-align: right;
  margin: 11px 0 21px;
}

.forgot-wrap a {
  color: #037ca6;
  font-size: 16px;
  font-weight: 700;
}

.btn-login {
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 0;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(90deg, #027bab, #007ea4);
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 13px 22px rgba(0, 107, 143, 0.2);
}

.btn-login:hover,
.btn-login:focus {
  color: #fff;
  background: linear-gradient(90deg, #006f9d, #006f92);
}

.register-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 13px;
  align-items: center;
  margin: 20px 0 13px;
}

.register-divider span {
  height: 1px;
  background: var(--line);
}

.register-divider p {
  margin: 0;
  color: #53637a;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.btn-register {
  min-width: 200px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #008dbd;
  border-radius: 25px;
  color: #067aa2;
  background: #fff;
  font-size: 18px;
  font-weight: 800;
}

.btn-register:hover,
.btn-register:focus {
  color: #fff;
  background: #007ea9;
  border-color: #007ea9;
}

.site-footer {
  min-height: 110px;
  background: #fff;
}

.footer-grid {
  min-height: 110px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.sponsor {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.sponsor span {
  color: #2c405e;
  font-size: 16px;
  font-weight: 600;
}

.sponsor img {
  width: 210px;
  height: auto;
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 7px;
}

.footer-links a {
  color: #61708a;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #007ea9;
  text-decoration: underline;
}

.powered-logo {
  width: 190px;
  height: auto;
  display: block;
  align-self: center;
  justify-self: end;
}

@media (max-width: 991.98px) {
  .site-header {
    height: auto;
  }

  .navbar {
    min-height: 86px;
    padding: 14px 0;
  }

  .navbar-collapse {
    padding-top: 18px;
  }

  .hero-section {
    min-height: 1040px;
  }

  .hero-art {
    background-size: auto 58%;
    background-position: left top;
  }

  .login-card {
    top: auto;
    right: 24px;
    bottom: 42px;
    left: 24px;
    width: auto;
  }

  .home-hero,
  .home-hero__content {
    min-height: 430px;
  }

  .home-hero__art {
    background-size: cover, 680px auto;
    background-position: center, right -260px center;
  }

  .hero-title-art {
    width: min(78vw, 520px);
  }

  .hero-date-art {
    width: min(72vw, 460px);
  }

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

  .quick-grid article {
    border-right: 0;
    border-bottom: 1px solid #e6ebef;
  }

  .quick-grid article:last-child {
    border-bottom: 0;
  }

  .info-grid,
  .programme-strip {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 575.98px) {
  .page-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .navbar-brand img {
    width: 238px;
    max-width: 68vw;
  }

  .hero-section {
    min-height: 960px;
  }

  .hero-art {
    background-size: auto 50%;
    background-position: 4% top;
  }

  .login-card {
    right: 16px;
    bottom: 28px;
    left: 16px;
    min-height: 0;
    padding: 36px 24px 27px;
  }

  .login-card h1 {
    margin-right: 76px;
    font-size: 27px;
  }

  .stamp-lines {
    right: -26px;
    width: 96px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .powered-logo {
    width: 170px;
    justify-self: start;
  }

  .home-hero,
  .home-hero__content {
    min-height: 420px;
  }

  .home-hero__art {
    background-size: cover, 560px auto;
    background-position: center, right -275px center;
  }

  .hero-title-art {
    width: 100%;
  }

  .hero-date-art {
    width: 100%;
    margin-top: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .schedule-section {
    padding: 36px 0 44px;
    background: #eef6f6;
  }

  .section-heading {
    display: block;
  }

  .schedule-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .schedule-tools {
    gap: 5px;
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }

  .schedule-tools label {
    padding-left: 2px;
    color: #074f7a;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .schedule-tools .form-select {
    min-height: 46px;
    padding: 8px 32px 8px 12px;
    border-radius: 13px;
    color: #092d4a;
    background-color: rgba(255, 255, 255, 0.96);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 42, 75, 0.08);
  }

  .schedule-reset {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 1px;
  }

  .quick-type-filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .quick-type-filter button {
    min-width: 0;
    min-height: 38px;
    padding: 7px 6px;
    background: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 42, 75, 0.06);
  }

  .btn-reset-filters {
    width: 100%;
    min-height: 48px;
    border-color: rgba(11, 76, 131, 0.08);
    border-radius: 16px;
    background: #fff;
    font-size: 14px;
  }

  .schedule-card {
    grid-template-columns: 1fr;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 42, 75, 0.08);
  }

  .schedule-card__time {
    place-items: start;
    padding: 12px 16px;
  }

  .schedule-card__body {
    padding: 14px 16px 16px;
  }

  .schedule-card h3 {
    font-size: 16px;
  }

  .info-hero {
    padding: 48px 0 52px;
  }

  .info-hero p:last-child {
    font-size: 15px;
  }

  .info-content {
    padding: 30px 0 42px;
  }

  .info-card {
    padding: 20px;
  }

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

  .fee-table {
    min-width: 0;
  }

  .fee-table thead {
    display: none;
  }

  .fee-table,
  .fee-table tbody,
  .fee-table tr,
  .fee-table td {
    display: block;
    width: 100%;
  }

  .fee-table tr {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #d8e2e9;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 42, 75, 0.07);
  }

  .fee-table td {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid #e8eef2;
    padding: 11px 14px;
    text-align: right;
    font-weight: 800;
  }

  .fee-table td:first-child {
    grid-template-columns: 1fr;
    color: #0f2a4b;
    background: var(--green-soft);
    text-align: left;
    font-size: 14px;
  }

  .fee-table td:last-child {
    border-bottom: 0;
  }

  .fee-table td::before {
    content: attr(data-label);
    color: #61708a;
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
  }

  .fee-table td:first-child::before {
    margin-bottom: 3px;
  }
}

/* Schermata temporanea: solo logo centrato */
.coming-soon-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
}
.coming-soon-main {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px;
}
.coming-soon-logo {
  display: block;
  width: min(540px, 85vw);
  max-height: 70vh;
  height: auto;
  object-fit: contain;
}

.section-heading .schedule-search {
  width: min(100%, 380px);
  margin-left: auto;
}

.schedule-search__field {
  position: relative;
}

.schedule-search__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #61708a;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

.schedule-search__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.schedule-search .form-control {
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  color: #0f2a4b;
  background-color: #fff;
  font-weight: 700;
  padding: 10px 16px 10px 46px;
  box-shadow: 0 8px 20px rgba(15, 42, 75, 0.11);
}

.schedule-search .form-control::placeholder {
  color: #61708a;
  font-weight: 500;
}

.schedule-search .form-control:focus,
.schedule-tools .form-select:focus {
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(15, 42, 75, 0.11), 0 0 0 2px rgba(11, 76, 131, 0.12);
}

.schedule-day-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.schedule-day-group {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.schedule-day-title {
  margin: 0;
  color: #0b4c83;
  font-family: var(--font-title);
  font-size: clamp(28px, 2.3vw, 36px);
}

.schedule-reset {
  justify-content: flex-end;
}

.schedule-current-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 46px;
  margin-right: auto;
  padding: 8px 14px;
  border-radius: 8px;
  background: #0ad30a;
  box-shadow: 0 8px 18px rgba(15, 42, 75, 0.06);
  color: #fff;
}

.schedule-current-date span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.schedule-current-date strong {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  text-transform: capitalize;
}

.schedule-card__meta .schedule-card__type--highlight {
  background: #0b4c83;
  color: #fff;
}

.schedule-card__type--sponsored {
  background: #7a3e0c;
  color: #fff;
}

.schedule-card__type--unrestricted {
  background: #1f4d7a;
  color: #fff;
}

.schedule-card__type--poster {
  background: #fff0d7;
  color: #7b4f00;
}

.schedule-card__type--ecm {
  background: #dff8f3;
  color: #096a64;
}

.schedule-card__type--non-ecm {
  background: #e7f0fb;
  color: #0b4c83;
}

@media (max-width: 1100px) {
  .schedule-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .section-heading {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .section-heading .schedule-search {
    width: 100%;
    margin-left: 0;
  }

  .schedule-day-grid {
    grid-template-columns: 1fr;
  }

  .schedule-reset {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-current-date {
    margin-right: 0;
  }
}

@media (max-width: 575.98px) {
  .schedule-current-date {
    padding: 10px 12px;
  }

  .schedule-current-date strong {
    font-size:23px;
  }

  .schedule-day-grid .schedule-card {
    grid-template-columns: 1fr;
  }
}

/* Programma: tre colonne per ogni giorno e per "Tutti i giorni" su desktop. */
@media (min-width: 992px) {
  /* Tre colonne soltanto per le schede: il contenitore dei giorni
     deve restare a larghezza piena anche per un singolo giorno. */
  .schedule-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-day-group {
    min-width: 0;
    width: 100%;
  }

  .schedule-day-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .schedule-list > .schedule-card,
  .schedule-day-grid > .schedule-card {
    grid-template-columns: 100px minmax(0, 1fr);
    min-width: 0;
  }

  .schedule-list > .schedule-empty {
    grid-column: 1 / -1;
  }
}

/* La data odierna non deve duplicare la data selezionata. */
.schedule-current-date[hidden] {
  display: none !important;
}

/* Mobile: filtri tipologia, pulsante "Vedi tutto", poi data odierna. */
@media (max-width: 767.98px) {
  .schedule-reset {
    display: flex;
    flex-direction: column;
  }
  .schedule-reset .quick-type-filter { order: 1; }
  .schedule-reset .btn-reset-filters { order: 2; }
  .schedule-reset .schedule-current-date { order: 3; }
}

/* Download timetable vicino alla ricerca del programma */
.schedule-heading-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  min-width: 0;
}
.section-heading .schedule-heading-actions .schedule-search {
  width: clamp(220px, 25vw, 380px);
  margin-left: 0;
}
.schedule-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 46px;
  padding: 10px 16px;
  background: #0b4c83;
  border-radius: 7px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 42, 75, .11);
}
.schedule-download:hover, .schedule-download:focus {
  color: #fff;
  background: #007ea9;
}
.schedule-download svg { width: 19px; height: 19px; flex-shrink: 0; }
@media (max-width: 1100px) {
  .section-heading { flex-wrap: wrap; }
  .schedule-heading-actions { width: 100%; justify-content: space-between; }
  .section-heading .schedule-heading-actions .schedule-search { width: min(100%, 380px); }
}
@media (max-width: 767.98px) {
  .schedule-heading-actions { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .section-heading .schedule-heading-actions .schedule-search { width: 100%; }
  .schedule-download { justify-content: center; }
}


/* Data del programma: intestazione visibile per ogni giornata. */
.schedule-day-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 18px;
  border-radius: 8px;
  background: #16856b;
  box-shadow: 0 8px 22px rgba(22, 133, 107, .24);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(19px, 1.7vw, 25px);
}
.schedule-day-today {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  color: #0b4c83;
  background: #75d7d0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}


/* Accordion soltanto con "Tutti i giorni" su mobile. */
.schedule-day-accordion-header { position: relative; }
.schedule-day-toggle { display: none; }
@media (max-width: 767.98px) {
  /* Giorno, Sala, Orario, Relatore: uno per riga. */
  .schedule-filters {
    grid-template-columns: minmax(0, 1fr);
  }
  .schedule-tools {
    grid-column: 1 / -1;
  }
  .schedule-reset {
    grid-column: 1 / -1;
  }
  .schedule-day-group--accordion .schedule-day-accordion-header {
    display: flex;
    align-items: stretch;
  }
  .schedule-day-group--accordion .schedule-day-title {
    flex: 1;
    min-width: 0;
    padding-right: 54px;
  }
  .schedule-day-group--accordion .schedule-day-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 38px;
    height: 38px;
    padding: 6px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .14);
    cursor: pointer;
  }
  .schedule-day-toggle svg {
    width: 22px;
    height: 22px;
    transition: transform .2s ease;
  }
  .schedule-day-group--accordion.is-open .schedule-day-toggle svg {
    transform: rotate(180deg);
  }
  .schedule-day-group--accordion:not(.is-open) .schedule-day-grid {
    display: none;
  }
}

/* Rifiniture tipografia e accordion su smartphone */
@media (max-width: 767.98px) {
  .section-heading h2 {
    font-size: clamp(34px, 7vw, 42px);
    line-height: 1.15;
  }

  .schedule-tools label {
    font-size: 17px;
  }

  .schedule-tools .form-select {
    min-height: 54px;
    font-size: 17px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .schedule-day-title {
    font-size: clamp(21px, 5.3vw, 25px);
    line-height: 1.3;
  }

  .schedule-card h3 {
    font-size: 19px;
  }

  .schedule-day-group--accordion .schedule-day-accordion-header {
    position: relative;
    align-items: center;
    margin-bottom: 14px;
  }

  .schedule-day-group--accordion .schedule-day-title {
    margin-bottom: 0;
    padding-right: 62px;
  }

  .schedule-day-group--accordion .schedule-day-toggle {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    flex: none;
  }

  .schedule-day-toggle svg {
    display: block;
    flex: none;
  }
}

/* Legal placeholder and contacts pages */
.legal-coming-soon {
  text-align: center;
  padding: clamp(40px, 6vw, 90px) 28px;
}
.legal-coming-soon h2 { font-size: clamp(32px, 3vw, 46px); }
.legal-coming-soon p { max-width: 560px; margin: 0 auto 24px; }
.legal-back-link { color: #07507d; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.legal-back-link:hover { color: #0b8f91; }
.contact-grid { align-items: stretch; }
.contact-grid .info-card h2 { overflow-wrap: anywhere; }
.contact-venue { margin-top: 18px; }
@media (max-width: 767.98px) {
  .legal-coming-soon { padding: 44px 22px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Due pulsanti PDF: affiancati quando c'è spazio, impilati su mobile. */
.schedule-heading-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 1100px) {
  .schedule-heading-actions { justify-content: flex-start; }
  .section-heading .schedule-heading-actions .schedule-search { flex: 1 1 270px; }
}
@media (max-width: 767.98px) {
  .schedule-heading-actions { flex-direction: column; align-items: stretch; }
  .section-heading .schedule-heading-actions .schedule-search { order: -1; flex: initial; }
  .schedule-download { width: 100%; }
}

/* Programme Information: sezione MY ECM in carattere ridotto */
.programme-intro {
  margin: 0 0 16px;
  color: #334761;
  font-size: 16px;
  font-weight: 600;
}
.programme-my-ecm {
  padding: 22px 28px;
}
.programme-my-ecm p,
.programme-my-ecm li {
  font-size: 13px;
  line-height: 1.55;
}
.programme-my-ecm .info-card__label {
  font-size: 11px;
}

/* Logo della segreteria organizzativa nel banner principale */
.home-hero__content .hero-organizer-logo {
  margin-top: 26px;
  padding: 12px 18px;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(0, 27, 48, .16);
  max-width: 100%;
}
.home-hero__content .hero-organizer-logo img {
  display: block;
  width: 175px;
  max-width: 100%;
  height: auto;
}
@media (max-width: 575.98px) {
  .home-hero__content .hero-organizer-logo {
    margin-top: 20px;
    padding: 10px 14px;
  }
  .home-hero__content .hero-organizer-logo img {
    width: 145px;
  }
}

/* Logo 3P Solution: ancorato in basso a destra nel banner */
.home-hero__content .hero-organizer-logo {
  position: absolute;
  right: clamp(30px, 4.8vw, 92px);
  bottom: 28px;
  margin-top: 0;
  z-index: 1;
}
@media (max-width: 767.98px) {
  .home-hero__content {
    padding-bottom: 116px; /* spazio riservato al logo, senza sovrapporre la data */
  }
  .home-hero__content .hero-organizer-logo {
    right: clamp(30px, 4.8vw, 92px);
    bottom: 20px;
    margin-top: 0;
  }
}

/* Da 1280px: titolo, due download e ricerca sempre sulla stessa riga. */
@media (min-width: 1280px) {
  .schedule-section .section-heading {
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(12px, 1.3vw, 22px);
  }
  .schedule-section .section-heading h2 {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: clamp(30px, 2.55vw, 44px);
  }
  .schedule-section .schedule-heading-actions {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(8px, .9vw, 14px);
    min-width: 0;
    width: auto;
  }
  .schedule-section .schedule-download {
    flex-shrink: 0;
    white-space: nowrap;
    padding-inline: clamp(10px, 1vw, 16px);
    font-size: clamp(13px, 1.05vw, 17px);
  }
  .schedule-section .section-heading .schedule-heading-actions .schedule-search {
    flex: 0 1 clamp(195px, 17vw, 320px);
    width: clamp(195px, 17vw, 320px);
    min-width: 175px;
  }
}

/* Hamburger mobile: nessun alone/bordo luminoso in stato attivo o focus. */
@media (max-width: 991.98px) {
  .navbar-toggler,
  .navbar-toggler:hover,
  .navbar-toggler:active,
  .navbar-toggler:focus,
  .navbar-toggler:focus-visible,
  .navbar-toggler[aria-expanded="true"] {
    border: 0;
    outline: 0;
    box-shadow: none;
  }
}

/* Navbar mobile: rimuove tutti i contorni del pulsante hamburger anche dopo il tap. */
@media (max-width: 991.98px) {
  .site-header .navbar .navbar-toggler,
  .site-header .navbar .navbar-toggler:hover,
  .site-header .navbar .navbar-toggler:focus,
  .site-header .navbar .navbar-toggler:focus-visible,
  .site-header .navbar .navbar-toggler:active,
  .site-header .navbar .navbar-toggler[aria-expanded="true"] {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-image: none;
    -webkit-tap-highlight-color: transparent;
  }
  .site-header .navbar .navbar-toggler .navbar-toggler-icon {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }
}


/* Da 1080 px: titolo, download e ricerca sulla medesima riga.
   Override degli stili precedenti per 1100 e 1280 px. */
@media (min-width: 1080px) {
  .schedule-section .section-heading {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(10px, 1vw, 18px);
  }
  .schedule-section .section-heading h2 {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
    font-size: clamp(26px, 2.25vw, 40px);
  }
  .schedule-section .schedule-heading-actions {
    display: flex;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin-left: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(6px, .65vw, 12px);
  }
  .schedule-section .schedule-download {
    flex: 0 0 auto;
    white-space: nowrap;
    gap: 6px;
    padding-inline: clamp(9px, .85vw, 16px);
    font-size: clamp(12px, .98vw, 16px);
  }
  .schedule-section .schedule-download svg {
    width: 16px;
    height: 16px;
  }
  .schedule-section .section-heading .schedule-heading-actions .schedule-search {
    flex: 1 1 185px;
    width: auto;
    min-width: 165px;
    max-width: 300px;
    margin-left: 0;
  }
  .schedule-section .schedule-search .form-control {
    min-width: 0;
    padding-left: 37px;
    padding-right: 8px;
    font-size: clamp(12px, .95vw, 15px);
  }
  .schedule-section .schedule-search .form-control::placeholder {
    font-size: inherit;
  }
  .schedule-section .schedule-search__icon {
    left: 11px;
    width: 16px;
    height: 16px;
  }
  .schedule-section .schedule-search__icon svg {
    width: 16px;
    height: 16px;
  }
}


/* Accordion desktop: freccia integrata nella barra verde del giorno. */
@media (min-width: 768px) {
  .schedule-day-group--accordion .schedule-day-accordion-header {
    display: flex;
    position: relative;
    align-items: stretch;
    margin-bottom: 14px;
  }
  .schedule-day-group--accordion .schedule-day-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding-right: 68px;
  }
  .schedule-day-group--accordion .schedule-day-toggle {
    display: inline-flex;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 6px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .14);
    cursor: pointer;
    transition: background-color .2s ease;
  }
  .schedule-day-group--accordion .schedule-day-toggle:hover,
  .schedule-day-group--accordion .schedule-day-toggle:focus-visible {
    background: rgba(0, 0, 0, .26);
  }
  .schedule-day-group--accordion .schedule-day-toggle:focus-visible {
    outline: 3px solid #75d7d0;
    outline-offset: 2px;
  }
  .schedule-day-group--accordion .schedule-day-toggle svg {
    display: block;
    width: 22px;
    height: 22px;
    transition: transform .2s ease;
  }
  .schedule-day-group--accordion.is-open .schedule-day-toggle svg {
    transform: rotate(180deg);
  }
  .schedule-day-group--accordion:not(.is-open) .schedule-day-grid {
    display: none;
  }
}
