/* =========================================================================
   ALTRIMENTI — landing page IRIDEE
   I COLORI e lo stile sono qui sotto nelle variabili :root.
   Le INFORMAZIONI da modificare sono nel body di index.html,
   segnalate con commenti tipo  <!-- MODIFICA: ... -->
   ========================================================================= */

:root {
  /* Palette: i primari mixati della locandina + bianco */
  --ink: #1A1A18;
  --paper: #ffffff;
  --gold: #F5B301;
  --teal: #19B5C4;
  --pink: #FF4D8D;
  --violet: #6B4FD0;
  --red: #EE3B4B;
  --orange: #FF7A1F;
  --blue: #2F6BEA;

  --bg: #fbfbf9;
  --line: #ececea;
  --muted: #6b6b66;

  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 64px);
  --r: 18px;

  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none
}

img {
  max-width: 100%;
  display: block
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad)
}

/* Grana globale (texture della locandina) ----------------------------------*/
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: soft-light;
}

/* ===================== NAV ============================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
  transform: translateY(-120%);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
  background: rgba(251, 251, 249, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav.show {
  transform: translateY(0)
}

.nav__brand {
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: 1.1rem
}

.nav__brand span {
  color: var(--pink)
}

.nav__links {
  display: flex;
  gap: 6px;
  align-items: center
}

.nav__links a {
  font-weight: 600;
  font-size: .9rem;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  transition: .2s;
}

.nav__links a:hover {
  color: var(--ink);
  background: #fff
}

.nav__date {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

@media(max-width:720px) {
  .nav__links a:not(.nav__cta) {
    display: none
  }
}

/* ===================== HERO ============================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: 96px var(--pad) 48px;
}

/* Sfondo hero: immagine della locandina (gradiente + glifi integrati) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--ink) url("public/images/sfondo-altrimenti.jpg") center / cover no-repeat;
}

/* leggera vignettatura per leggibilità del titolo bianco */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(80% 70% at 18% 38%, rgba(20, 18, 30, .34), transparent 60%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  letter-spacing: .01em;
  margin-bottom: .4rem;
}

.hero__eyebrow b {
  font-weight: 900
}

.iridee {
  font-weight: 900;
  letter-spacing: .18em;
  padding: 2px 4px
}

/* logo IRIDEE (bianco) accanto a "Il festival di" nell'hero */
.iridee-logo {
  height: 1.5em;
  width: auto
}

.hero h1 {
  color: #fff;
  font-weight: 900;
  letter-spacing: -.04em;
  font-size: clamp(2.8rem, 13.5vw, 9rem);
  line-height: .86;
  margin: .1em 0 .3em;
  text-shadow: 0 8px 60px rgba(0, 0, 0, .18);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin-bottom: 1.3rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: clamp(.95rem, 2vw, 1.1rem);
  backdrop-filter: blur(2px);
}

.chip.solid {
  background: #fff;
  color: var(--ink);
  border-color: #fff
}

.chip .mono {
  font-family: var(--mono);
  font-weight: 700
}

.hero__payoff {
  color: #fff;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 500;
  max-width: 42ch;
  margin-bottom: 1.6rem;
  text-wrap: balance;
}

.hero__payoff b {
  font-weight: 800
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.tag {
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35)
}

.scrolldown {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  opacity: .9;
  animation: bob 2.4s ease-in-out infinite;
}

.scrolldown::after {
  content: "";
  width: 1px;
  height: 30px;
  background: #fff;
  opacity: .6
}

@keyframes bob {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: .55
  }

  50% {
    transform: translateX(-50%) translateY(6px);
    opacity: 1
  }
}

/* ===================== MARQUEE (firma del brand) ===================== */
.marquee {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: 14px 0;
  border-block: 1px solid var(--ink);
  user-select: none;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: scrollx 38s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused
}

.marquee__track span {
  font-weight: 900;
  font-size: clamp(1.1rem, 3vw, 1.9rem);
  letter-spacing: -.01em;
  padding: 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  white-space: nowrap;
}

.marquee__track span::after {
  content: "✺";
  font-size: .7em;
  opacity: .6
}

.marquee b {
  font-weight: 900
}

@keyframes scrollx {
  to {
    transform: translateX(-50%)
  }
}

/* colori a rotazione per la parola ALTRIMENTI nel marquee */
.m1 {
  color: var(--gold)
}

.m2 {
  color: var(--teal)
}

.m3 {
  color: var(--pink)
}

.m4 {
  color: var(--violet)
}

.m5 {
  color: var(--orange)
}

.m6 {
  color: var(--blue)
}

.m7 {
  color: var(--red)
}

/* ===================== SECTIONS ===================== */
section {
  position: relative
}

.sec {
  padding: clamp(64px, 9vw, 120px) 0
}

.sec__head {
  margin-bottom: clamp(32px, 5vw, 56px)
}

.eyebrow {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  display: inline-block
}

