/* PLACE YOU CUSTOM STYLES IN THIS FILE */

:root {
  /* Neutri */
  --color-white: #ffffff;
  --color-dark: #000000;

  /* Accent base */
  --color-accent: #000000;

  /* Accent adattivo */
  --color-accent-on-dark: #ffffff;
  --color-accent-on-light: #000000;
}

/* =========================
   NEUTRI AUTOMATICI
   ========================= */

.text-white {
  color: var(--color-white) !important;
}

.text-dark {
  color: var(--color-dark) !important;
}

/* =========================
   ACCENT GENERALE
   ========================= */

.text-main {
  color: var(--color-accent) !important;
}

a,
a:focus,
a:hover {
  color: var(--color-accent);
}

/* Nav generica */
.nk-nav ul a:hover,
.nk-nav ul li.active > a,
.nk-nav ul li.hover > a {
  color: var(--color-accent) !important;
}

/* Slider nav: numeri */
.nk-slider-nav > ul > li.active,
.nk-slider-nav > ul > li:hover,
.nk-slider-nav > ul > li.hover {
  color: var(--color-accent) !important;
}

/* Slider nav: frecce verticali */
.nk-slider-nav .nk-slider-nav-prev:hover,
.nk-slider-nav .nk-slider-nav-prev.hover,
.nk-slider-nav .nk-slider-nav-next:hover,
.nk-slider-nav .nk-slider-nav-next.hover {
  color: var(--color-accent) !important;
}

/* Spinner */
.nk-spinner span:after {
  box-shadow: inset 0 0 0 3px var(--color-accent) !important;
}

/* Eventuali social/icon */
.nk-social-links a:hover,
.nk-social-links a:focus,
.nk-social-links a:active,
.nk-social-links a.hover,
.nk-icon-burger:hover,
.nk-icon-burger.hover {
  color: var(--color-accent) !important;
}

/* =========================
   TITLE ADATTIVO
   ========================= */

.nk-layout .nk-layout-content-title {
  color: transparent !important;
}

/* Titolo principale su fondo scuro */
.nk-layout .nk-layout-content-title.text-white {
  color: var(--color-accent-on-dark) !important;
}

/* Shadow title creato da Umbrella */
.nk-layout .nk-layout-content-title.text-white + .nk-layout-content-title {
  color: var(--color-accent-on-dark) !important;
}

/* Titolo principale su fondo chiaro */
.nk-layout .nk-layout-content-title.text-dark {
  color: var(--color-accent-on-light) !important;
}

/* Shadow title creato da Umbrella */
.nk-layout .nk-layout-content-title.text-dark + .nk-layout-content-title {
  color: var(--color-accent-on-light) !important;
}

/* =========================
   PROJECT NAV ADATTIVA
   ========================= */

/* Fondo scuro */
.nk-layout-bottom-right.text-white .nk-slider-nav > ul > li.active,
.nk-layout-bottom-right.text-white .nk-slider-nav > ul > li:hover,
.nk-layout-bottom-right.text-white .nk-slider-nav > ul > li.hover {
  color: var(--color-accent-on-dark) !important;
}

/* Fondo chiaro */
.nk-layout-bottom-right.text-dark .nk-slider-nav > ul > li.active,
.nk-layout-bottom-right.text-dark .nk-slider-nav > ul > li:hover,
.nk-layout-bottom-right.text-dark .nk-slider-nav > ul > li.hover {
  color: var(--color-accent-on-light) !important;
}

/* Frecce verticali - fondo scuro */
.nk-layout-bottom-right.text-white .nk-slider-nav-prev:hover,
.nk-layout-bottom-right.text-white .nk-slider-nav-prev.hover,
.nk-layout-bottom-right.text-white .nk-slider-nav-next:hover,
.nk-layout-bottom-right.text-white .nk-slider-nav-next.hover {
  color: var(--color-accent-on-dark) !important;
}

