/* Hermes — light, blu corporate profondo */
:root {
  --bg-page: #ebeef5;
  --bg-warm: #e8ecf4;
  --text: #020617;
  --text-soft: #475569;
  --accent: #1e3a5f;
  --accent-deep: #0f2744;
  --accent-bright: #234876;
  --accent-faint: rgba(15, 39, 68, 0.1);
  --accent-mid: rgba(15, 39, 68, 0.28);
  --line: rgba(2, 6, 23, 0.09);
  --glass: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.94);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* Dettagli architettonici (non panorami): angolo vetrate + facciata / struttura vetro */
  --elev-corner: url("../img/elev-corner-glass.jpg");
  --elev-facade: url("../img/elev-facade-detail.jpg");
}

/* Angoli sezione: grandi ritagli, opacità molto leggera */
.elev-photo {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
  filter: saturate(0.88);
}

/* Angolo vetrate: inquadratura stretta sull’intersezione dei piani */
.elev-photo--hero {
  bottom: 0;
  right: -12%;
  width: min(72vw, 820px);
  height: min(90vh, 920px);
  background-image: var(--elev-corner);
  background-size: 135%;
  background-position: 54% 68%;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.1;
}

.elev-photo--studio {
  left: -24%;
  bottom: -20%;
  width: min(56vw, 580px);
  height: min(54vh, 480px);
  background-image: var(--elev-corner);
  background-size: 145%;
  background-position: 38% 78%;
  clip-path: polygon(0 0, 100% 36%, 100% 100%, 0 100%);
  opacity: 0.078;
}

/* Griglia vetro / struttura imponente (stesso file, crop diverso) */
.elev-photo--focus {
  top: 0;
  right: 0;
  bottom: 0;
  left: 36%;
  background-image: var(--elev-facade);
  background-size: 165%;
  background-position: 32% 38%;
  opacity: 0.07;
  mix-blend-mode: soft-light;
  z-index: 1;
}

.elev-photo--quote {
  top: -14%;
  left: -16%;
  width: min(64vw, 560px);
  height: min(74vh, 460px);
  background-image: var(--elev-facade);
  background-size: 155%;
  background-position: 58% 48%;
  clip-path: polygon(0 0, 100% 0, 46% 100%, 0 90%);
  opacity: 0.074;
}

.elev-photo--contact {
  right: -14%;
  bottom: -26%;
  width: min(48vw, 440px);
  height: min(50vh, 400px);
  background-image: var(--elev-corner);
  background-size: 140%;
  background-position: 62% 85%;
  clip-path: polygon(36% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.086;
}

@media (max-width: 991.98px) {
  .elev-photo--hero {
    opacity: 0.07;
    width: 88vw;
    right: -22%;
  }

  .elev-photo--studio {
    opacity: 0.055;
  }

  .elev-photo--focus {
    left: 50%;
    opacity: 0.05;
  }

  .elev-photo--quote {
    opacity: 0.055;
  }

  .elev-photo--contact {
    opacity: 0.06;
  }
}

@media (max-width: 575.98px) {
  .elev-photo--hero {
    opacity: 0.05;
  }

  .elev-photo--focus {
    opacity: 0.04;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--bg-page);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar-hermes {
  background: transparent;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.navbar-hermes.is-scrolled {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05);
}

.navbar-brand-hermes {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text) !important;
}

.nav-link-hermes {
  color: var(--text-soft) !important;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem !important;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-link-hermes:hover,
.nav-link-hermes:focus {
  color: var(--text) !important;
  background: rgba(15, 23, 42, 0.05);
}

.nav-cta {
  background: linear-gradient(145deg, #0a1628 0%, var(--accent-deep) 45%, #152a45 100%) !important;
  color: #f8fafc !important;
  margin-left: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-cta:hover,
.nav-cta:focus {
  background: linear-gradient(145deg, #050a12 0%, #0f2744 100%) !important;
  color: #fff !important;
}

.navbar-toggler {
  border-color: var(--line);
  padding: 0.45rem 0.6rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px var(--accent-faint);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0 0.5rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--line);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-bottom: 0;
}

.hero-mesh {
  position: absolute;
  inset: -20% -10% 0;
  background:
    radial-gradient(ellipse 82% 60% at 14% 20%, rgba(15, 39, 68, 0.09), transparent 54%),
    radial-gradient(ellipse 68% 52% at 86% 10%, rgba(15, 23, 42, 0.07), transparent 50%),
    radial-gradient(ellipse 72% 42% at 52% 100%, rgba(30, 58, 95, 0.11), transparent 58%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-page) 55%, var(--bg-page) 100%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
  pointer-events: none;
  will-change: transform;
}

.hero-orb--a {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  background: rgba(15, 39, 68, 0.18);
  top: 12%;
  right: -8%;
  animation: orb-float-a 18s ease-in-out infinite;
}

.hero-orb--b {
  width: min(45vw, 340px);
  height: min(45vw, 340px);
  background: rgba(15, 23, 42, 0.1);
  bottom: 28%;
  left: -12%;
  animation: orb-float-b 22s ease-in-out infinite;
}

@keyframes orb-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6%, 8%) scale(1.06); }
}

@keyframes orb-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10%, -5%) scale(1.05); }
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.85rem, 9vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-title-accent {
  background: linear-gradient(118deg, #050a12 0%, var(--accent-deep) 28%, var(--accent) 62%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 300;
  color: var(--text-soft);
  max-width: 26rem;
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* Buttons */
.btn-hermes-primary {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(145deg, #0a1628 0%, var(--accent-deep) 40%, var(--accent) 100%);
  color: #f8fafc;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, filter 0.2s;
}

.btn-hermes-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.22);
  filter: brightness(1.06);
}

.btn-hermes-ghost {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out);
}

