/* ======================================================
   Green Day Italia — case study page
   Tema: eco-tech scuro, vibrante, tipografia bold
   ====================================================== */

:root{
  --bg: #0a0f0d;
  --bg-alt: #0d1512;
  --surface: rgba(255,255,255,.045);
  --surface-2: rgba(255,255,255,.03);
  --border: rgba(255,255,255,.09);
  --text: #f3f6f1;
  --text-dim: #a9b5ac;
  --text-muted: #76837a;
  --lime: #c8ff4d;
  --lime-soft: #eaffb0;
  --emerald: #1f8a56;
  --radius: 20px;
  --container: 1160px;
  --header-h: 84px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

:root{ color-scheme: dark; }

*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }
button{ font: inherit; -webkit-appearance: none; appearance: none; }

::selection{ background: var(--lime); color: #0a0f0d; }

/* scrollbar */
::-webkit-scrollbar{ width: 10px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{ background: #23312a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover{ background: var(--emerald); }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- noise overlay ---------- */
.noise-overlay{
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- progress bar ---------- */
.progress-bar{
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  z-index: 300;
  background: transparent;
}
.progress-bar span{
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--emerald), var(--lime));
  transition: width .1s linear;
}

/* ---------- header ---------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled{
  background: rgba(10,15,13,.78);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-wrap{
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo{ height: 32px; width: auto; }
.brand-name{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: var(--text);
}
.brand-name em{ color: var(--lime); font-style: normal; }

.nav-links{
  display: flex;
  gap: 30px;
}
.nav-links a{
  text-decoration: none;
  color: var(--text-dim);
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s ease;
  position: relative;
}
.nav-links a:hover{ color: var(--text); }

.header-right{ display: flex; align-items: center; gap: 18px; }

.status-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.status-pill .dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(200,255,77,.6);
  animation: pulse 2.4s infinite;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-menu{
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(10,15,13,.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: max-height .35s ease;
}
.mobile-menu.open{ max-height: 340px; }
.mobile-menu a{
  padding: 16px 24px;
  text-decoration: none;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  font-size: .95rem;
}
.mobile-menu a:first-child{ border-top: none; }

/* ---------- hero ---------- */
.hero{
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg{ position: absolute; inset: 0; z-index: 0; }
.hero-bg-img{
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(75%) brightness(.45) contrast(1.1);
  opacity: 0;
  animation: heroCrossfade 18s infinite;
}
.hero-bg-img.img1{ background-image: url("../../img/1920/1.jpg"); animation-delay: 0s; }
.hero-bg-img.img2{ background-image: url("../../img/1920/4.jpg"); animation-delay: 6s; }
.hero-bg-img.img3{ background-image: url("../../img/1920/7.jpg"); animation-delay: 12s; }

.hero-gradient{
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(10,15,13,.2), transparent 60%),
    linear-gradient(180deg, rgba(10,15,13,.55) 0%, rgba(10,15,13,.9) 62%, var(--bg) 100%);
}

.hero-blob{
  position: absolute;
  width: 46vw; height: 46vw;
  max-width: 560px; max-height: 560px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .3;
  z-index: 0;
  pointer-events: none;
  animation: floatBlob 22s ease-in-out infinite alternate;
}
.blob-a{ background: var(--lime); top: -12%; left: -14%; }
.blob-b{ background: var(--emerald); bottom: -18%; right: -10%; animation-delay: -9s; }

.hero-content{
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px 100px;
  width: 100%;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 22px;
  font-weight: 500;
}
.eyebrow .dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

.hero-title{
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.02em;
  font-size: clamp(3rem, 9vw, 7.2rem);
  margin: 0 0 28px;
}
.hero-title .line{ display: block; }
.hero-title .line-accent{
  background: linear-gradient(90deg, var(--lime), var(--lime-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub{
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.6;
  margin: 0 0 34px;
}

.hero-meta{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  padding: 0;
  margin: 0 0 40px;
}
.hero-meta li{
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  display: flex;
  gap: 7px;
  align-items: baseline;
}
.hero-meta strong{
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
}

.hero-cta{ display: flex; flex-wrap: wrap; gap: 16px; }

.scroll-cue{
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  animation: bounce 2.6s infinite;
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease;
  cursor: pointer;
}
.btn-primary{
  background: var(--lime);
  color: #0a0f0d;
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(200,255,77,.55);
}
.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover{
  border-color: var(--lime);
  color: var(--lime);
}
.btn-lg{ padding: 18px 32px; font-size: 1rem; }

/* ---------- sections ---------- */
.section{ padding: 128px 0; position: relative; }
.section-alt{ background: var(--bg-alt); }

.section-head{ max-width: 720px; margin-bottom: 56px; }
.section-label{
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 16px;
}
.section-head h2{
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.1;
  margin: 0 0 20px;
}
.lead{
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 640px;
  margin: 0;
}
.center{ text-align: center; margin-left: auto; margin-right: auto; }

.mission-quote{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.45;
  color: var(--text);
  border-left: 3px solid var(--lime);
  padding: 4px 0 4px 28px;
  margin: 48px 0 0;
  max-width: 820px;
}

.stats-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.stat-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  backdrop-filter: blur(10px);
}
.stat-number{
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 14px;
}
.stat-number.stat-text{ font-size: 2.1rem; }
.stat-label{ color: var(--text-dim); font-size: .95rem; line-height: 1.55; margin: 0; }

/* ---------- timeline (precursore) ---------- */
.timeline{ margin-top: 52px; }
.timeline-item{
  display: grid;
  grid-template-columns: 110px 28px 1fr;
  column-gap: 20px;
}
.timeline-year{
  text-align: right;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-muted);
  padding-top: 3px;
  white-space: nowrap;
}
.timeline-track{
  position: relative;
  display: flex;
  justify-content: center;
}
.timeline-track::before{
  content: "";
  position: absolute;
  top: 4px;
  bottom: -32px;
  width: 2px;
  background: var(--border);
}
.timeline-item:last-child .timeline-track::before{ display: none; }
.timeline-dot{
  position: relative;
  z-index: 1;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-muted);
  margin-top: 2px;
}
.timeline-content{ padding-bottom: 40px; }
.timeline-item:last-child .timeline-content{ padding-bottom: 0; }
.timeline-content h3{
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}
.timeline-content p{
  color: var(--text-dim);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0;
  max-width: 520px;
}
.timeline-item.highlight .timeline-dot{
  width: 18px; height: 18px;
  margin-top: 0;
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 0 5px rgba(200,255,77,.18);
}
.timeline-item.highlight .timeline-year{ color: var(--lime); font-size: 1.05rem; }
.timeline-item.highlight .timeline-content{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px 24px;
  margin-top: -14px;
}
.timeline-item.highlight .timeline-content h3{ font-size: 1.3rem; color: var(--lime); }
.timeline-note{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text);
  border-left: 3px solid var(--lime);
  padding: 4px 0 4px 28px;
  margin: 44px 0 0;
  max-width: 640px;
}

/* ---------- marquee ---------- */
.marquee{
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  padding: 20px 0;
  margin-bottom: 72px;
}
.marquee-track{
  display: inline-flex;
  white-space: nowrap;
  gap: 20px;
  animation: marquee 32s linear infinite;
  will-change: transform;
}
.marquee-track span{
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .09em;
  color: var(--text-muted);
}

/* ---------- cities grid ---------- */
.cities-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.city-card{
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  line-height: 0;
  transition: transform .35s ease, box-shadow .35s ease;
  cursor: default;
}
.city-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -14px rgba(200,255,77,.35);
}