/* Frecce verticali - fondo chiaro */
.nk-layout-bottom-right.text-dark .nk-slider-nav-prev:hover,
.nk-layout-bottom-right.text-dark .nk-slider-nav-prev.hover,
.nk-layout-bottom-right.text-dark .nk-slider-nav-next:hover,
.nk-layout-bottom-right.text-dark .nk-slider-nav-next.hover {
  color: var(--color-accent-on-light) !important;
}

/* =========================
   OVERRIDE MANUALE FOTO

   dark  = foto scura
           -> testi chiari

   light = foto chiara
           -> testi scuri

   auto  = nessuna classe manuale
           -> decide Umbrella
   ========================= */

/* =========================
   FOTO SCURA
   ========================= */

/* Elementi neutri */
.nk-layout.image-mode-dark .nk-layout-top-left,
.nk-layout.image-mode-dark .nk-layout-bottom-left,
.nk-layout.image-mode-dark .nk-layout-bottom-center,
.nk-layout.image-mode-dark .nk-layout-bottom-right,
.nk-layout.image-mode-dark .nk-layout-content-subtitle,
.nk-layout.image-mode-dark .nk-layout-content-tagline,
.nk-layout.image-mode-dark .nk-layout-content-title-sub {
  color: var(--color-white) !important;
}

/* Link */
.nk-layout.image-mode-dark .nk-layout-top-left a,
.nk-layout.image-mode-dark .nk-layout-bottom-left a,
.nk-layout.image-mode-dark .nk-layout-bottom-center a,
.nk-layout.image-mode-dark .nk-layout-bottom-right a {
  color: var(--color-white) !important;
}

/* Title */
.nk-layout.image-mode-dark .nk-layout-content-title {
  color: var(--color-accent-on-dark) !important;
}

/* Numero progetto attivo + hover */
.nk-layout.image-mode-dark .nk-slider-nav > ul > li.active,
.nk-layout.image-mode-dark .nk-slider-nav > ul > li:hover,
.nk-layout.image-mode-dark .nk-slider-nav > ul > li.hover {
  color: var(--color-accent-on-dark) !important;
}

/* Frecce verticali */
.nk-layout.image-mode-dark .nk-slider-nav-prev:hover,
.nk-layout.image-mode-dark .nk-slider-nav-prev.hover,
.nk-layout.image-mode-dark .nk-slider-nav-next:hover,
.nk-layout.image-mode-dark .nk-slider-nav-next.hover {
  color: var(--color-accent-on-dark) !important;
}

/* =========================
   FOTO CHIARA
   ========================= */

/* Elementi neutri */
.nk-layout.image-mode-light .nk-layout-top-left,
.nk-layout.image-mode-light .nk-layout-bottom-left,
.nk-layout.image-mode-light .nk-layout-bottom-center,
.nk-layout.image-mode-light .nk-layout-bottom-right,
.nk-layout.image-mode-light .nk-layout-content-subtitle,
.nk-layout.image-mode-light .nk-layout-content-tagline,
.nk-layout.image-mode-light .nk-layout-content-title-sub {
  color: var(--color-dark) !important;
}

/* Link */
.nk-layout.image-mode-light .nk-layout-top-left a,
.nk-layout.image-mode-light .nk-layout-bottom-left a,
.nk-layout.image-mode-light .nk-layout-bottom-center a,
.nk-layout.image-mode-light .nk-layout-bottom-right a {
  color: var(--color-dark) !important;
}

/* Title */
.nk-layout.image-mode-light .nk-layout-content-title {
  color: var(--color-accent-on-light) !important;
}

/* Numero progetto attivo + hover */
.nk-layout.image-mode-light .nk-slider-nav > ul > li.active,
.nk-layout.image-mode-light .nk-slider-nav > ul > li:hover,
.nk-layout.image-mode-light .nk-slider-nav > ul > li.hover {
  color: var(--color-accent-on-light) !important;
}

