:root {
  --color-primary: #326696;
  --color-primary-rgb: 50, 102, 150;
  --color-secondary: #670140;
  --color-secondary-rgb: 103, 1, 64;
  --color-black: #323232;
  --color-black-rgb: 51, 51, 51;
  --vh: 100vh;
}
@font-face {
  font-family: 'Postmark';
  src: url('/assets/fonts/Postmark.woff2') format('woff2'),
       url('/assets/fonts/Postmark.woff') format('woff'),
       url('/assets/fonts/Postmark.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Migliora caricamento web */
}

.hanken-grotesk {
  font-family: "Hanken Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

html,
body {
  overflow: hidden;
  height: 100%;
}

body {
  font-family: "Postmark", sans-serif;
  font-weight: 400;
  background-color: #e7e7e7;
  color: var(--color-black);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container-fluid {
  padding-left: 25px;
  padding-right: 25px;
}

.navbar .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 1200px) {
  .container-fluid {
    padding-left: 55px;
    padding-right: 55px;
  }
}

.navbar {
  background-color: #e7e7e7;
  transition: all 0.3s ease;
}

.navbar.shrink {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.navbar-brand img {
  max-height: 60px;
  transition: filter 0.3s ease;
}

@media (min-width: 1200px) {
  .navbar-brand img {
    max-height: 80px;
  }
}

.navbar-nav .nav-link {
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FFF;
}

.navbar-nav .nav-link:hover,
.navbar-nav .active .nav-link {
  color: var(--color-black);
}

.navbar-toggler {
  border: 0;
  padding: 0;
}

.navbar-toggler.white-toggler-icon {
  filter: invert(100%);
}

.navbar-toggler.black-toggler-icon {
  filter: invert(0%);
}

.zd-navbar-home .navbar-nav .page-technical .nav-link,
.zd-navbar-home .navbar-nav .page-artistic .nav-link {
  color: var(--color-secondary);
}

.zd-navbar-home .navbar-nav .page-about .nav-link,
.zd-navbar-home .navbar-nav .page-contact .nav-link {
  color: var(--color-primary);
}

.zd-navbar-home .navbar-nav .page-success .nav-link,
.zd-navbar-home .navbar-nav .link-studio .nav-link {
  color: var(--color-black);
}

/* Quando siamo su sezione bg-primary */
.zd-navbar-primary {
  background-color: var(--color-primary);
}

.zd-navbar-primary .navbar-nav .nav-link {
  color: #FFF;
  opacity: 0.18;
}

.zd-navbar-primary .navbar-nav .nav-link:hover,
.zd-navbar-primary .navbar-nav .active .nav-link {
  opacity: 1;
}

/* Navbar su sezione viola secondaria */
.zd-navbar-secondary {
  background-color: var(--color-secondary);
}

.zd-navbar-secondary .navbar-nav .nav-link {
  color: #FFF;
  opacity: 0.12;
}

.zd-navbar-secondary .navbar-nav .nav-link:hover,
.zd-navbar-secondary .navbar-nav .active .nav-link {
  opacity: 1;
}

@media (min-width:992px) {
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.section {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--vh));
  min-height: 100vh;
  text-align: center;
  box-sizing: border-box;
  line-height: 1;
}

.zd-bg-primary {
  background-color: var(--color-primary);
}

.zd-bg-secondary {
  background-color: var(--color-secondary);
}

/*
--- --- --- --- --- --- --- --- ---
BACK TO TOP
--- --- --- --- --- --- --- --- ---
*/

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: white;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
}

#backToTop svg {
  pointer-events: none;
}

/*
--- --- --- --- --- --- --- --- ---
TESTO
--- --- --- --- --- --- --- --- ---
*/

/* BASE */
.fs-small-1 { font-size: 14px; }
.fs-small-2 { font-size: 17px; }
.fs-small-3 { font-size: 20px; }

.fs-medium-1 { font-size: 22px; }
.fs-medium-2 { font-size: 28px; }
.fs-medium-3 { font-size: 32px; }