/* ---------- gallery ---------- */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.gallery-item{
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  aspect-ratio: 1300 / 620;
}
.gallery-item img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(60%) brightness(.85) contrast(1.05);
  transition: filter .5s ease, transform .6s ease;
}
.gallery-item::after{
  content: "";
  position: absolute; inset: 0;
  background: var(--lime);
  opacity: .1;
  mix-blend-mode: color;
  transition: opacity .5s ease;
}
.gallery-item:hover img{
  filter: grayscale(0%) brightness(1) contrast(1);
  transform: scale(1.045);
}
.gallery-item:hover::after{ opacity: 0; }

/* ---------- NH Hotels case card ---------- */
.case-card{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
  backdrop-filter: blur(10px);
}
.case-text p{
  color: var(--text-dim);
  line-height: 1.8;
  margin: 0 0 18px;
}
.case-text strong{ color: var(--text); }
.case-note{
  color: var(--text);
  border-left: 2px solid var(--lime);
  padding-left: 16px;
  font-size: .98rem;
}
.citation{
  font-size: .8rem !important;
  color: var(--text-muted) !important;
  margin-top: 22px !important;
}

.mini-stats{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-content: start;
}
.mini-stat{
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
}
.mini-value{
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 8px;
}
.mini-label{ font-size: .76rem; color: var(--text-muted); line-height: 1.4; }