/* Frecce verticali */
.nk-layout.image-mode-light .nk-slider-nav-prev:hover,
.nk-layout.image-mode-light .nk-slider-nav-prev.hover,
.nk-layout.image-mode-light .nk-slider-nav-next:hover,
.nk-layout.image-mode-light .nk-slider-nav-next.hover {
  color: var(--color-accent-on-light) !important;
}

/* =========================
   LOGO
   ========================= */

.nk-nav-logo {
  font-size: 22px;
  font-weight: bolder;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}

/* =========================
   INFO PANEL
   ========================= */

#close-info {
  position: absolute;
  top: 40px;
  right: 40px;

  font-size: 26px;
  line-height: 1;

  text-decoration: none;

  z-index: 10;
}

#project-title {
  margin-bottom: 8px;
}

#project-title-sub {
  margin-top: 0;
  margin-bottom: 35px;

  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;
}

#project-description p {
  margin: 0 0 14px;
}

#project-description p:last-child {
  margin-bottom: 0;
}

/* =========================
   PROJECT NAV
   ========================= */

.nk-layout-bottom-right {
  text-align: center;
}

.project-gallery-nav {
  text-align: center;
}

.nk-slider-nav {
  margin-left: auto;
  margin-right: auto;
}

.nk-slider-nav > ul {
  text-align: center;
  padding-bottom: 0px;
}

.nk-slider-nav > ul > li {
  text-align: center;
}

.nk-slider-nav.nk-slider-nav-slim > ul > li {
  left: 50%;
  transform: translateX(-50%);
}

/* =========================
   OVERLAY
   ========================= */

.nk-layout-content-title,
.nk-layout-content-title-sub,
.nk-layout-content-subtitle,
.nk-layout-content-tagline {
  pointer-events: none;
}

/* Tagline */
.nk-layout .nk-layout-content-tagline {
  bottom: 50%;
  margin-bottom: 85px;
  right: 53px;
}

/* =========================
   TITLE SUB
   ========================= */

.nk-layout .nk-layout-content-title-sub {
  position: fixed;

  top: 50%;
  right: 80px;

  margin-top: 20px;

  max-width: 700px;

  text-align: right;

  font-size: 25px;
  line-height: 1.3;
  font-weight: 400;

  color: inherit;

  z-index: 5;

  pointer-events: none;
}

.nk-layout .nk-layout-content-title-sub.text-white {
  color: var(--color-white) !important;
}

.nk-layout .nk-layout-content-title-sub.text-dark {
  color: var(--color-dark) !important;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 767px) {
  .nk-layout .nk-layout-content-title {
    bottom: 50%;
  }

  .nk-layout .nk-layout-content-title-sub {
    top: 50%;

    margin-top: 70px;

    right: 30px !important;
    left: 30px;

    max-width: none;

    text-align: center;
  }

  .nk-layout .nk-layout-content-subtitle {
    top: 50%;

    margin-top: 130px;

    left: 30px;
    right: 30px;

    width: auto;
    max-width: none;

    text-align: center;
  }

  .nk-layout .nk-layout-content-tagline {
    top: 50%;
    bottom: auto;

    margin-top: 190px;
    margin-bottom: 0;

    right: 30px;
    left: 30px;

    text-align: center;
  }
}

/* =========================
   PRIORITÀ MODE MANUALE
   ========================= */

/* Foto scura: forza title-sub chiaro */
.nk-layout.image-mode-dark .nk-layout-content-title-sub.text-white,
.nk-layout.image-mode-dark .nk-layout-content-title-sub.text-dark {
  color: var(--color-white) !important;
}

/* Foto chiara: forza title-sub scuro */
.nk-layout.image-mode-light .nk-layout-content-title-sub.text-white,
.nk-layout.image-mode-light .nk-layout-content-title-sub.text-dark {
  color: var(--color-dark) !important;
}

/* =========================
   SLIDER NAV: MOSTRA SEMPRE TUTTI I PROGETTI
   ========================= */

.nk-slider-nav.nk-slider-nav-slim > ul > li {
  position: relative !important;
  opacity: 1 !important;
  visibility: visible !important;
  cursor: pointer !important;
}

