/* Base: variabili, reset, tipografia, bottoni */

:root {
  --bg: #000;
  --fg: #f4f1ec;
  --mute: #9b968f;
  --ac: #ff3b7a;
  --line: #242424;
  --r: 14px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font:
    300 1rem/1.7 Poppins,
    sans-serif;
  background: var(--bg);
  color: var(--fg);
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
.logo {
  font-family: "Roboto Condensed", sans-serif;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

h2 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-bottom: 2.5rem;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

p + p {
  margin-top: 1rem;
}

.mute {
  color: var(--mute);
}

section {
  padding: 6rem 5%;
  max-width: 1300px;
  margin: 0 auto;
}

:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 3px;
}

.btn {
  display: inline-block;
  background: var(--ac);
  color: #000;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: 99px;
  text-decoration: none;
  transition: transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.sm {
  padding: 0.55rem 1.2rem;
}

.btn.ghost {
  background: none;
  color: var(--fg);
  border: 1px solid var(--fg);
}

.row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Header e menu di navigazione */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 5%;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-size: 1.3rem;
  text-decoration: none;
  text-transform: uppercase;
  margin-right: auto;
}

.nav nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.nav nav a {
  text-decoration: none;
  color: var(--mute);
}

.nav nav a:hover {
  color: var(--fg);
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  font: inherit;
}

/* Hero (prima schermata) */

.hero {
  max-width: none;
  min-height: 100svh;
  padding: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.hero > img,
.hero > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000 5%, transparent 60%);
}

.hero-t {
  position: relative;
  z-index: 1;
  padding: 8rem 5% 5rem;
  max-width: 900px;
  animation: in 0.9s ease both;
}

.hero h1 {
  font-size: clamp(3.4rem, 13vw, 9rem);
  text-transform: uppercase;
  margin: 0.5rem 0 1.2rem;
}

.sub {
  font-size: 1.15rem;
  max-width: 34rem;
  color: #d8d3cc;
}

@keyframes in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Sezione serate */

.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.ev {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ev img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
}

.ev-b {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.ev time {
  color: var(--ac);
  font-weight: 600;
  text-transform: capitalize;
}

.ev .btn {
  margin-top: auto;
  align-self: flex-start;
}

.ev-b h3 {
  margin-top: 0.3rem;
}

.ev-b .ev-description {
  color: var(--fg);
  background: rgba(255, 59, 122, 0.07);
  border-left: 2px solid var(--ac);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0.8rem 1rem;
}

.ev-description p + p {
  margin-top: 0.55rem;
}

.ev-b .ev-genre {
  color: var(--ac);
  font-weight: 700;
}

.featured-nights {
  padding: 1rem 0 0;
}

.featured-nights-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

.featured-nights-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ac);
  margin-bottom: 0.6rem;
}

.featured-nights-heading h2 {
  margin: 0 0 0.6rem;
}

.featured-nights-intro {
  margin: 0;
  color: var(--muted);
}

.featured-nights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.featured-night {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 59, 122, 0.45);
  border-radius: 1.4rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 59, 122, 0.12), rgba(12, 14, 19, 0.95));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.featured-night img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.featured-night-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.featured-night-badge {
  align-self: flex-start;
  background: rgba(255, 59, 122, 0.15);
  border: 1px solid rgba(255, 59, 122, 0.5);
  color: #ffd5e2;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.featured-night time {
  color: #ffd5e2;
  font-weight: 600;
}

.featured-night h3 {
  margin: 0.1rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.featured-night-locale {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.featured-night-description {
  color: #f5f7fb;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--ac);
  border-radius: 0 0.8rem 0.8rem 0;
  padding: 0.8rem 1rem;
  margin-top: 0.3rem;
}

.featured-night-description p {
  margin: 0;
}

.featured-night-description p + p {
  margin-top: 0.55rem;
}

.featured-night-btn {
  margin-top: auto;
  align-self: flex-start;
  background: linear-gradient(135deg, #ff3b7a, #ff6b57);
  border-color: transparent;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--r);
  padding: 3rem 2rem;
}

/* Sezione locali e gallerie */

.loc-list {
  display: grid;
  gap: 5rem;
}

.loc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
}

.loc-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r);
}

.loc-b h3 {
  font-size: 2.6rem;
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 1.4rem;
}

.tags li {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.25rem 0.9rem;
  font-size: 0.85rem;
  color: var(--mute);
}

