/* ==========================================
   MILK APS — v3 — Full Screen, No Frame
   Helvetica Neue Light · #000 · #6290EB · #fff
   ========================================== */

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

:root {
  --font:   'Helvetica Neue', Helvetica, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --blue:   #6290EB;
  --black:  #000;
  --white:  #fff;
  --gray:   #555;
  --nav-h:  64px;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  font-weight: 300;
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}
a   { text-decoration: none; color: var(--blue); }
img { display: block; max-width: 100%; }


/* ==========================================
   LOGO — fixed top-left
   ========================================== */

.site-logo {
  position: fixed;
  top: 20px; left: 40px;
  z-index: 300;
}
.site-logo img { height: 26px; width: auto; }


/* ==========================================
   HAMBURGER — mobile only
   ========================================== */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  position: fixed;
  top: 10px; right: 16px;
  z-index: 300;
  background: none; border: none; cursor: pointer;
  width: 48px; height: 48px; padding: 11px;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--black); border-radius: 2px;
  transition: transform .3s, opacity .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* ==========================================
   NAV — fixed top-right (desktop)
   ========================================== */

.frame-nav {
  position: fixed;
  top: 24px; right: 40px;
  z-index: 300;
  display: flex;
  gap: 28px;
  align-items: center;
}
.frame-nav a {
  font-size: .82rem;
  font-weight: 300;
  color: var(--blue);
  letter-spacing: .06em;
  transition: opacity .2s;
}
.frame-nav a:hover  { opacity: .6; }
.frame-nav a.active { text-decoration: underline; text-underline-offset: 5px; }

/* Nav overlay mobile — copre tutto lo schermo */
.frame-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.frame-nav-overlay.open { display: flex; }
.frame-nav-overlay a {
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--blue);
  letter-spacing: .04em;
}


/* ==========================================
   HOME — slideshow full screen
   ========================================== */

.page-home {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.slideshow {
  position: absolute;
  inset: 0 0 0 0;
  z-index: 0;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.slide.active { opacity: 1; }
.slide-empty  { background: #f0f0f0; }

/* Overlay bianco semitrasparente — accentua contrasto nav e titolo */
.slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255,255,255,.62);
  pointer-events: none;
}

/* Titolo centrato — in azzurro */
.home-content {
  position: absolute;
  inset: 0 0 64px 0; /* sale sopra il footer */
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.home-title {
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  color: var(--blue);
  text-align: center;
  letter-spacing: -.01em;
  line-height: 1.15;
  padding: 0 32px;
}

/* Footer info — strip bianca al fondo */
.home-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,.07);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  font-size: .62rem;
  font-weight: 300;
  color: var(--blue);
  line-height: 1.9;
}
.home-footer a { color: var(--blue); }
.home-footer a:hover { text-decoration: underline; }
.home-footer .footer-legal {
  margin-top: 2px;
  display: flex;
  gap: 14px;
  font-size: .6rem;
}


/* ==========================================
   CHI — foto inline + testo + team + cta
   ========================================== */

.page-chi {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-chi::-webkit-scrollbar { display: none; }

.chi-content {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: calc(var(--nav-h) + 16px) 32px 48px;
}

.chi-photo {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  margin: 0 auto 24px;
}

.chi-text {
  font-size: .86rem;
  line-height: 1.85;
  color: var(--black);
  font-weight: 300;
  margin-bottom: 28px;
}

.chi-founders-label {
  font-size: .66rem;
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 12px;
}

.chi-team {
  font-size: .78rem;
  line-height: 2;
  color: var(--gray);
  font-weight: 300;
  margin-bottom: 28px;
}
.chi-team p { margin: 0; }

.chi-cta {
  font-size: .84rem;
  font-weight: 300;
  color: var(--blue);
  transition: opacity .2s;
}
.chi-cta:hover { opacity: .6; }


/* ==========================================
   COSA — slideshow centrato + progetti
   ========================================== */

.page-cosa {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.page-cosa::-webkit-scrollbar { display: none; }

.cosa-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 24px) 32px 64px;
}

/* Slideshow centrato — stesso width del testo */
.cosa-slideshow {
  width: 100%;
  aspect-ratio: 3/2;
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 36px;
}