.nk-slider-nav.nk-slider-nav-slim > ul {
  padding-bottom: 61px !important;
}

/* =========================
   INTRO
   ========================= */

.nk-layout.intro-mode .nk-layout-content-title {
  font-size: 48px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  max-width: 1050px;
  width: calc(100% - 160px);
  left: 10%;
  right: auto;
  text-align: center;
  font-style: italic;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
}

@media (max-width: 767px) {
  .nk-layout.intro-mode .nk-layout-content-title {
    font-size: 28px !important;
    line-height: 1.22 !important;
    width: calc(100% - 60px);
    top: 100px;
    left: 30px;
    right: 30px;
    text-align: left;
  }
}

/* Email nera quando il pannello INFO è aperto */
.nk-layout.info-open .nk-layout-bottom-center,
.nk-layout.info-open .nk-layout-bottom-center a {
  color: #000000 !important;
}

/* =========================
   OVERLAY SCURO DI SUPPORTO AI TITOLI
   ========================= */

.nk-layout::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.4s ease;
}

/* Overlay visibile mentre sono visibili i titoli */
.nk-layout.overlay-visible::before {
  opacity: 1;
}

/* Titoli overlay sempre sopra al layer scuro */
.nk-layout .nk-layout-content-title,
.nk-layout .nk-layout-content-title-sub,
.nk-layout .nk-layout-content-subtitle,
.nk-layout .nk-layout-content-tagline {
  z-index: 5;
}

/* INFO più leggibile */
#open-info {
  display: inline-block;
  padding: 12px 14px;
  margin: -12px -14px;
  font-size: 24px;
}

/* Numeri/menu dei progetti */
.nk-slider-nav > ul > li {
  font-size: 22px;
  line-height: 2;
}