.fs-big-1 { font-size: 34px; }
.fs-big-2 { font-size: 40px; }
.fs-big-3 { font-size: 46px; }

.fs-extra { font-size: 56px; }

@media (min-width: 600px) {
  .fs-small-1 { font-size: 20px; }
  .fs-small-2 { font-size: 28px; }
  .fs-small-3 { font-size: 36px; }

  .fs-medium-1 { font-size: 40px; }
  .fs-medium-2 { font-size: 46px; }
  .fs-medium-3 { font-size: 52px; }

  .fs-big-1 { font-size: 58px; }
  .fs-big-2 { font-size: 64px; }
  .fs-big-3 { font-size: 70px; }

  .fs-extra { font-size: 80px; }
}

@media (min-width: 1200px) {
  .fs-small-1 { font-size: 40px; }
  .fs-small-2 { font-size: 48px; }
  .fs-small-3 { font-size: 57px; }

  .fs-medium-1 { font-size: 66px; }
  .fs-medium-2 { font-size: 75px; }
  .fs-medium-3 { font-size: 84px; }

  .fs-big-1 { font-size: 95px; }
  .fs-big-2 { font-size: 103px; }
  .fs-big-3 { font-size: 112px; }

  .fs-extra { font-size: 126px; }
}

@media (min-width: 1600px) {
  .fs-small-1 { font-size: 44px; }
  .fs-small-2 { font-size: 55px; }
  .fs-small-3 { font-size: 64px; }

  .fs-medium-1 { font-size: 72px; }
  .fs-medium-2 { font-size: 81px; }
  .fs-medium-3 { font-size: 90px; }

  .fs-big-1 { font-size: 100px; }
  .fs-big-2 { font-size: 110px; }
  .fs-big-3 { font-size: 118px; }

  .fs-extra { font-size: 136px; }
}

/* BASE */
.lh-small,
.lh-medium,
.lh-big,
.lh-extra  {
  line-height: 1;
} 

@media (min-width: 800px) {
  .lh-small  { line-height: 26px; }  /* fs-small-2 = 32px */
  .lh-medium { line-height: 48px; }  /* fs-medium-2 = 58px */
  .lh-big    { line-height: 65px; } /* fs-big-2 = 78px */
  .lh-extra  { line-height: 80px; } /* fs-extra = 96px */
}

@media (min-width: 1200px) {
  .lh-small  { line-height: 40px; }   /* fs-small-2 = 48px */
  .lh-medium { line-height: 60px; }  /* fs-medium-2 = 75px */
  .lh-big    { line-height: 82px; }  /* fs-big-2 = 103px */
  .lh-extra  { line-height: 100px; }  /* fs-extra = 126px */
}

@media (min-width: 1600px) {
  .lh-small  { line-height: 45px; }   /* fs-small-2 = 55px */
  .lh-medium { line-height: 65px; }  /* fs-medium-2 = 81px */
  .lh-big    { line-height: 90px; }  /* fs-big-2 = 110px */
  .lh-extra  { line-height: 110px; }  /* fs-extra = 136px */
}

/*
--- --- --- --- --- --- --- --- ---
VARIAZIONI ALLE GRANDEZZE DEI TESTI DA MOBILE
--- --- --- --- --- --- --- --- ---
*/

@media (max-width: 799.99px) {

  #t0 .fs-medium-3 {
    font-size: 40px;
    letter-spacing: -0.5px;
  }
  #t1 .fs-big-1 {
    font-size: 70px;
  }
  #a0 .fs-medium-3 {
    font-size: 40px;
    letter-spacing: -0.5px;
  }

}

@media (max-width: 599.99px) {

  #t0 .fs-medium-3 {
    font-size: 30px;
    letter-spacing: -0.5px;
  }
  #t1 .fs-big-1 {
    font-size: 46px;
  }
  #a0 .fs-medium-3 {
    font-size: 30px;
    letter-spacing: -0.5px;
  }

}

/*
--- --- --- --- --- --- --- --- ---
BOX POS. ASSOLUTO
--- --- --- --- --- --- --- --- ---
*/

.abs-box {
  position: absolute;
  white-space: nowrap;
}

