/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { }
body {
  font-family: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  background: #ffffff;
  color: #1c1c1c;
  overflow-x: hidden;
  cursor: none;
}
a { color: #686868; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #969696; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; }

/* ===== PAGE TRANSITIONS ===== */
.page { display: none; }
.page.active { display: block; }

#transitions-preloader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#transitions-preloader.active { opacity: 1; pointer-events: all; }

/* ===== CUSTOM CURSOR ===== */
#custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 99998;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
#custom-cursor.cursor-hover { width: 40px; height: 40px; }
#custom-cursor.cursor-view { width: 60px; height: 60px; }
.cursor-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.25s ease;
  white-space: nowrap;
  pointer-events: none;
}
#custom-cursor.cursor-view .cursor-text { opacity: 1; }
@media (hover: none) {
  #custom-cursor { display: none; }
}

/* ===== NAVBAR ===== */
.semplice-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3.3333333333333335rem;
  z-index: 1000;
  background: transparent;
}
.semplice-navbar .container-fluid {
  max-width: 100%;
  padding: 0 1.11111rem;
  height: 100%;
}
.semplice-navbar .navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}
.semplice-navbar .navbar-left { display: flex; align-items: center; }
.semplice-navbar .navbar-right { display: flex; align-items: center; }
.semplice-navbar .logo a {
  font-family: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 0.8888888888888888rem;
  letter-spacing: -0.016666666666666666rem;
  color: var(--ink);
  text-decoration: none;
}
.semplice-navbar nav.standard ul {
  display: flex;
  align-items: center;
  gap: 0;
  width: 48.5vw;
  justify-content: space-between;
}
.semplice-navbar nav.standard ul li a { display: block; padding: 0; }
.semplice-navbar nav.standard ul li a span {
  font-family: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 0.8888888888888888rem;
  letter-spacing: -0.016666666666666666rem;
  color: var(--ink);
  border-bottom: 0 solid transparent;
  padding-bottom: 0.1111111111111111rem;
  transition: color 0.25s ease;
}
.semplice-navbar nav.standard ul li a span.active { color: #7c7c7c; }
.hamburger a.menu-icon span,
.hamburger a.menu-icon span::before,
.hamburger a.menu-icon span::after { transition: transform 0.25s ease; }
#menu-item-contact { width: 28vw; }

/* ===== HAMBURGER ===== */
.hamburger { display: none; }
@media (max-width: 991.98px) {
  .hamburger { display: flex; align-items: center; }
  .semplice-navbar nav.standard { display: none; }
}
.hamburger a.menu-icon {
  display: block;
  width: 24px;
  height: 14px;
  position: relative;
  cursor: none;
}
.hamburger a.menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: #000000;
  position: absolute;
  top: 50%;
  margin-top: 7px;
}
.hamburger a.menu-icon span::before,
.hamburger a.menu-icon span::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: #000000;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease;
}
.hamburger a.menu-icon span::before { top: -6px; }
.hamburger a.menu-icon span::after { top: 6px; }
.hamburger a.open-menu:hover span::before { transform: translateY(-2px); }
.hamburger a.open-menu:hover span::after { transform: translateY(2px); }

/* ===== OVERLAY MENU ===== */
#overlay-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #FF6332;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
#overlay-menu.open { opacity: 1; pointer-events: all; }
#overlay-menu .overlay-menu-inner { width: 100%; padding: 0 1.11111rem; }
#overlay-menu .overlay-menu-inner nav ul { text-align: center; }
#overlay-menu .overlay-menu-inner nav ul li a { display: block; padding: 1.11111rem 0; }
#overlay-menu .overlay-menu-inner nav ul li a span {
  font-family: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 2.6666666666666665rem;
  color: #000000;
  letter-spacing: -0.5px;
  transition: color 0.25s ease, opacity 0.25s ease;
}
#overlay-menu .overlay-menu-inner nav ul li a:hover span { opacity: 0.5; }
@media (max-width: 543.98px) {
  #overlay-menu .overlay-menu-inner nav ul li a span { font-size: 1.9444444444444444rem; }
  #overlay-menu .overlay-menu-inner nav ul li a { padding: 1.11111rem 0; }
}