/* ---------- CTA / contatti ---------- */
.section-cta{ text-align: center; }
.cta-box{ max-width: 720px; margin: 0 auto; }
.cta-box h2{
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 18px 0 26px;
}
.cta-box .lead{ margin: 0 auto 38px; }

/* ---------- footer ---------- */
.site-footer{
  padding: 44px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand{ display: flex; align-items: center; gap: 14px; }
.footer-brand img{ height: 26px; opacity: .75; }
.footer-brand p{ margin: 0; color: var(--text-muted); font-size: .85rem; max-width: 340px; }
.footer-credit{ margin: 0; color: var(--text-muted); font-size: .8rem; }

/* ---------- lightbox ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(6,10,8,.96);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.active{ opacity: 1; visibility: visible; }
.lightbox-img{
  max-width: 88vw;
  max-height: 80vh;
  border-radius: 14px;
  box-shadow: 0 40px 90px rgba(0,0,0,.6);
}
.lightbox-close{
  position: absolute;
  top: 22px; right: 26px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-prev{ left: 22px; }
.lightbox-next{ right: 22px; }
.lightbox-counter{
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: .85rem;
  letter-spacing: .05em;
}

/* ---------- reveal on scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible{ opacity: 1; transform: translateY(0); }

/* ---------- keyframes ---------- */
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(200,255,77,.55); }
  70%{ box-shadow: 0 0 0 8px rgba(200,255,77,0); }
  100%{ box-shadow: 0 0 0 0 rgba(200,255,77,0); }
}
@keyframes heroCrossfade{
  0%{ opacity: 0; }
  8%{ opacity: .4; }
  30%{ opacity: .4; }
  38%{ opacity: 0; }
  100%{ opacity: 0; }
}
@keyframes floatBlob{
  0%{ transform: translate(0,0) scale(1); }
  100%{ transform: translate(4%, 6%) scale(1.08); }
}
@keyframes bounce{
  0%, 100%{ transform: translate(-50%, 0); }
  50%{ transform: translate(-50%, 8px); }
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .nav-links{ display: none; }
  .nav-toggle{ display: flex; }
  .cities-grid{ grid-template-columns: repeat(4, 1fr); }
  .case-card{ grid-template-columns: 1fr; }
  .mini-stats{ grid-template-columns: repeat(4,1fr); }
}

@media (max-width: 720px){
  .section{ padding: 92px 0; }
  .stats-grid{ grid-template-columns: 1fr; }
  .cities-grid{ grid-template-columns: repeat(3, 1fr); }
  .gallery-grid{ grid-template-columns: 1fr; }
  .case-card{ padding: 32px 24px; }
  .mini-stats{ grid-template-columns: 1fr 1fr; }
  .footer-wrap{ flex-direction: column; align-items: flex-start; }
  .hero-content{ padding-bottom: 120px; }
}

@media (max-width: 480px){
  .cities-grid{ grid-template-columns: repeat(2, 1fr); }
  .hero-meta{ gap: 10px 20px; }
  .timeline-item{ grid-template-columns: 74px 22px 1fr; column-gap: 12px; }
  .timeline-year{ font-size: .78rem; }
  .timeline-item.highlight .timeline-year{ font-size: .85rem; }
  .timeline-content h3{ font-size: .95rem; }
  .timeline-item.highlight .timeline-content{ padding: 16px 16px 20px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