.gal {
  grid-column: 1/-1;
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.gal img {
  height: 300px;
  width: auto;
  border-radius: 10px;
  scroll-snap-align: start;
}

/* Servizi e passi */

.srv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

.srv div {
  border-top: 2px solid var(--ac);
  padding-top: 1.2rem;
}

.srv p {
  color: var(--mute);
}

.steps {
  list-style: none;
  display: grid;
  gap: 2rem;
  max-width: 700px;
}

.steps li {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.steps span {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--ac);
  color: #000;
  display: grid;
  place-items: center;
  font-weight: 600;
}

/* Chi sono e contatti */

.about {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: 4rem;
  align-items: center;
}

.about img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r);
}

.about p {
  max-width: 36rem;
}

.contact {
  text-align: center;
}

.contact .row {
  justify-content: center;
}

.contact p {
  color: var(--mute);
  max-width: 32rem;
  margin: 0 auto;
}

/* Carosello fotografico delle serate */

.nightlife-gallery {
  overflow: hidden;
}

.nightlife-gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.nightlife-gallery-heading h2 {
  margin: 0.5rem 0 0.8rem;
}

.nightlife-gallery-kicker {
  color: var(--ac);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nightlife-gallery-intro {
  color: var(--mute);
  max-width: 36rem;
}

.nightlife-gallery-controls {
  display: flex;
  flex: none;
  gap: 0.7rem;
}

.gallery-arrow {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  font-size: 1.4rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.gallery-arrow:hover:not(:disabled) {
  border-color: var(--ac);
  background: var(--ac);
  color: var(--bg);
}

.gallery-arrow:disabled {
  cursor: default;
  opacity: 0.35;
}

.nightlife-gallery-track {
  display: grid;
  grid-auto-columns: clamp(260px, 34vw, 420px);
  grid-auto-flow: column;
  gap: 1.2rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0.2rem 0 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--ac) var(--line);
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.nightlife-gallery-slide {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #111;
  scroll-snap-align: start;
}

.nightlife-gallery-slide::after {
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgb(0 0 0 / 72%));
  content: "";
  pointer-events: none;
}

.nightlife-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.nightlife-gallery-slide:hover img {
  transform: scale(1.04);
}

.nightlife-gallery-slide figcaption {
  position: absolute;
  z-index: 1;
  right: 1.2rem;
  bottom: 1rem;
  left: 1.2rem;
  color: var(--fg);
  font-size: 1.1rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .nightlife-gallery-heading {
    align-items: start;
  }

  .nightlife-gallery-controls {
    padding-top: 0.2rem;
  }

  .gallery-arrow {
    width: 2.6rem;
    height: 2.6rem;
  }

  .nightlife-gallery-slide {
    width: 100%;
  }

  .nightlife-gallery-track {
    grid-auto-columns: min(78vw, 360px);
  }
}

/* Footer */

footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 2rem 5%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  font-size: 0.85rem;
  color: var(--mute);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-credit {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ac);
  font-weight: 700;
  text-decoration: none;
}

.footer-credit:hover {
  color: var(--fg);
}

@media (max-width: 600px) {
  footer {
    justify-content: center;
  }

  .footer-legal {
    order: 1;
    justify-content: flex-start;
  }

  .footer-credit {
    position: static;
    order: 0;
    width: 100%;
    transform: none;
    text-align: center;
  }
}

.developer-page {
  min-height: 100vh;
  padding: 2rem 5%;
  display: flex;
  flex-direction: column;
}

.developer-home,
.developer-back {
  color: var(--mute);
  font-size: 0.85rem;
  text-decoration: none;
}

.developer-home {
  align-self: flex-start;
}

.developer-content {
  width: min(100%, 34rem);
  margin: auto;
  padding: 5rem 0;
}

.developer-kicker {
  color: var(--mute);
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.developer-content h1 {
  font-size: clamp(3rem, 9vw, 5.5rem);
  margin-bottom: 2.5rem;
}

.developer-links {
  border-top: 1px solid var(--line);
  margin-bottom: 2rem;
}

.developer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.2s;
}

.developer-links a:hover,
.developer-back:hover {
  color: var(--ac);
}

.developer-links span {
  color: var(--mute);
}

.developer-back {
  display: inline-block;
}

/* Mobile e preferenze di accessibilita */

@media (max-width: 820px) {
  .burger {
    display: block;
  }
  .nav nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #000;
    padding: 1.2rem 5%;
    border-bottom: 1px solid var(--line);
  }
  .nav nav.open {
    display: flex;
  }
  .loc,
  .about {
    grid-template-columns: 1fr;
  }
  section {
    padding: 4rem 5%;
  }
}

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