/* ===== CONTENT CONTAINERS ===== */
.content-container {
  position: relative;
  background: #ffffff;
  min-height: 100vh;
}
.transition-wrap { position: relative; }
.sections { margin-top: 3.3333333333333335rem; position: relative; }

/* ===== GRID ===== */
.container { max-width: 1720px; margin: 0 auto; padding: 0 1.11111rem; }
.row { display: flex; flex-wrap: wrap; margin-left: -5px; margin-right: -5px; }
.column { padding-left: 5px; padding-right: 5px; flex: 1 0 auto; }
[data-xl-width="3"] { flex: 0 0 25%; max-width: 25%; }
[data-xl-width="4"] { flex: 0 0 33.33333%; max-width: 33.33333%; }
[data-xl-width="5"] { flex: 0 0 41.66667%; max-width: 41.66667%; }
[data-xl-width="6"] { flex: 0 0 50%; max-width: 50%; }
[data-xl-width="7"] { flex: 0 0 58.33333%; max-width: 58.33333%; }
[data-xl-width="8"] { flex: 0 0 66.66667%; max-width: 66.66667%; }
[data-xl-width="12"] { flex: 0 0 100%; max-width: 100%; }
.content-wrapper { padding: 0; }

/* ===== HOMEPAGE HERO ===== */
.home-hero {
  padding-top: 0;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}
.home-hero .row { width: 100%; align-items: stretch; }
.local-time {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.82rem; font-weight: 600; color: #000000;
  letter-spacing: -0.04em;
}
.local-time .dot { font-size: 12px; }
.home-tagline {
  font-size: 0.889rem;
  line-height: 1.278rem;
  color: #000000;
}