.cosa-desc {
  font-size: .86rem;
  line-height: 1.9;
  color: var(--black);
  font-weight: 300;
  margin-bottom: 36px;
  text-align: center;
}

.cosa-projects-label {
  font-size: .66rem;
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 16px;
}

.cosa-projects {
  display: flex;
  flex-direction: column;
  margin-bottom: 44px;
}
.cosa-project {
  padding: 14px 0;
  border-bottom: 1px solid #ebebeb;
}
.cosa-project:first-child { border-top: 1px solid #ebebeb; }
.cosa-project-name {
  font-size: .78rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: .01em;
  margin-bottom: 3px;
}
.cosa-project-desc {
  font-size: .76rem;
  color: var(--gray);
  line-height: 1.6;
  font-weight: 300;
}

.cosa-cta {
  display: flex;
  gap: 44px;
  justify-content: center;
  font-size: .86rem;
  font-weight: 300;
  letter-spacing: .04em;
}
.cosa-cta a { color: var(--blue); transition: opacity .2s; }
.cosa-cta a:hover { opacity: .6; }


/* ==========================================
   PERCHÉ — foto inline + testo + carousel + cta
   ========================================== */

.page-perche {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--white);
}
.page-perche::-webkit-scrollbar { display: none; }

.perche-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: calc(var(--nav-h) + 24px) 32px 64px;
}

/* Slideshow perché — stesso width del testo, senza blur */
.perche-slideshow {
  width: 100%;
  aspect-ratio: 3/2;
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 36px;
}

.perche-text {
  font-size: .86rem;
  line-height: 1.95;
  color: var(--black);
  font-weight: 300;
  margin-bottom: 28px;
}

.perche-cta {
  font-size: .84rem;
  font-weight: 300;
  color: var(--blue);
  transition: opacity .2s;
}
.perche-cta:hover { opacity: .6; }


/* ==========================================
   PARTNER CAROUSEL
   ========================================== */

.partners-section {
  padding: 36px 0 44px;
  border-top: 1px solid #e8e8e8;
}
.partners-label {
  text-align: center;
  font-size: .62rem;
  font-weight: 300;
  letter-spacing: .16em;
  color: #bbb;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.partners-mask {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.partners-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: scrollTrack 22s linear infinite;
  align-items: center;
}
@keyframes scrollTrack {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.partners-track img {
  height: 36px; width: auto; flex-shrink: 0;
  object-fit: contain;
  filter: grayscale(100%) opacity(.4);
  transition: filter .3s;
}
.partners-track img:hover { filter: grayscale(0%) opacity(1); }


/* ==========================================
   SLIDESHOW PHOTOS — desktop (landscape)
   ========================================== */

.slide-home-1 { background-image: url(../img/slide-home-1.jpg); }
.slide-home-2 { background-image: url(../img/slide-home-2.jpg); }
.slide-home-3 { background-image: url(../img/slide-home-3.jpg); }

.slide-cosa-1 { background-image: url(../img/slide-cosa-1.jpg); }
.slide-cosa-2 { background-image: url(../img/slide-cosa-2.jpg); }
.slide-cosa-3 { background-image: url(../img/slide-cosa-3.jpg); }

.slide-perche-1 { background-image: url(../img/slide-home-1.jpg); }
.slide-perche-2 { background-image: url(../img/slide-cosa-1.jpg); }
.slide-perche-3 { background-image: url(../img/slide-home-3.jpg); }


/* ==========================================
   U-RUN — pagina evento
   ========================================== */

.page-urun {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--white);
}
.page-urun::-webkit-scrollbar { display: none; }

.urun-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: calc(var(--nav-h) + 24px) 32px 64px;
}

.urun-flyer {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
}
.urun-flyer:last-of-type { margin-bottom: 28px; }

.urun-flyer-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  color: #bbb;
  font-size: .76rem;
  letter-spacing: .08em;
}

.urun-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .06em;
  margin-bottom: 20px;
}

.urun-tagline {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 28px;
}