.btn-hermes-ghost:hover {
  border-color: var(--accent-mid);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  transform: translateY(-2px);
}

/* Ticker — stile editoriale / product, non “striscia anni 2000” */
.marquee-wrap {
  position: relative;
  z-index: 1;
  margin-top: -1px;
  padding: 0.55rem 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-top: 1px solid rgba(2, 6, 23, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 5%,
    #000 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 5%,
    #000 95%,
    transparent 100%
  );
}

.marquee {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(1.1rem, 2.8vw, 1.85rem);
  width: max-content;
  animation: marquee-slide 32s linear infinite;
  will-change: transform;
  font-size: clamp(0.78rem, 1.35vw, 0.875rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: none;
  color: rgba(15, 23, 42, 0.42);
}

.marquee-item {
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-item:nth-child(4n + 1) {
  color: rgba(15, 23, 42, 0.52);
}

.marquee-sep {
  flex-shrink: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.22;
}

@keyframes marquee-slide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Studio */
.section-studio {
  position: relative;
  padding: clamp(4rem, 12vw, 7rem) 0;
  overflow: hidden;
}

.section-studio .container {
  position: relative;
  z-index: 1;
}

.studio-statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.8vw, 2.35rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
}

.studio-statement em {
  font-style: italic;
  color: var(--accent-deep);
}

/* Focus panel */
.section-focus {
  padding: 0 0 clamp(4rem, 10vw, 6rem);
}

.py-lg-6 {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 5.5rem !important;
    padding-bottom: 5.5rem !important;
  }
}

.focus-panel {
  position: relative;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
  background: linear-gradient(152deg, #020617 0%, #0f172a 38%, #0f2744 78%, #152a45 100%);
  color: #e2e8f0;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  box-shadow:
    0 32px 64px rgba(2, 6, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.focus-panel .container {
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .focus-panel {
    margin-right: 5%;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  }
}

@media (max-width: 991.98px) {
  .focus-panel {
    margin-left: 1rem;
    margin-right: 1rem;
    border-radius: var(--radius-lg);
  }
}

.label-upper {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.48);
  margin-bottom: 0;
}

.focus-list li {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.25s ease, padding-left 0.25s var(--ease-out);
}

.focus-list li:last-child {
  border-bottom: none;
}

.focus-list li:hover {
  color: #fff;
  padding-left: 0.35rem;
}

.focus-list li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: rgba(226, 232, 240, 0.35);
  margin-right: 1rem;
  vertical-align: -0.12em;
  opacity: 0.9;
}

/* Quote */
.section-quote {
  position: relative;
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  overflow: hidden;
}

.section-quote .container {
  position: relative;
  z-index: 1;
}

.quote-display {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  text-align: center;
  max-width: 18ch;
  margin: 0 auto;
  color: var(--text-soft);
}

/* Contact */
.section-contact {
  position: relative;
  overflow: hidden;
  padding: 0 0 clamp(3rem, 8vw, 5rem);
}

.section-contact .container {
  z-index: 2;
}

.contact-glass {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.contact-glass .row {
  position: relative;
  z-index: 1;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--text);
}

.contact-copy {
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 28rem;
}

.contact-mail {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-mid);
  transition: color 0.2s, border-color 0.2s;
}

.contact-mail:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent-deep);
}

.contact-meta {
  font-size: 0.8125rem;
  color: var(--text-soft);
}

/* Footer */
.footer-hermes {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.footer-brand {
  color: var(--text);
}

.footer-tag {
  opacity: 0.85;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-content .reveal:nth-child(1) {
  transition-delay: 0s;
}

.hero-content .reveal:nth-child(2) {
  transition-delay: 0.07s;
}

.hero-content .reveal:nth-child(3) {
  transition-delay: 0.14s;
}

.hero-content .reveal:nth-child(4) {
  transition-delay: 0.21s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee {
    animation: none !important;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    row-gap: 0.35rem;
    column-gap: 0.75rem;
  }
}