/* ===== PORTFOLIO GRID ===== */
/* Desktop: 6 columns. Cascades 6 → 4 → 3 → 2 down media queries below. */
.portfolio-grid { margin: 0 -5px; }
.pg-item {
  padding-left: 5px; padding-right: 5px; padding-bottom: 28px;
  flex: 0 0 16.6667%; max-width: 16.6667%;
}
.pg-item .post-title {
  font-size: 0.78rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.pg-item .post-title span { font-size: 0.7rem; }
/* Full-width grid interstitial — e.g. the reveal-line living inside the grid */
.pg-interstitial {
  flex: 0 0 100%; max-width: 100%;
  padding: 1.5rem 5px 2.5rem;
}
.pg-item .thumb-inner {
  position: relative;
  overflow: hidden;
  border-radius: 0.16666666666666666rem;
}
.pg-item .thumb-inner img {
  width: 100%; height: auto;
  transition: all 0.6s ease;
  display: block;
}
.pg-item .thumb-hover {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.6666666666666667rem;
  pointer-events: none;
}
.pg-item .thumb-hover.meta-visible { opacity: 1; }
.pg-item .thumb-hover .title {
  color: #ffffff;
  font-size: 1rem;
}
.pg-item .thumb-hover .category {
  color: #ffffff;
  font-size: 1rem;
}
.pg-item .post-title {
  padding: 0.6666666666666666rem 0 0 0;
  font-size: 16px;
  color: #000000;
}
.pg-item .post-title span {
  display: block;
  color: #636363;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  padding-top: 0.35rem;
}
.pg-item .thumb-inner video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pg-item .thumb-inner:hover video { opacity: 1; }

/* ===== FOOTER ===== */
.site-footer {
  padding-top: 3vh;
  padding-bottom: 1.1111111111111112rem;
  background: #ffffff;
}
.footer-col { padding-bottom: 28vh; }
.footer-tagline {
  font-size: 0.889rem;
  line-height: 1.278rem;
  color: #000000;
}
.footer-email a,
.footer-social a {
  font-family: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 1.3333333333333333rem;
  letter-spacing: -0.027777777777777776rem;
  color: #686868;
  transition: color 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-email a:hover,
.footer-social a:hover { color: #000000 !important; }
.footer-credit { opacity: 0.08; padding-bottom: 0vh; }
.footer-nav { padding-bottom: 24vh; }

/* ===== SCROLL REVEAL ===== */
.sr-element {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.sr-element.revealed { opacity: 1; transform: translateY(0); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
}
.back-to-top a { display: block; cursor: none; }
.back-to-top a svg { width: 40px; height: auto; }
.back-to-top a svg polygon { fill: #000000; }

/* ===== ABOUT PAGE ===== */
.about-section {
  padding-top: 3vh;
}
.about-description {
  font-size: 1rem;
  line-height: 1.5rem;
  color: #000000;
}
.about-description a { color: #000000; text-decoration: underline; }
.about-description a:hover { color: #686868; }
.about-label {
  letter-spacing: -0.04em;
  color: #636363;
  font-size: 0.78rem;
  font-weight: 600;
  padding-bottom: 1rem;
}
.about-list {
  list-style: none;
  padding: 0;
}
.about-list li {
  font-size: 0.889rem;
  line-height: 1.5rem;
  color: #000000;
  padding-bottom: 0.5rem;
}
.about-experience {
  font-size: 0.889rem;
  line-height: 1.5rem;
  color: #000000;
  padding-bottom: 0.5rem;
}
.about-experience .year {
  color: #636363;
  font-size: 0.75rem;
}
.about-social-links a {
  font-size: 1.3333333333333333rem;
  letter-spacing: -0.027777777777777776rem;
  color: #686868;
  transition: color 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-social-links a:hover { color: #000000 !important; }

/* ===== IMAGES PAGE ===== */
.images-description {
  font-size: 0.889rem;
  line-height: 1.278rem;
  color: #000000;
}
.images-grid { padding-top: 2rem; }

/* ===== RESPONSIVE ===== */
/* Tablet wide: 4 columns */
@media (max-width: 1279.98px) {
  .pg-item { flex: 0 0 25%; max-width: 25%; }
}

@media (max-width: 991.98px) {
  [data-xl-width="3"], [data-xl-width="4"], [data-xl-width="5"],
  [data-xl-width="6"], [data-xl-width="7"], [data-xl-width="8"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .semplice-navbar nav.standard { display: none; }
  .hamburger { display: flex; }
  .footer-col { padding-bottom: 3vh; }
  /* Tablet: 3 columns */
  .pg-item { flex: 0 0 33.3333%; max-width: 33.3333%; }
}

@media (max-width: 767.98px) {
  .semplice-navbar { height: 2.7777777777777777rem; }
  .sections { margin-top: 2.7777777777777777rem; }
  .semplice-navbar .container-fluid { padding: 0 1.11111rem; }
  .hamburger a.menu-icon { width: 1.3888888888888888rem; }
  /* Mobile: 2 columns */
  .pg-item { flex: 0 0 50%; max-width: 50%; }
  .home-hero { min-height: auto; }
}

@media (max-width: 543.98px) {
  .semplice-navbar { height: 2.7777777777777777rem; }
  .sections { margin-top: 2.7777777777777777rem; }
  .semplice-navbar .container-fluid { padding: 0 1.11111rem; }
  .hamburger a.menu-icon span { height: 1px; }
  .hamburger a.menu-icon span::before { top: -4px; }
  .hamburger a.menu-icon span::after { top: 4px; }
  .hamburger a.menu-icon { height: 9px; }
  .hamburger a.menu-icon span { margin-top: 4.5px; }
  .back-to-top { display: none !important; }
  .pg-item { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 1170px) {
  .hide-on-desktop { display: none !important; }
}