/* Frecce cambio progetto */
.nk-slider-nav .nk-slider-nav-prev,
.nk-slider-nav .nk-slider-nav-next {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Frecce cambio foto */
.project-gallery-prev,
.project-gallery-next {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

/* Contatore foto 1 / N */
.project-gallery-counter {
  font-size: 22px !important;
  font-weight: 700;
  line-height: 1;
}

/* Frecce orizzontali foto */
.project-gallery-prev,
.project-gallery-next {
  min-width: 52px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Icona vera della freccia */
.project-gallery-prev .nk-icon-arrow-left,
.project-gallery-next .nk-icon-arrow-right,
.nk-slider-nav-next,
.nk-slider-nav-prev,
.nk-icon-arrow-down,
.nk-icon-arrow-up {
  font-size: 28px !important;
}

.project-gallery-prev .nk-icon-arrow-left,
.project-gallery-next .nk-icon-arrow-right {
  transform: scale(1.6);
  transform-origin: center;
}

.nk-slider-nav-next,
.nk-slider-nav-prev,
.nk-icon-arrow-down,
.nk-icon-arrow-up {
  transform: scale(1.3);
  transform-origin: center;
}

.nk-layout .nk-layout-content-title {
  text-transform: uppercase;
}

#project-title {
  text-transform: uppercase;
}

#close-info {
  position: fixed !important;

  top: calc(20px + env(safe-area-inset-top)) !important;
  right: 20px !important;

  z-index: 9999 !important;

  width: 48px;
  height: 48px;

  display: none;
  align-items: center;
  justify-content: center;

  font-size: 42px;
  line-height: 1;

  color: #000 !important;
  text-decoration: none !important;
  cursor: pointer;
}

/* =========================================================
   IPHONE LANDSCAPE
   ========================================================= */
@media (orientation: landscape) and (max-height: 500px) {
  /* TITOLO PRINCIPALE */
  .nk-layout .nk-layout-content-title {
    top: 34% !important;
    bottom: auto !important;

    left: 10% !important;
    right: 10% !important;

    width: auto !important;

    font-size: 44px !important;
    line-height: 1 !important;

    text-align: center;
  }

  /* TITLE SUB - es. VERDE E BISTROT */
  .nk-layout .nk-layout-content-title-sub {
    top: 50% !important;

    left: 10% !important;
    right: 10% !important;

    width: auto !important;
    max-width: none !important;

    margin-top: 0 !important;

    font-size: 24px !important;
    line-height: 1.1 !important;

    text-align: center;
  }

  /* SUBTITLE - es. Caltagirone · 2016 */
  .nk-layout .nk-layout-content-subtitle {
    top: 58% !important;

    left: 10% !important;
    right: 10% !important;

    width: auto !important;

    margin-top: 0 !important;

    font-size: 18px !important;
    line-height: 1.1 !important;

    text-align: center;
  }

  /* TAGLINE - es. PROGETTO 04 */
  .nk-layout .nk-layout-content-tagline {
    top: 66% !important;
    bottom: auto !important;

    left: 10% !important;
    right: 10% !important;

    margin-top: 0 !important;

    font-size: 15px !important;

    text-align: center;
  }
}

/* =========================================================
   INTRO - LANDSCAPE
   ========================================================= */
@media (orientation: landscape) and (max-height: 900px) {
  /* Frase introduttiva */
  .nk-layout.intro-mode .nk-layout-content-title {
    top: 24% !important;
    bottom: auto !important;

    left: 40% !important;
    right: auto !important;

    width: 70% !important;
    max-width: 950px !important;

    transform: translateX(-50%) !important;

    font-size: clamp(26px, 3.2vw, 42px) !important;
    line-height: 1.15 !important;

    text-align: center !important;
  }

  /* MAURIZIO ORIENTE */
  .nk-layout.intro-mode .nk-layout-content-title-sub {
    top: 57% !important;
    bottom: auto !important;

    left: 26% !important;
    right: auto !important;

    width: auto !important;
    max-width: none !important;

    margin-top: 0 !important;

    font-size: 34px !important;
    line-height: 1.1 !important;

    text-align: center !important;
  }

  /* Architetto e paesaggista */
  .nk-layout.intro-mode .nk-layout-content-subtitle {
    top: 62% !important;
    bottom: auto !important;

    left: 10% !important;
    right: 10% !important;

    width: auto !important;

    margin-top: 0 !important;

    font-size: 24px !important;
    line-height: 1.1 !important;

    text-align: center !important;
  }
}

/* =========================================================
   MOBILE PORTRAIT - CONTROLLI IN BASSO
   ========================================================= */
@media (max-width: 767px) and (orientation: portrait) {
  /* SCOPRI DI PIÙ / BIO */
  .nk-layout .nk-layout-bottom-left {
    left: 18px !important;
    bottom: 18px !important;
  }

  #open-info {
    font-size: 20px !important;
    line-height: 1 !important;

    padding: 0 0 !important;
    margin: 0 !important;

    white-space: nowrap;
  }

  /* EMAIL */

  .nk-layout .nk-layout-bottom-center a {
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  /* NAVIGAZIONE FOTO: ‹ 1 / 5 › */
  .project-gallery-nav {
    position: fixed !important;

    right: 18px !important;
    bottom: 32px !important;

    left: auto !important;
    top: auto !important;

    z-index: 10;
  }

  /* TITOLO PRINCIPALE */
  .nk-layout .nk-layout-content-title {
    top: 43% !important;
    bottom: auto !important;

    left: 8% !important;
    right: 8% !important;

    width: auto !important;

    text-align: center !important;
  }

  /* TITLE SUB - es. VIA SPONTINI */
  .nk-layout .nk-layout-content-title-sub {
    top: 58% !important;

    left: 8% !important;
    right: 8% !important;

    width: auto !important;
    max-width: none !important;

    margin-top: 0 !important;

    text-align: center !important;
  }

  /* SUBTITLE - es. Milano · In progress */
  .nk-layout .nk-layout-content-subtitle {
    top: 68% !important;

    left: 8% !important;
    right: 8% !important;

    width: auto !important;

    margin-top: 0 !important;

    text-align: center !important;
  }

  /* TAGLINE */
  .nk-layout .nk-layout-content-tagline {
    top: 77% !important;
    bottom: auto !important;

    left: 8% !important;
    right: 8% !important;

    margin-top: 0 !important;

    text-align: center !important;
  }
}

/* =========================================================
   INTRO - MOBILE PORTRAIT
   ========================================================= */
@media (max-width: 767px) and (orientation: portrait) {
  /* FRASE INTRODUTTIVA */
  .nk-layout.intro-mode .nk-layout-content-title {
    top: 14% !important;
    bottom: auto !important;

    left: 8% !important;
    right: 8% !important;

    width: auto !important;
    max-width: none !important;

    transform: none !important;

    font-size: 24px !important;
    line-height: 1.12 !important;

    text-align: center !important;
  }

  /* MAURIZIO ORIENTE */
  .nk-layout.intro-mode .nk-layout-content-title-sub {
    top: 60% !important;

    left: 8% !important;
    right: 8% !important;

    width: auto !important;
    max-width: none !important;

    margin-top: 0 !important;

    font-size: 22px !important;
    line-height: 1.1 !important;

    text-align: center !important;
  }

  /* ARCHITETTO E PAESAGGISTA */
  .nk-layout.intro-mode .nk-layout-content-subtitle {
    top: 66% !important;

    left: 8% !important;
    right: 8% !important;

    width: auto !important;

    margin-top: 0 !important;

    font-size: 16px !important;
    line-height: 1.1 !important;

    text-align: center !important;
  }
}

/* =========================================================
   IPAD / TABLET PORTRAIT
   ========================================================= */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  /* FRASE INTRODUTTIVA */
  .nk-layout.intro-mode .nk-layout-content-title {
    top: 14% !important;
    bottom: auto !important;

    left: 8% !important;
    right: 8% !important;

    width: auto !important;
    max-width: none !important;

    transform: none !important;

    font-size: 50px !important;
    line-height: 1.12 !important;

    text-align: center !important;
  }

  /* MAURIZIO ORIENTE */
  .nk-layout.intro-mode .nk-layout-content-title-sub {
    top: 60% !important;

    left: 8% !important;
    right: 8% !important;

    width: auto !important;
    max-width: none !important;

    margin-top: 0 !important;

    font-size: 40px !important;
    line-height: 1.1 !important;

    text-align: center !important;
  }

  /* ARCHITETTO E PAESAGGISTA */
  .nk-layout.intro-mode .nk-layout-content-subtitle {
    top: 64% !important;

    left: 8% !important;
    right: 8% !important;

    width: auto !important;

    margin-top: 0 !important;

    font-size: 30px !important;
    line-height: 1.1 !important;

    text-align: center !important;
  }

  /* TITOLO PRINCIPALE */
  .nk-layout .nk-layout-content-title {
    top: 34% !important;
    bottom: auto !important;

    left: 4% !important;
    right: 4% !important;

    width: auto !important;

    font-size: 100px !important;
    line-height: 1.05 !important;

    text-align: center !important;
  }

  /* TITLE SUB */
  .nk-layout .nk-layout-content-title-sub {
    top: 56% !important;

    left: 4% !important;
    right: 4% !important;

    width: auto !important;
    max-width: none !important;

    margin-top: 0 !important;

    font-size: 44px !important;
    line-height: 1.1 !important;

    text-align: center !important;
  }

  /* SUBTITLE */
  .nk-layout .nk-layout-content-subtitle {
    top: 62% !important;

    left: 8% !important;
    right: 8% !important;

    width: auto !important;

    margin-top: 0 !important;

    font-size: 30px !important;
    line-height: 1.1 !important;

    text-align: center !important;
  }

  /* TAGLINE */
  .nk-layout .nk-layout-content-tagline {
    top: 68% !important;
    bottom: auto !important;

    left: 8% !important;
    right: 8% !important;

    margin-top: 0 !important;

    font-size: 16px !important;

    text-align: center !important;
  }
}