.urun-manifesto {
  font-size: .86rem;
  line-height: 1.9;
  color: #333;
  font-weight: 300;
  margin-bottom: 36px;
}

.urun-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.urun-cta-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: .82rem;
  font-weight: 300;
  letter-spacing: .08em;
  padding: 13px 36px;
  text-decoration: none;
  transition: opacity .2s;
}
.urun-cta-primary:hover { opacity: .8; }

.urun-cta-secondary {
  font-size: .8rem;
  font-weight: 300;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: .04em;
}
.urun-cta-secondary:hover { text-decoration: underline; }


/* ==========================================
   PAGINE LEGALI
   ========================================== */

.legal-page {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.legal-page::-webkit-scrollbar { display: none; }

.legal-content {
  max-width: 680px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 20px) 40px 64px;
}
.legal-content h1 {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 6px; color: var(--black);
}
.legal-date { font-size: .78rem; color: #888; margin-bottom: 44px; display: block; }
.legal-content h2 { font-size: .9rem; font-weight: 700; margin: 28px 0 6px; color: var(--black); }
.legal-content h3 { font-size: .84rem; font-weight: 700; margin: 18px 0 4px; color: var(--black); }
.legal-content p  { font-size: .84rem; line-height: 1.85; color: #333; margin-bottom: 10px; font-weight: 300; }
.legal-content ul { padding-left: 18px; margin-bottom: 10px; }
.legal-content ul li { font-size: .84rem; line-height: 1.85; color: #333; list-style: disc; margin-bottom: 4px; font-weight: 300; }
.legal-content a  { color: var(--blue); }
.legal-content a:hover { text-decoration: underline; }
.legal-divider { border: none; border-top: 1px solid #eee; margin: 32px 0; }
.legal-back {
  display: inline-block; margin-bottom: 32px;
  font-size: .78rem; font-weight: 300; color: var(--blue);
}


/* ==========================================
   COOKIE BANNER
   ========================================== */

#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--black); color: var(--white);
  z-index: 9999; font-size: .76rem; font-weight: 300;
}
.cb-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 40px;
}
#cookie-banner a { color: var(--blue); text-decoration: underline; }
.cb-text p { margin: 4px 0 0; line-height: 1.5; }
.cb-text strong { font-weight: 700; }
.cb-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cb-btn {
  border: none; cursor: pointer; padding: 8px 18px;
  font-family: var(--font); font-size: .76rem; font-weight: 300;
  white-space: nowrap;
}
.cb-btn-primary  { background: var(--blue); color: var(--white); }
.cb-btn-secondary {
  background: none; color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.2);
}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 860px) {
  :root { --nav-h: 52px; }

  /* Barra bianca header mobile */
  body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: var(--white);
    box-shadow: none;
    z-index: 200;
  }

  .site-logo { top: 12px; left: 16px; }
  .site-logo img { height: 28px; }

  .hamburger { display: flex; top: 8px; right: 12px; }
  .frame-nav { display: none; }

  .home-footer { padding: 0 16px; font-size: .56rem; }

  .chi-content   { padding: calc(var(--nav-h) + 12px) 20px 40px; }
  .cosa-inner    { padding: calc(var(--nav-h) + 12px) 20px 48px; }
  .perche-inner  { padding: calc(var(--nav-h) + 12px) 20px 48px; }
  .legal-content { padding: calc(var(--nav-h) + 12px) 20px 48px; }

  .cosa-cta { flex-direction: column; gap: 14px; align-items: center; }
  .home-title { font-size: clamp(1.3rem, 5vw, 2rem); }
}

@media (max-width: 860px) {
  /* Mobile: usa le foto verticali per gli slideshow home */
  .slide-home-1 { background-image: url(../img/slide-home-m1.jpg); }
  .slide-home-2 { background-image: url(../img/slide-home-m2.jpg); }
  .slide-home-3 { background-image: url(../img/slide-home-m3.jpg); }

  .slide-cosa-1 { background-image: url(../img/slide-cosa-m1.jpg); }
  .slide-cosa-2 { background-image: url(../img/slide-cosa-m2.jpg); }
  .slide-cosa-3 { background-image: url(../img/slide-cosa-m3.jpg); }
}