.abs-box > div {
  position: relative;
}

.top-left {
  top: 22%;
  left: 75px;
  text-align: left;
}

.top-center {
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.top-right {
  top: 22%;
  right: 75px;
  text-align: right;
}

.top-left.ios-top,
.top-center.ios-top,
.top-right.ios-top {
  top: calc(80px + 22%);
}

.center-center {
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.center-center.ios-center {
  top: calc(40px + 55%); /* 40px è la metà di 80px */
}

.bottom-left {
  bottom: 18%;
  left: 75px;
  text-align: left;
}

.bottom-center-left {
  bottom: 18%;
  left: 20%;
  text-align: left;
}

.bottom-center {
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.bottom-center-right {
  bottom: 18%;
  right: 20%;
  text-align: right;
}

.bottom-right {
  bottom: 18%;
  right: 75px;
  text-align: right;
}

.bottom-left.ios-bottom,
.bottom-center-left.ios-bottom,
.bottom-center.ios-bottom,
.bottom-center-right.ios-bottom,
.bottom-right.ios-bottom {
  bottom: calc(18% - 80px);
}

/*
--- --- --- --- --- --- --- --- ---
BOX POS. ASSOLUTO (ECCEZIONI PER < 800 px)
--- --- --- --- --- --- --- --- ---
*/

@media (max-width: 799.99px) {

  .abs-mobile {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 18%;
  }
  .abs-mobile.ios-bottom {
    bottom: calc(18% - 80px);
  }
  .abs-mobile .abs-box {
    position: relative;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    text-align: center !important;
    transform: translateZ(0); /* forza un nuovo contesto, NON annulla gsap */
    margin-top: 40px;
    transform-origin: center center; /* fondamentale per la rotazione */
  }

}

/*
--- --- --- --- --- --- --- --- ---
INTRO
--- --- --- --- --- --- --- --- ---
*/

.section-intro.ios-intro .ios-spacer{
  height: 160px; /* il doppio di 80px */
}

#intro-ele-1 {
  color: #FFF;
  margin-bottom: 60px;
}

#intro-ele-2 {
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
}

#intro-ele-2 > div {
  color: #333;
}

/*
--- --- --- --- --- --- --- --- ---
ABOUT e SUCCESS
--- --- --- --- --- --- --- --- ---
*/  

.section-about .about-timeline,
.section-success .partner {
  position: absolute;
  bottom: 100px; /* valore mobile */
  left: 0;
  width: 100%;
}

.section-about .about-timeline.ios-bottom,
.section-success .partner.ios-bottom {
  bottom: 20px; /* 100px - 80px */\
}

@media screen and (min-width: 600px) and (max-width: 1024px) and (orientation: portrait) {
  .section-about .about-timeline {
    bottom: 18%;
  }
  .section-success .partner {
    bottom: 6%;
  }
  .section-about .about-timeline.ios-bottom,
  .section-success .partner.ios-bottom {
    bottom: calc(18% - 80px);
  }
}

.section-about .about-year {
  text-align: center;
}

.section-about .about-year .big-text {
  font-size: 40px;
}

.section-success .partner ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* mobile: colonna */
  flex-wrap: wrap;
  gap: 35px; /* mobile: spazio tra i loghi */
}

.section-success .partner ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; /* mobile: larghezza piena */
}