.sec h2 {
  font-size: clamp(2.3rem, 7vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: .98;
  margin: .35rem 0 .2rem
}

.sec__sub {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 46ch
}

/* ---------- LINEUP ---------- */
.lineup {
  display: grid;
  gap: 0
}

.slot {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: clamp(14px, 3vw, 34px);
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.slot:last-child {
  border-bottom: 1px solid var(--line)
}

.slot__time {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
  padding-top: 6px;
  white-space: nowrap
}

.slot__time small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 400
}

.slot__body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px
}

.slot__title {
  font-size: clamp(1.25rem, 3.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1
}

.slot__by {
  color: var(--muted);
  font-weight: 500;
  font-size: 1rem
}

.type {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #fff;
  padding: 5px 10px;
  border-radius: 7px;
  align-self: center;
  line-height: 1;
  white-space: nowrap
}

.t-open {
  background: var(--ink)
}

.t-work {
  background: var(--violet)
}

.t-talk {
  background: var(--pink)
}

.t-ride {
  background: var(--teal)
}

.t-date {
  background: var(--orange)
}

.t-music {
  background: var(--red)
}

.t-dj {
  background: var(--blue)
}

.slot:hover .slot__title {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px
}

@media(max-width:560px) {
  .slot {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0
  }

  .slot__time {
    padding-top: 0
  }
}

/* ---------- FOOD ---------- */
.food {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.fcard {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: .25s;
}

.fcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .3)
}

.fcard::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--c, var(--gold))
}

.fcard .when {
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted)
}

.fcard h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: .5rem 0 .25rem
}

.fcard p {
  color: var(--muted);
  font-size: .98rem
}

.fcard .kind {
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--c, var(--gold))
}

@media(max-width:780px) {
  .food {
    grid-template-columns: 1fr
  }
}

/* ---------- DOVE / MAPPA ---------- */
.place {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: stretch
}

.place__info {
  display: flex;
  flex-direction: column;
  justify-content: center
}

.place__addr {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: .2rem 0 .3rem
}

.place__addr span {
  color: var(--muted);
  font-weight: 600;
  font-size: .7em;
  display: block
}

.place__note {
  color: var(--muted);
  margin: .6rem 0 1.4rem;
  max-width: 42ch
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: 999px;
  transition: .2s;
  border: 2px solid var(--ink)
}

.btn--fill {
  background: var(--ink);
  color: #fff
}

.btn--fill:hover {
  background: var(--pink);
  border-color: var(--pink)
}

.btn--ghost:hover {
  background: var(--ink);
  color: #fff
}

.map {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 340px
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
  filter: grayscale(.15)
}

@media(max-width:820px) {
  .place {
    grid-template-columns: 1fr
  }
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px
}

.q {
  border-top: 1px solid var(--line)
}

.q:last-child {
  border-bottom: 1px solid var(--line)
}

.q__btn {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--font);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em
}

.q__btn:hover {
  color: var(--pink)
}

.q__ico {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid currentColor;
  position: relative;
  transition: .3s
}

.q__ico::before,
.q__ico::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)
}

.q__ico::before {
  width: 12px;
  height: 2px
}

.q__ico::after {
  width: 2px;
  height: 12px;
  transition: .3s
}

.q[open] .q__ico {
  transform: rotate(180deg)
}

.q[open] .q__ico::after {
  transform: translate(-50%, -50%) scaleY(0)
}

.q__a {
  padding: 0 4px 24px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 64ch
}

.q__a a {
  color: var(--pink);
  font-weight: 700;
  text-decoration: underline
}

/* ---------- PARTNER + FOOTER ---------- */
.partner {
  background: var(--ink);
  color: #fff
}

.partner .sec {
  padding-block: clamp(56px, 7vw, 84px)
}

.partner .eyebrow {
  color: rgba(255, 255, 255, .7)
}

.plabel {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 14px
}

.pbox {
  background: #fff;
  color: var(--ink);
  border-radius: var(--r);
  padding: 26px 30px;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  max-width: 100%
}

.pbox__logo {
  width: clamp(220px, 42vw, 320px);
  height: auto
}

.pbox b {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -.01em
}

.pbox b em {
  color: var(--teal);
  font-style: normal
}

.pbox small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(48px, 7vw, 72px);
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .16)
}

.foot__brand b {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.02em
}

.foot__brand b span {
  color: var(--pink)
}

.foot__brand p {
  color: rgba(255, 255, 255, .65);
  max-width: 34ch;
  margin-top: 6px;
  font-size: .95rem
}

.foot__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start
}

.foot__links a {
  font-weight: 700;
  font-size: .92rem;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  transition: .2s
}

.foot__links a:hover {
  background: #fff;
  color: var(--ink)
}

.copy {
  color: rgba(255, 255, 255, .45);
  font-size: .82rem;
  margin-top: 40px
}

.copy a {
  text-decoration: underline
}

/* ===================== A11Y / MOTION ===================== */
:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important
  }
}
