@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: 15px;
  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;
}