.section-success .partner ul li img {
  max-width: 200px;
  max-height: 100px;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* BREAKPOINT ≥ 800px */
@media (min-width: 800px) {
  .section-about .about-year .big-text {
    font-size: 60px;
  }

  .section-success .partner {
    bottom: 18%;
  }

  .section-success .partner ul {
    display: grid; /* desktop: due colonne su due righe */
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 70px;
    width: fit-content;
    justify-items: center;
    align-items: center;
  }

  .section-success .partner ul li {
    width: auto;
  }

  .section-success .partner ul li img {
    max-width: 280px;
    max-height: 126px;
  }

  .section-success .partner ul li img.logo-celebrity {
    max-height: 110px;
  }

  .section-success .partner ul li img.logo-silja {
    max-width: 236px;
  }

  .section-success .partner ul li img.logo-celebrity,
  .section-success .partner ul li img.logo-silja {
    position: relative;
    left: 4px;
  }
}

/* BREAKPOINT ≥ 1200px */
@media (min-width: 1200px) {
  .section-success .partner ul li img {
    max-width: 345px;
    max-height: 150px;
  }

  .section-success .partner ul li img.logo-celebrity {
    max-height: 125px;
  }

  .section-success .partner ul li img.logo-silja {
    max-width: 275px;
  }
}

/*
--- --- --- --- --- --- --- --- ---
CONTACT
--- --- --- --- --- --- --- --- ---
*/ 

.contact-name,
.contact-role,
.contact-email {
  display: block !important;
  color: #FFF;
  margin-bottom: 20px;
  text-align: center;
}

.contact-name {
  font-size: 28px;
}

.contact-role,
.contact-email a {
  font-size: 20px;
  text-decoration: none;
}

.contact-role {
  opacity: .4;
}

.contact-email a:hover {
  text-decoration: underline;
}

@media (min-width: 1200px) {
  .contact-name {
    font-size: 44px;
  }
  .contact-role,
  .contact-email a {
    font-size: 28px;
  }
}

@media (min-width: 1600px) {
  .contact-name {
    font-size: 54px;
  }
  .contact-role,
  .contact-email a {
    font-size: 34px;
  }
}

.footer-credits {
  bottom: 20px;
  left: 20px;
  text-align: left;
  padding-right: 100px;
}

.footer-credits.ios-footer {
  bottom: 100px;
}

@media (min-width: 800px) {
  .footer-credits {
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding-right: 0;
  }
}

.footer-credits p {
  font-size: 12px;
  line-height: 24px;
  color: #FFF;
  opacity: .4;
  margin-bottom: 0;
}

@media (min-width: 800px) {
  .footer-credits p {
    font-size: 15px;
    line-height: 40px;
  }
}

.footer-social {
  bottom: 25px;
  right: 20px;
}

.footer-social.ios-footer {
  bottom: 105px;
}

@media (min-width: 800px) {
  .footer-social {
    bottom: 8%;
    right: 75px;
  }
}

.footer-social img {
  width: 40px;
  height: auto;
}

/*
--- --- --- --- --- --- --- --- ---
FULLPAGE.JS
--- --- --- --- --- --- --- --- ---
*/ 

/* Colore dei pallini per la sezione 'intro' */
.fp-viewing-intro #fp-nav ul li a span {
  background: #333333; /* Grigio scuro */
}

/* Colore dei pallini per la sezione 'technical' */
.fp-viewing-page-technical #fp-nav ul li a span,
.fp-viewing-page-artistic #fp-nav ul li a span,
.fp-viewing-page-about #fp-nav ul li a span,
.fp-viewing-page-contact #fp-nav ul li a span {
  background: #ffffff; /* Bianco */
}

/*
--- --- --- --- --- --- --- --- ---
OVERLAY
--- --- --- --- --- --- --- --- ---
*/ 

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
}

.overlay-content {
  text-align: left;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  max-height: 90vh;          /* limita l'altezza visibile */
  overflow-y: auto;          /* abilita lo scroll verticale interno */
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.open-overlay {
  cursor: pointer;
}

/*
--- --- --- --- --- --- --- --- ---
BR SOLO MOBILE
--- --- --- --- --- --- --- --- ---
*/ 

.br-mobile {
  display: none;
}

@media screen and (max-width: 600px) {
  .br-mobile {
    display: inline;
  }
}

/*
--- --- --- --- --- --- --- --- ---
LANDSCAPE LOCK
--- --- --- --- --- --- --- --- ---
*/ 

#landscape-lock {
  position: fixed;
  width: 100%;
  height: 100vh;
  inset: 0;
  z-index: 99999;
  background: #EEE;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  font-family: sans-serif;
}

.landscape-warning {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
}

.landscape-warning .rotate-icon {
  width: 80px;
  margin-bottom: 20px;
  opacity: 0.8;
}