@import url('https://fonts.cdnfonts.com/css/general-sans');

html.gm-loading,
html.gm-loading body {
	overflow: hidden !important;
	overscroll-behavior: none;
	-webkit-overflow-scrolling: auto !important;
	height: 100%;
}
#gm-scale-wrap {
	width: 222px;
	height: 150px;
	transform-origin: center center;
	-webkit-transform-origin: center center;
	will-change: transform;
}

/* ── Wrapper principale ────────────────────────────────────────────────── */
#gm-st {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 80px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #111;
  overflow-x: clip;          /* impedisce al cerchio di sforare lateralmente */
}

#gm-st-circle-wrap {
  position: absolute;
  top: -60px;
  left: 50%;
  width: 1118px;
  max-width: 100vw;
  aspect-ratio: 1 / 1;
  pointer-events: none;
  color: #1F4C91;
  will-change: transform;
}
#gm-st-circle-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
}
#gm-st-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding-top: 6px;
	padding-bottom: 80px;
}

/* ── Tick verticale in cima ────────────────────────────────────────────── */
#gm-st-tick {
  width: 2px;
  height: 56px;
  background: #0393d2;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  left:-.5px;
}

#gm-st-tick::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0393d2;
}

#gm-st-year-wrap {
  position: relative;
  height: clamp(60px, 12vw, 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin-top: 40px;
}

.gm-st-year {
  position: absolute;
  font-size:clamp(40px, 6vw, 80px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #111;
  white-space: nowrap;
  will-change: opacity, transform;
}

.gm-st-side-year {
  position: absolute;
  font-size: 12px;
  letter-spacing: .06em;
  color: #888;
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
}

#gm-st-side-l2 { bottom: 38%; left:  calc(50% - min(430px, 40vw)); }
#gm-st-side-l1 { bottom: 52%; left:  calc(50% - min(320px, 30vw)); }
#gm-st-side-r1 { bottom: 52%; right: calc(50% - min(320px, 30vw)); }
#gm-st-side-r2 { bottom: 38%; right: calc(50% - min(430px, 40vw)); }


/* ── Testo descrittivo ─────────────────────────────────────────────────── */
#gm-st-content {
  position: relative;
  z-index: 2;
  margin-top: 32px;
  width: min(620px, 100%);
  text-align: center;
}


#gm-st-text-wrap {
  position: relative;
  min-height: 100px;
}

.gm-st-text-layer {
  position: absolute;
  inset: 0;
  font-size: 18px;
  line-height: 1.4;
  color: #444;
  will-change: opacity, transform;
}

.gm-st-text-layer p { margin: 0; }

/* ── Navigazione ───────────────────────────────────────────────────────── */
#gm-st-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}

#gm-st-prev,
#gm-st-next {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  color: #1F4C91;
  opacity: .45;
  transition: opacity .2s;
  flex-shrink: 0;
}

#gm-st-prev:hover,
#gm-st-next:hover { opacity: 1; }

#gm-st-prev svg,
#gm-st-next svg {
  display: block;
  width: 40px;
  height: 40px;
}

/* ── Dots ──────────────────────────────────────────────────────────────── */
#gm-st-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gm-st-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1F4C91;
  opacity: .2;
  cursor: pointer;
  transition: opacity .25s, transform .25s;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.gm-st-dot.is-active {
  opacity: 1;
  transform: scale(1.6);
}


#gm-st-img-wrap {
    position: relative;
    z-index: 2;
    width: clamp(300px, 30vw, 380px);
    aspect-ratio: 3 / 2;
    margin: 24px auto 0;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.gm-st-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: opacity;
}


/**** Marquee *****/
.marquee {
	position: relative;
	overflow: hidden;
}

.marquee-inner {
	display: flex;
	width: fit-content;
	flex: auto;
	flex-direction: row;
}
.marquee-part {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	padding: 0 0 0 60px;
}
.marquee-img {
	width: 50px;
	margin: 0 -60px;
}
.marquee-img img{
	min-width:50px;
	width:100%;
}
.marquee-text{
	color: #BAE5FE;
	font-size: 3em;
	font-weight: 600;
}
#processo-fasi-pin .uk-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "header"
    "phases";
  align-items: start;
}

#processo-fasi-pin .uk-container > *:first-child {
  grid-area: header;
}

#processo-fasi-pin .fase-1,
#processo-fasi-pin .fase-2,
#processo-fasi-pin .fase-3,
#processo-fasi-pin .fase-4,
#processo-fasi-pin .fase-5 {
  grid-area: phases;
  margin-top: 0 !important;
  will-change: opacity;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  #gm-st-circle-wrap {
    top: -30px;
    width: 110vw;
  }

  #gm-st-side-l2 { bottom: 35%; left:  calc(50% - 38vw); }
  #gm-st-side-l1 { bottom: 50%; left:  calc(50% - 26vw); }
  #gm-st-side-r1 { bottom: 50%; right: calc(50% - 26vw); }
  #gm-st-side-r2 { bottom: 35%; right: calc(50% - 38vw); }
}



@media (max-width: 768px) {
    #processo-fasi-pin .uk-container {
    display: block;
  }
  #processo-fasi-pin .fase-1,
  #processo-fasi-pin .fase-2,
  #processo-fasi-pin .fase-3,
  #processo-fasi-pin .fase-4,
  #processo-fasi-pin .fase-5 {
    opacity: 1 !important;
    margin-top: 60px !important;
  }
}
@media (max-width: 680px) {
	.uk-nav-default .uk-nav-sub a {
    color: #014c97;
    line-height: 1.2;
    padding-bottom: 16px;
}
.uk-nav-default > li > a {
    color: #014c97;
    opacity: 1 !important;
    padding-bottom: 16px;
}
#gm-st {
    padding: 30px 16px 60px;
    --gm-circle-bleed: 3%;
  }

  .gm-st-side-year {
    display: none;
  }

  #gm-st-circle-wrap {
    top: calc(-1 * var(--gm-circle-bleed));
    left: 50%;
    height: calc(100% + 2 * var(--gm-circle-bleed));
    width: auto;          /* la deriva aspect-ratio */
    max-width: none;      /* annulla il max-width: 100vw della regola base */
    aspect-ratio: 1 / 1;
    opacity: .5;
    
  }

  .gm-st-year {
    font-size: clamp(48px, 16vw, 90px);
  }

  #gm-st-img-wrap {
    width: 70vw;
    margin-top: 20px;
  }

  .gm-st-text-layer {
    font-size: 18px;
    line-height: 1.5;
  }

  #gm-st-nav {
    margin-top: 36px;
    gap: 16px;
  }
	
	html {
		font-size: 17px;
	}
}