/*
 * main.css — DJ Nash
 * Stili componenti: navbar, hero, timeline, articoli, gallery,
 * social, architettura, testimonianze, contatti, roadmap, footer.
 * Dipende da style.css (variabili CSS già definite lì).
 * Mobile-first: base → 600px → 1024px
 */

/* ============================================================
   NAVBAR
============================================================ */

#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(8, 8, 8, .97);
  border-bottom: 1px solid var(--color-grey-2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center;
  padding: 0 var(--pad);
  justify-content: space-between; gap: 12px;
}

.header-main {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  flex: 1;
  min-width: 0;
}
main#main-content {
    padding-top: var(--nav-h); /* Oppure margin-top: var(--nav-h); */
}
#site-navigation {
  min-width: 0;
}

.header-social-wrapper {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 1023px) {
  #navbar .header-main > .header-social-wrapper {
    display: none;
  }
}

.nav-brand {
  display: flex; flex-direction: column;
  line-height: 1; gap: 1px; flex-shrink: 0;
  text-decoration: none;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 26px);
  letter-spacing: .15em;
  color: var(--color-acid);
}
.nav-logo span { color: var(--color-magenta); }
.nav-payoff {
  font-family: var(--font-mono);
  font-size: 8px; letter-spacing: .22em;
  color: var(--color-muted); text-transform: uppercase;
}

.nav-links {
  display: none;
  gap: clamp(12px, 1.8vw, 22px);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--color-muted);
  transition: color var(--tr);
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-acid);
  border-bottom-color: var(--color-acid);
}
/* TNN color: var(--color-white);*/

/* Dropdown menu a 2 livelli */
.nav-links li {
  position: relative;
}
.nav-links ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(8, 8, 8, .97);
  border: 1px solid var(--color-grey-2);
  min-width: 200px;
  z-index: 1000;
  padding: 0;
  margin: 0;
  list-style: none;
}
.nav-links li:hover > ul {
  display: block;
}
.nav-links ul li {
  list-style: none;
}
.nav-links ul a {
  display: block;
  padding: 10px 15px;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color var(--tr), background var(--tr);
}
.nav-links ul a:hover {
  color: var(--color-acid);
  background: var(--color-grey-2);
}

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column;
  gap: 5px; padding: 8px;
  background: none; border: none; z-index: 1001;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--color-white);
  transition: transform var(--tr), opacity var(--tr);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Drawer mobile */
.nav-drawer {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(8, 8, 8, .98);
  display: flex; flex-direction: column;
  /* Mantiene il contenuto del drawer ancorato a destra */
  align-items: flex-end; 
  justify-content: center; gap: 20px;
  transform: translateX(100%);
  transition: transform var(--tr-slow);
  /* Aggiunto padding laterale per non far toccare i testi al bordo */
  padding-right: 30px; 
}

.nav-drawer.open { transform: translateX(0); }

.drawer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 5vw, 36px);
  box-sizing: border-box;
  width: 100%;
}

.drawer-menu li {
  width: 100%;
  /* Allinea il contenuto della lista a destra */
  text-align: right; 
}

.drawer-menu > li > a {
  display: block;
  width: 100%;
}
@media (max-width: 1023px) {
/* TNN inizio menù mobile 2 livelli con accordion */
/* 1. STRUTTURA: Allineamento e posizionamento a fisarmonica */
li.menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

li.menu-item-has-children > a {
    flex: 1;
    width: auto;
}

li.menu-item-has-children > .drawer-submenu-toggle {
    flex: 0 0 auto;
    width: auto;
    order: -1;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

/* 2. ANIMAZIONE: Gestione del sottomenu */
li.menu-item-has-children > ul.sub-menu {
    flex: 0 0 100%;
    width: 100%;
    position: static;
    
    /* Effetto scomparsa/comparsa */
    display: block !important;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
}

/* 3. STATO APERTO: Cosa succede quando clicchi */
li.menu-item-has-children.is-open > ul.sub-menu {
    max-height: 1000px; /* Altezza massima per far scivolare il menu */
    opacity: 1;
    color: var(--color-muted); /* Colore del testo del sottomenu */
    padding-top: 10px; /* Opzionale: un po' di spazio sopra */
}

li.menu-item-has-children.is-open > .drawer-submenu-toggle::after {
    transform: rotate(-180deg); /* Ruota la freccia verso l'alto */
}

/* 4. STILI AGGIUNTIVI PER TOGGLE E SUB-MENU */
.theme-toggle-btn {
    margin-left: auto !important;
    width: 40px;               /* Dimensione fissa per il cerchio */
    height: 40px;
    display: flex;             /* Centra l'emoji/icona all'interno */
    align-items: center;
    justify-content: center;
    border-radius: 50%;        /* Rende il pulsante tondo */
    border: none;              /* Rimuove bordi di default */
    background: transparent;   /* Trasparente di base */
    cursor: pointer;
    transition: background-color 0.3s ease; /* Effetto morbido */
    padding: 0;                /* Rimuove padding che sballa il cerchio */

}

.theme-toggle-btn:hover {
  background: var(--color-magenta);
  border-color: var(--color-magenta);
  color: var(--color-black);
}

.drawer-submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  text-align: right;
  padding: 0;
  cursor: pointer;
}

.drawer-submenu-toggle::after {
  content: '\25BE';
  display: inline-block;
  margin-left: .5rem;
  transform: rotate(0deg);
  transition: transform .2s ease;
}

.drawer-menu .sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  margin: 0;
  padding: 0;
}

.menu-item-has-children.is-open > .sub-menu {
  max-height: 600px;
  margin-top: 16px;
}

.drawer-menu .sub-menu li {
  margin: 0;
}

.drawer-menu .sub-menu a {
  font-size: 24px;
  letter-spacing: .08em;
}

/* TNN fine menu mobile 2 livelli con accordion */
}

.nav-drawer a,
.nav-drawer .drawer-submenu-toggle {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 30px;
  letter-spacing: .1em; 
  color: var(--color-muted);
  transition: color var(--tr); 
  text-decoration: none;
}

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

.nav-drawer-payoff {
  font-family: var(--font-mono); 
  font-size: 9px;
  letter-spacing: .25em; 
  color: var(--color-magenta);
  text-transform: uppercase; 
  margin-top: 8px;
  /* Allinea anche il payoff a destra */
  text-align: right; 
}

/* Progress bar */
#progress {
  position: fixed; top: var(--nav-h); left: 0; z-index: 999;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--color-acid), var(--color-magenta));
  transition: width .1s linear;
}

/* ============================================================
   HERO
============================================================ */
#home {
  padding-top: calc(var(--nav-h) + clamp(36px, 7vw, 72px));
  position: relative; 
  overflow: visible !important; /* Rimuove il taglio del contenuto */
  height: auto !important;      /* Permette alla sezione di allungarsi */
  min-height: 100vh;           /* (Opzionale) Mantiene almeno l'altezza dello schermo */
}

.glow {
  position: absolute; border-radius: 50%;
  pointer-events: none; filter: blur(80px);
}
.glow-1 {
  width: 50vw; height: 50vw;
  max-width: 500px; max-height: 500px;
  background: rgba(200, 245, 0, .05);
  top: -10%; right: -10%;
}
.glow-2 {
  width: 35vw; height: 35vw;
  max-width: 300px; max-height: 300px;
  background: rgba(255, 45, 110, .04);
  bottom: -5%; left: -8%;
}

.hero-kicker {
  font-family: var(--font-mono); font-size: 11.4px;
  letter-spacing: .28em; color: var(--color-acid);
  text-transform: uppercase; margin-bottom: 10px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(50px, 12vw, 90px);
  line-height: .88; letter-spacing: .03em;
  margin-bottom: clamp(4px, 1vw);
}
.hero-title em { color: var(--color-magenta); font-style: normal; }
.hero-payoff {
  font-family: var(--font-mono);
  font-size: clamp(11px, 2.5vw, 16.5px);
  letter-spacing: .22em; color: var(--color-acid);
  text-transform: uppercase;
  font-style: normal;
  margin-bottom: clamp(16px, 2.5vw, 24px);
}
.hero-desc {
  font-size: clamp(15px, 2.5vw, 15px); color: #d5d5d5;
  line-height: 1.8; max-width: 100%;
  margin-bottom: clamp(22px, 3.5vw, 32px);
}
/* TNN .hero-desc   color: #999; */
.hero-cta { 
  display: flex; 
  flex-wrap: wrap; 
  left: 0 !important;
  gap: 10px; 
  justify-content: center;
}

#home {
  position: relative;
  height: 125vh;
  /* max-height: 800px; */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: auto; 
}

#home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
  z-index: 0;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: auto !important;
  min-height: min-content;
}
.hero-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: auto;
  flex: 1;
  box-sizing: border-box;
  padding: 0 20px;
}

/* Hero Carousel Wrapper */
.hero-carousel-wrapper {
  position: relative;
  margin: clamp(20px, 4vw, 32px) 0;
  padding: 0 60px;
  flex: 0 1 auto !important; /* Oppure flex: none; */
  height: auto !important;   /* Se ha un'altezza fissa definita altrove */
  display: flex;
  flex-direction: column;
}

.hero-carousel-item {
  position: relative;
  width: 100%;
  opacity: 0;
  box-sizing: border-box;
  visibility: hidden;
  display: none;
  padding: clamp(24px, 3vw, 40px) 0 clamp(20px, 10vw, 120px) 0;
  overflow: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
}

.hero-carousel-item > * {
  position: relative;
  z-index: 1;
}

.hero-carousel-item.active {
  display: block;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.hero-carousel-nav {
  position: absolute;
  top: 200px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  color: var(--color-white);
  font-size: 32px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  z-index: 10;
}

.hero-carousel-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.hero-carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-carousel-prev {
  left: 0;
}

.hero-carousel-next {
  right: 0;
}

@media (max-width: 1024px) {
  .hero-carousel-wrapper {
    padding: 0 50px;
  }
  .hero-carousel-nav {
    width: 45px;
    height: 45px;
    font-size: 28px;
  }
  li.menu-item-has-children {
    display: flex;
    justify-content: flex-end; /* Sposta tutto il contenuto a destra */
    align-items: center;       /* Allineamento verticale (consigliato) */
  }
  .header-social-wrapper ul.header-social-icons {
    flex-wrap: wrap;       /* Permette agli elementi di andare a capo */
    justify-content: right; /* Opzionale: a destra le icone se avanzano spazio */
    gap: 10px;             /* Assicura spazio tra le righe e le icone */
  }
  /* Assicurati che il link non riprenda spazio */
  li.menu-item-has-children > a {
      flex: 0 1 auto;
      width: auto;
  }

  /* Mantieni il bottone a sinistra del link (se lo desideri ancora così) */
  li.menu-item-has-children > .drawer-submenu-toggle {
      order: -1; 
      margin-right: 10px; /* Spazio tra bottone e testo */
  }
}

@media (max-width: 768px) {
  .hero-carousel-wrapper {
    padding: 0 45px;
  }
  .hero-carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {

  .hero-carousel-wrapper {
    padding: 0 40px;
  }
  .hero-carousel-nav {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .hero-carousel-prev {
    left: -2px;
  }
  .hero-carousel-next {
    right: -2px;
  }
  .hero-title{
    font-size: clamp(40px, 10vw, 70px);
  }
}

/* Hero Carousel Dots */
.hero-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-carousel-dots .dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.hero-carousel-dots .dot.active {
  background: var(--color-acid);
  width: 14px;
  height: 14px;
}

.section-with-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Waveform */
.waveform {
  display: flex; 
  align-items: center; 
  padding-top: 30px;
  gap: 3px;
  height: 44px;
  justify-content: center;
}
.wb {
  width: 3px; background: var(--color-acid);
  border-radius: 1px; opacity: .6;
  animation: wv 1.4s ease-in-out infinite;
}
.wb:nth-child(1)  { height: 12px; animation-delay: 0s; }
.wb:nth-child(2)  { height: 22px; animation-delay: .1s; }
.wb:nth-child(3)  { height: 34px; animation-delay: .2s; }
.wb:nth-child(4)  { height: 20px; animation-delay: .3s; }
.wb:nth-child(5)  { height: 42px; animation-delay: .4s; }
.wb:nth-child(6)  { height: 28px; animation-delay: .5s; }
.wb:nth-child(7)  { height: 44px; animation-delay: .6s; }
.wb:nth-child(8)  { height: 34px; animation-delay: .7s; }
.wb:nth-child(9)  { height: 22px; animation-delay: .8s; }
.wb:nth-child(10) { height: 38px; animation-delay: .9s; }
.wb:nth-child(11) { height: 18px; animation-delay: 1s; }
.wb:nth-child(12) { height: 28px; animation-delay: 1.1s; }
.wb:nth-child(13) { height: 10px; animation-delay: 1.2s; }

@keyframes wv {
  0%, 100% { transform: scaleY(1); opacity: .55; }
  50%       { transform: scaleY(1.7); opacity: 1; }
}

/* Hero fixed elements */
#home {
  position: relative;
}

.hero-carousel-dots {
  position: relative;
  padding-top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  margin-top: 0;
}

.waveform {
  position: relative;
  padding-top: 30px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}

.hero-cta-fissa {
  position: relative;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  justify-self: center;
  width: fit-content;
}
@media (max-width: 599px) {
  .hero-carousel-dots {
    position: relative;
    padding-top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0;
  }
  .waveform {
    position: relative;
    padding-top: 30px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }
}

/* Stats strip */
.stats-strip {
  display: grid; grid-template-columns: repeat(2, 1fr);
  /* TNN border-top: 1px solid var(--color-grey-2); */
  border-top: 1px solid var(--color-acid);
  margin-top: clamp(20px, 3.5vw, 32px);
}
.stat-item { padding: clamp(12px, 2.5vw, 20px) 0; }
 /* TNN var(--color-grey-2); */
.stat-item:nth-child(1) { border-right: 1px solid var(--color-acid); }
.stat-item:nth-child(2) { padding-left: clamp(12px, 2vw, 18px); }
.stat-item:nth-child(3) { border-right: 1px solid var(--color-acid); border-top: 1px solid var(--color-acid); }
.stat-item:nth-child(4) { border-top: 1px solid var(--color-acid); padding-left: clamp(12px, 2vw, 18px); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 48px); color: var(--color-acid); line-height: 1;
}
.stat-num b { color: var(--color-magenta); font-weight: 400; }
.stat-lbl {
  font-family: var(--font-mono); font-size: 9px;
  /* TNN var(--color-muted); */
  letter-spacing: .18em; color: var(--color-muted);
  text-transform: uppercase; margin-top: 2px;
}

/* ============================================================
   TIMELINE
============================================================ */
.decade-scroll {
  display: flex; gap: 6px; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px; scrollbar-width: none;
  margin-bottom: clamp(22px, 4vw, 36px);
}
.decade-scroll::-webkit-scrollbar { display: none; }

.dec-btn {
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: .12em; text-transform: capitalize;
  padding: 7px 16px; border: 1px solid var(--color-faint);
  background: black; color: var(--color-white);
  transition: all var(--tr); white-space: nowrap;
}
.dec-btn.active { background: var(--color-acid); border-color: var(--color-acid); color: var(--color-black); }
.dec-btn:hover:not(.active) { border-color: var(--color-white); color: var(--color-white); }

.tl-track {
  position: relative;
  padding-left: clamp(16px, 4vw, 24px);
  display: flex; flex-direction: column;
  gap: clamp(18px, 3vw, 26px);
}
.tl-track::before {
  content: ''; position: absolute;
  left: 0; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(to bottom, var(--color-acid), var(--color-magenta) 60%, var(--color-cyan));
}
.tl-item {
  display: grid;
  grid-template-columns: clamp(52px, 11vw, 90px) 1fr;
  gap: clamp(10px, 2.5vw, 18px);
  position: relative;
  animation: fadeUp .5s ease both; animation-play-state: paused;
}
.tl-item::before {
  content: ''; position: absolute;
  left: calc(-1 * clamp(16px, 4vw, 24px) - 4px); top: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-acid); box-shadow: 0 0 10px var(--color-acid);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tl-year {
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 30px); color: var(--color-acid);
  line-height: 1; padding-top: 4px;
}
.tl-loc {
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: .1em; color: var(--color-muted);
  text-transform: uppercase; margin-top: 2px;
}
.tl-card {
  background: var(--color-grey); border: 1px solid var(--color-grey-3);
  padding: clamp(12px, 2.5vw, 18px);
  transition: border-color var(--tr), transform var(--tr);
}
.tl-card:hover, .tl-card:focus-within { border-color: var(--color-acid); transform: translateX(3px); }
.tl-card-title { font-size: clamp(13px, 2.5vw, 15px); font-weight: 500; margin-bottom: 4px; line-height: 1.35; }
.tl-card-title a { color: inherit; }
.tl-card-title a:hover { color: var(--color-acid); }
.tl-card-venue {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .1em; color: var(--color-magenta);
  text-transform: uppercase; margin-bottom: 8px;
}
.tl-card-venue a { color: inherit; }
.tl-card-body { font-size: 12px; color: #888; line-height: 1.7; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.tl-tag {
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 8px; border: 1px solid var(--color-faint); color: var(--color-muted);
}
.tl-tag.g { border-color: var(--color-cyan); color: var(--color-cyan); }
.tl-tag.h { border-color: var(--color-acid); color: var(--color-acid); }

/* ============================================================
   ARTICOLI
============================================================ */
.sec-hd {
  display: flex; justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(18px, 3vw, 30px);
  flex-wrap: wrap; gap: 10px;
}
.view-all {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--color-gricia);
  border-bottom: 1px solid #444; padding-bottom: 1px;
  transition: color var(--tr), border-color var(--tr);
}
.view-all:hover { color: var(--color-acid); border-color: var(--color-acid); }

.articles-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--color-grey-2); }

.art-card {
  background: var(--color-black);
  padding: clamp(14px, 3vw, 22px);
  transition: background var(--tr);
}
.art-card:hover { background: var(--color-grey); }
.art-thumb {
  width: 100%; aspect-ratio: 16/7; background: var(--color-grey-2);
  margin-bottom: clamp(10px, 2vw, 14px); position: relative;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.art-thumb-lbl {
  font-family: var(--font-display); font-size: clamp(44px, 10vw, 72px);
  color: rgba(255, 255, 255, .04); letter-spacing: .2em;
  user-select: none; position: relative; z-index: 1;
}
.art-cat {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 7px;
}
.art-cat a { color: inherit; }
.art-cat.house   { color: var(--color-acid); }
.art-cat.techno  { color: var(--color-magenta); }
.art-cat.disco   { color: var(--color-cyan); }
.art-title {
  font-family: var(--font-body);
  font-size: clamp(14px, 2.8vw, 17px); font-weight: 500;
  line-height: 1.3; margin-bottom: 8px;
}
.art-title a { color: inherit; }
.art-title a:hover { color: var(--color-acid); }
.art-excerpt { font-size: 12px; color: #777; line-height: 1.7; margin-bottom: 12px; }
.art-meta {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--color-muted);
  align-items: center;
}
.art-meta::before { content: ''; display: inline-block; width: 14px; height: 1px; background: var(--color-muted); }

/* ============================================================
   GALLERY
============================================================ */
.gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: clamp(90px, 18vw, 170px); gap: 2px;
}
.gallery-grid .g-feat { grid-column: span 2; grid-row: span 2; }
.g-item {
  position: relative; overflow: hidden; background: var(--color-grey-2);
  display: flex; align-items: center; justify-content: center;
}
.g-bg { position: absolute; inset: 0; transition: transform .5s ease; }
.g-item:hover .g-bg { transform: scale(1.05); }
.g-ico {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 72px); color: rgba(255, 255, 255, .04);
  z-index: 1; user-select: none; pointer-events: none;
}
.g-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 55%);
  opacity: 0; transition: opacity var(--tr);
  display: flex; align-items: flex-end; padding: 10px;
}
.g-item:hover .g-overlay { opacity: 1; }
.g-cap { font-family: var(--font-mono); font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }

/* ============================================================
   TESTIMONIANZE
============================================================ */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--color-grey-2); margin-bottom: clamp(16px, 3vw, 28px); }
.testi-card {
  background: var(--color-black);
  padding: clamp(16px, 3vw, 26px);
  position: relative; overflow: hidden;
}
.testi-watermark {
  position: absolute; top: -10px; right: 10px;
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 110px);
  color: rgba(200, 245, 0, .03);
  line-height: 1; pointer-events: none; user-select: none;
}
.testi-stars { display: flex; gap: 4px; margin-bottom: 10px; }
.testi-star { font-size: 14px; color: var(--color-acid); }
.testi-star.empty { color: var(--color-grey-3); }
.testi-quote {
  font-size: clamp(13px, 2.2vw, 15px); color: #ccc;
  line-height: 1.75; font-style: italic; margin-bottom: 16px;
  padding-left: 12px; border-left: 2px solid var(--color-acid);
}
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-grey-3); border: 1px solid var(--color-grey-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; color: var(--color-acid); flex-shrink: 0;
}
.testi-name {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .15em; text-transform: uppercase; color: var(--color-white);
}
.testi-event { font-size: 11px; color: var(--color-muted); margin-top: 2px; }
.testi-badge {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 8px;
  padding: 2px 7px; border: 1px solid rgba(200, 245, 0, .3);
  color: var(--color-acid); background: rgba(200, 245, 0, .07);
  white-space: nowrap;
}

.testi-form-wrap {
  background: var(--color-grey); 
  border: 1px solid var(--color-grey-3);
  padding: clamp(16px, 3vw, 26px);
}
.testi-form-hd {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--color-magenta); margin-bottom: 6px;
}
.testi-form-sub { font-size: 12px; color: var(--color-gricia); margin-bottom: 18px; }
.testi-note {
  background: #0e0e0e; border: 1px solid #1e1e1e;
  border-left: 2px solid var(--color-gricia);
  padding: 10px 14px; margin-bottom: 16px;
}
.testi-note p { font-size: 11px; color: var(--color-gricia); line-height: 1.6; }
.testi-note strong { color: #888; }
.star-rating { display: flex; gap: 6px; margin-top: 4px; }
.star-btn {
  font-size: 22px; background: none; border: none;
  color: var(--color-grey-3); transition: color var(--tr); padding: 2px;
}
.star-btn.on { color: var(--color-acid); }

/* Css per Contact Form 7 */
/*
 * DJ Nash — Testimonianze CF7
 * Aggiungere in style.css (o nel CSS del tema) dopo le regole esistenti
 * di .testi-* e .form-* già presenti.
 *
 * Queste regole sovrascrivono l'aspetto di default di Contact Form 7
 * riportandolo allo stesso stile del form nativo precedente.
 */

/* ── Avatar con foto reale ────────────────────────────────────────── */
.testi-avatar--photo {
  overflow: hidden;
  padding: 0;
  background: transparent;
}

.testi-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ── Wrapper CF7 ──────────────────────────────────────────────────── */
.cf7-testi-wrap .wpcf7 {
  margin: 0;
  padding: 0;
}

/* Reset del <p> che CF7 inserisce attorno a ogni campo */
.cf7-testi-wrap .wpcf7 p {
  margin: 0;
}

/* ── Form layout ──────────────────────────────────────────────────── */
.cf7-testi-wrap .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 0;                  /* lo spacing lo gestiamo sui singoli campi */
}

/* ── Label ────────────────────────────────────────────────────────── */
.cf7-testi-wrap .wpcf7-form label,
.cf7-testi-wrap .form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted, #888);
  margin-bottom: 4px;
}
select.wpcf7-select {
    font-weight: 400 !important;
}
/* ── Input / Textarea / Select ────────────────────────────────────── */
.cf7-testi-wrap .wpcf7-form input[type="text"],
.cf7-testi-wrap .wpcf7-form input[type="email"],
.cf7-testi-wrap .wpcf7-form select,
.cf7-testi-wrap .wpcf7-form textarea {
  /* eredita le variabili CSS del tema */
  width: 100%;
  background: var(--color-surface-2, #111);
  border: 1px solid var(--color-border, #333);
  border-radius: 4px;
  color: var(--color-text, #fff);
  font-family: inherit;
  font-size: 0.75rem;
  padding: 8px 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  margin-bottom: 4px;       /* spacing uniforme tra i campi */
}

.cf7-testi-wrap .wpcf7-form textarea {
  min-height: 120px;
  resize: vertical;
}

.cf7-testi-wrap .wpcf7-form input:focus,
.cf7-testi-wrap .wpcf7-form select:focus,
.cf7-testi-wrap .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--color-acid, #d4f000);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-acid, #d4f000) 20%, transparent);
}

/* ── Row a 2 colonne (nome+email, tipo+luogo) ─────────────────────── */
.cf7-testi-row-2 {
  display: flex !important;
  flex-direction: column;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cf7-testi-row-2 p {
    flex: 1; /* Distribuisce lo spazio equamente */
}
@media (max-width: 640px) {
  .cf7-testi-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ── Upload foto ──────────────────────────────────────────────────── */
.cf7-testi-wrap .wpcf7-form input[type="file"] {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-muted, #888);
  background: var(--color-surface-2, #111);
  border: 1px dashed var(--color-border, #333);
}

.cf7-testi-wrap .wpcf7-form input[type="file"]:hover {
  border-color: var(--color-acid, #d4f000);
}

/* ── Stelle ───────────────────────────────────────────────────────── */
.cf7-star-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.cf7-star-btn {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--color-border, #444);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s ease, transform 0.15s ease;
}

.cf7-star-btn.active,
.cf7-star-btn:hover {
  color: var(--color-acid, #d4f000);
  transform: scale(1.15);
}


* Forza le stelle sulla stessa riga indipendentemente dal markup generato da CF7 */
.cf7-star-rating {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
}

.cf7-star-rating * {
  display: inline !important;
}

.cf7-star-rating button,
.cf7-star-rating .cf7-star-btn {
  display: inline-flex !important;
  width: auto !important;
  margin: 0 !important;
}

/* Neutralizza eventuali <p> inseriti da wpautop dentro il div */
.cf7-star-rating p {
  display: contents;
  margin: 0;
  padding: 0;
}



/* ── Submit button — ricalca .btn del tema ────────────────────────── */
.cf7-testi-wrap .wpcf7-submit {
  /* stesse proprietà di .btn */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-acid);
  border: 1px solid var(--color-acid);
  color: var(--color-black);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: clamp(10px, 2vw, 13px);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: 2px;
}

.cf7-testi-wrap .wpcf7-submit:hover {
  background: transparent;
  color:      var(--color-acid);
  outline:    none;
}

.cf7-testi-wrap .wpcf7-submit:disabled {
  background: transparent;
  color: var(--color-acid);
  outline: none;
  opacity: 0.5;
  cursor: not-allowed
}

.cf7-testi-wrap .music-captcha-wrap {
  margin: 24px 0 0;
  padding: 18px;
  border: 1px solid var(--color-border, #333);
  border-radius: 8px;
  background: var(--color-surface-3, #0f0f0f);
}

.cf7-testi-wrap .music-captcha-label {
  margin: 0 0 14px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text, #fff);
}

.cf7-testi-wrap .music-captcha-options {
  display: grid;
  gap: 10px;
}

.cf7-testi-wrap .music-captcha-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border, #333);
  border-radius: 6px;
  background: var(--color-surface-2, #111);
  color: var(--color-text, #fff);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cf7-testi-wrap .music-captcha-option:hover {
  border-color: var(--color-acid, #d4f000);
  background: rgba(212, 240, 0, 0.08);
}

.cf7-testi-wrap .music-captcha-option input {
  flex-shrink: 0;
  width: auto;
  margin: 0;
}

/* ── Messaggi di stato CF7 ────────────────────────────────────────── */
.cf7-testi-wrap .wpcf7-response-output {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  border: 1px solid;
}

/* Successo */
.cf7-testi-wrap .wpcf7-mail-sent-ok {
  background: color-mix(in srgb, var(--color-acid, #d4f000) 8%, transparent);
  border-color: var(--color-acid, #d4f000);
  color: var(--color-acid, #d4f000);
}

/* Errore */
.cf7-testi-wrap .wpcf7-mail-sent-ng,
.cf7-testi-wrap .wpcf7-aborted {
  background: color-mix(in srgb, #ff4444 8%, transparent);
  border-color: #ff4444;
  color: #ff4444;
}

/* Spam */
.cf7-testi-wrap .wpcf7-spam-blocked {
  background: color-mix(in srgb, #ff8800 8%, transparent);
  border-color: #ff8800;
  color: #ff8800;
}

/* ── Validazione inline ───────────────────────────────────────────── */
.cf7-testi-wrap .wpcf7-not-valid-tip {
  color: #ff4444;
  font-size: 0.78rem;
  margin-top: 0px;
  margin-bottom: 12px;
  display: block;
}

textarea.wpcf7-textarea {
    height: 120px !important; /* Imposta l'altezza desiderata */
    min-height: 100px !important; /* Opzionale: riduce il limite minimo */
}

.cf7-testi-wrap .wpcf7-not-valid {
  border-color: #ff4444 !important;
}

/* ── Spinner CF7 ──────────────────────────────────────────────────── */
.cf7-testi-wrap .wpcf7-spinner {
  border-color: var(--color-acid, #d4f000);
}

/* ── Fallback message ─────────────────────────────────────────────── */
.testi-form-error {
  color: var(--color-muted, #888);
  font-style: italic;
  padding: 16px 0;
}


/* Fine Css per Contact Form 7 */
/* ============================================================
   CONTATTI
============================================================ */
.contact-top { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--color-grey-2); margin-bottom: clamp(14px, 2.5vw, 22px); }
.contact-col { background: var(--color-black); padding: clamp(16px, 3vw, 28px); }
.contact-col-hd {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px;
}
.contact-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border: 1px solid var(--color-grey-3);
  background: var(--color-grey);
  transition: border-color var(--tr), background var(--tr);
  text-decoration: none;
}
.contact-link:hover { border-color: var(--color-acid); background: #1a1a1a; }
.contact-link-icon { font-size: 22px; flex-shrink: 0; width: 28px; text-align: center; }
.contact-link-body { flex: 1; min-width: 0; }
.contact-link-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--color-white);
}
.contact-link-sub { font-size: 11px; color: var(--color-muted); margin-top: 2px; }
.contact-link-arrow { font-size: 14px; color: var(--color-acid); flex-shrink: 0; }
.email-form { background: var(--color-grey); border: 1px solid var(--color-grey-3); padding: clamp(14px, 3vw, 22px); }
.email-form-hd {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--color-cyan); margin-bottom: 14px;
}

/* Booking calendar */
.booking-section { margin-top: clamp(14px, 2.5vw, 22px); 
  align-items: center;}
.booking-hd {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--color-acid); margin-bottom: 6px;margin-left: 30px;
}
.booking-intro { font-size: 12px; color: var(--color-muted); 
  margin: 20px 30px 10px 30px; line-height: 1.7; }
.booking-layout { display: grid; grid-template-columns: 
  minmax(0, 1fr); gap: 1px; background: var(--color-black); 
  align-items: center;padding: 20px; background:--color-black;}
.booking-col { background: var(--color-black); 
  /* padding: clamp(14px, 3vw, 24px); */
  align-items: start;}
.booking-col-hd {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .2em; text-transform: uppercase; 
  margin: 20px 20px 10px 20px;
}
.cal-wrap { 
  background: var(--color-grey); 
  border: 1px solid var(--color-grey-3); 
  padding: clamp(12px, 2.5vw, 20px);
  margin-bottom: 14px; 
}
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-month { font-family: var(--font-display); font-size: clamp(18px, 4vw, 24px); letter-spacing: .1em; }
.cal-nav-btn {
  background: none; border: 1px solid var(--color-grey-3); color: var(--color-muted);
  padding: 4px 10px; font-family: var(--font-mono); font-size: 10px;
  transition: all var(--tr);
}
.cal-nav-btn:hover { border-color: var(--color-acid); color: var(--color-acid); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em;
  text-align: center; color: var(--color-muted); text-transform: uppercase;
  padding: 4px 0; margin-bottom: 4px;
}
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: clamp(12px, 2.5vw, 13px); border: 1px solid transparent;
  transition: all var(--tr); position: relative;
}
.cal-day.empty   { opacity: 0; pointer-events: none; }
.cal-day.past    { color: var(--color-faint); cursor: default; }
.cal-day.today   { border-color: var(--color-cyan) !important; color: var(--color-cyan); }
.cal-day.busy    { background: rgba(255, 45, 110, .15); border-color: rgba(255, 45, 110, .3); color: var(--color-magenta); font-weight: 700; cursor: not-allowed; }
.cal-day.free    { background: rgba(200, 245, 0, .07); border-color: rgba(200, 245, 0, .2); color: var(--color-acid); cursor: pointer; }
.cal-day.free:hover { background: rgba(200, 245, 0, .18); border-color: var(--color-acid); }
.cal-day.tentative { background: rgba(255, 157, 0, 0.313); border-color: rgba(255, 157, 0, 0.85); color: var(--color-muted); cursor: not-allowed; }
.cal-day.tentative:hover { background: rgba(191, 255, 0, 0.57); border-color: var(--color-magenta); color: var(--color-magenta);cursor: url('/wp-content/uploads/2026/04/dj-icon.png'), auto;}
.cal-day.selected { background: var(--color-acid); border-color: var(--color-acid); color: var(--color-black); font-weight: 700; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.leg-item { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); }
.leg-dot { width: 10px; height: 10px; border-radius: 1px; flex-shrink: 0; }
.leg-dot.busy     { background: rgba(255, 45, 110, .4); border: 1px solid var(--color-magenta); }
.leg-dot.free     { background: rgba(200, 245, 0, .2); border: 1px solid var(--color-acid); }
.leg-dot.selected { background: var(--color-acid); }
.leg-dot.tentative { background: rgba(255, 157, 0, 0.313); border: 1px solid var(--color-orange); }

.date-list { display: flex; flex-direction: column; gap: 6px; }
.date-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--color-grey); border: 1px solid var(--color-grey-3); }
.date-item.busy   { border-left: 3px solid var(--color-magenta); }
.date-item.tentative   { border-left: 3px solid var(--color-orange); }
.date-item.free   { border-left: 3px solid var(--color-acid); }
.date-item-dt { font-family: var(--font-display); font-size: 20px; color: var(--color-white); line-height: 1; min-width: 48px; }
.date-item-info { flex: 1; min-width: 0; }
.date-item-name  { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-item-loc   { font-family: var(--font-mono); font-size: 9px; color: var(--color-muted); margin-top: 1px; }
.date-status { font-family: var(--font-mono); font-size: 8px; padding: 2px 7px; white-space: nowrap; }
.date-status.busy { background: rgba(255, 45, 110, .12); border: 1px solid rgba(255, 45, 110, .3); color: var(--color-magenta); }
.date-status.free { background: rgba(200, 245, 0, .12); border: 1px solid rgba(200, 245, 0, .3); color: var(--color-acid); }
.date-status.tentative { background: rgba(68, 255, 0, 0.276); border: 1px solid rgba(0, 255, 106, 0.545); color: var(--color-orange); }

.booking-form { background: var(--color-grey); border: 1px solid var(--color-grey-3); padding: clamp(14px, 3vw, 24px); }
.booking-form-hd { font-family: var(--font-mono); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--color-acid); margin-bottom: 6px; }
.booking-form-sub { font-size: 12px; color: var(--color-muted); margin-bottom: 18px; line-height: 1.6; }
.booking-selected-date {
  background: #0e0e0e; border: 1px solid var(--color-acid);
  padding: 10px 14px; margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 11px; color: var(--color-acid); letter-spacing: .1em;
}
.booking-selected-date span { color: var(--color-muted); }

/* ============================================================
   FOOTER
============================================================ */
.footer-inner {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 12px;
}
.footer-brand { display: flex; flex-direction: column; gap: 2px; 
  /* 1. Bordo sotto il brand per separarlo dai widget */
    border-bottom: 1px solid var(--color-magenta); /* Cambia il colore qui */
    padding-bottom: 5px;            /* Spazio tra brand e bordo */
    margin-bottom: 10px;            /* Spazio tra bordo e widget */}
.footer-copy {/* 2. Bordo sopra il copyright */
    border-top: 1px solid var(--color-magenta);    /* Cambia il colore qui */
    padding-top: 5px;               /* Spazio tra bordo e testo */
    margin-top: 10px;                /* Spazio tra widget e bordo */
    padding-bottom: 20px; 
}
.footer-logo {
  font-family: var(--font-display);
  font-size: clamp(18px, 4vw, 22px); letter-spacing: .15em; color: var(--color-acid);
}
.footer-logo span { color: var(--color-magenta); }
.footer-payoff { font-family: var(--font-mono); font-size: 8px; letter-spacing: .2em; color: var(--color-muted); text-transform: uppercase; }
.footer-nav .footer-menu { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; }
.footer-nav .footer-menu a { font-family: var(--font-mono); font-size: 9px; letter-spacing: .15em; color: var(--color-gricia); text-transform: uppercase; transition: color var(--tr); }
.footer-nav .footer-menu a:hover { color: var(--color-acid); }
.footer-copy { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; color: var(--color-gricia); text-transform: uppercase; }
.footer-copy a { color: var(--color-gricia); transition: color var(--tr); }
.footer-copy a:hover { color: var(--color-acid); }

/* Footer widgets */
.footer-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 40px);
  margin-bottom: clamp(20px, 4vw, 32px);
}
.footer-widget-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-widget-col .widget {
  margin-bottom: 0;
}
.footer-widget-col .widget-title {
  margin-bottom: 12px;
  color: var(--color-white);
}

/* Scroll to top */
#totop {
  position: fixed; bottom: 20px; right: var(--pad); z-index: 500;
  width: 40px; height: 40px;
  background: var(--color-acid); color: var(--color-black); font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: none; opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--tr), transform var(--tr);
}
#totop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }



/* ============================================================
   ARCHIVI E GRID CONTENUTI
============================================================ */
.archive-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--color-grey-2); }
.cpt-archive   { min-height: 50vh; }

/* Artist card grid */
.artist-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.artist-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px; border: 1px solid var(--color-grey-3); background: var(--color-grey);
  transition: border-color var(--tr); text-decoration: none; min-width: 100px;
}
.artist-card:hover { border-color: var(--color-acid); }
.artist-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.artist-avatar-placeholder {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--color-grey-3); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 20px; color: var(--color-acid);
}
.artist-name { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; text-align: center; }

/* Tracklist */
.tracklist-list { list-style: none; counter-reset: track; }
.tracklist-item {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 0; border-bottom: 1px solid var(--color-grey);
  font-size: 13px;
}
.tracklist-item:last-child { border-bottom: none; }
.track-num { font-family: var(--font-mono); font-size: 11px; color: var(--color-acid); min-width: 28px; }
.track-name { color: var(--color-white); }

/* Single post hero */
.single-hero { padding: calc(var(--nav-h) + 40px) 0 40px; border-bottom: 1px solid var(--color-grey-2); }
.single-title {
  font-family: var(--font-body); font-size: clamp(22px, 5vw, 38px);
  font-weight: 700; line-height: 1.2;
  margin: 12px 0;
}
.single-meta {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .12em; color: var(--color-muted);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.single-thumbnail { margin-top: 24px; }
.single-thumbnail img { width: 100%; }

/* Venue hero */
.venue-hero {
  min-height: 280px; background-size: cover; background-position: center;
  display: flex; align-items: flex-end; position: relative;
}
.venue-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,8,.9), rgba(8,8,8,.3)); }
.venue-hero-inner { position: relative; z-index: 1; padding: var(--pad); padding-top: calc(var(--nav-h) + 60px); }
.venue-hero-title { font-family: var(--font-display); font-size: clamp(32px, 8vw, 60px); color: var(--color-white); }
.venue-hero-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--color-muted); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }

/* Esperienza hero */
.evento-hero, .esperienza-hero {
  min-height: 280px; background-size: cover; background-position: center;
  display: flex; align-items: flex-end; position: relative;
}
.evento-hero-overlay, .esperienza-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,8,.9), rgba(8,8,8,.3)); }
.evento-hero-inner, .esperienza-hero-inner { position: relative; z-index: 1; padding: var(--pad); padding: 80px; }
.evento-hero-title, .esperienza-hero-title { font-family: var(--font-display); font-size: clamp(32px, 8vw, 60px); color: var(--color-white); }
.evento-hero-meta , .esperienza-hero-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--color-muted); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.evento-body, .esperienza-body { margin-top: 6px; padding: 20px}
/* Artista hero */
.artista-hero { padding: calc(var(--nav-h) + 40px) 0 40px; border-bottom: 1px solid var(--color-grey-2); }
.artista-hero-inner { display: flex; flex-direction: column; gap: 20px; }
.artista-photo img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.artista-photo-placeholder {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--color-grey-3); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 28px; color: var(--color-acid);
}
.artista-name { font-family: var(--font-display); font-size: clamp(28px, 7vw, 52px); }
.artista-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--color-muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.artista-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.artista-social-link {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid; transition: all var(--tr); text-decoration: none;
}
.artista-social-link:hover { background: rgba(255,255,255,.05); }

/* WP Content styles */
.wp-content h2 { font-family: var(--font-display); font-size: clamp(24px, 5vw, 36px); margin: 32px 0 12px; color: var(--color-acid); }
.wp-content h3 { font-family: var(--font-display); font-size: clamp(20px, 4vw, 28px); margin: 24px 0 10px; }
.wp-content p  { font-size: 15px; color: #ccc; line-height: 1.8; margin-bottom: 16px; }
.wp-content a  { color: var(--color-acid); border-bottom: 1px solid transparent; transition: border-color var(--tr); }
.wp-content a:hover { border-color: var(--color-acid); }
.wp-content ul, .wp-content ol { margin: 0 0 16px 24px; color: #ccc; }
.wp-content li { margin-bottom: 6px; line-height: 1.7; }
.wp-content blockquote {
  border-left: 3px solid var(--color-magenta);
  padding-left: 20px; margin: 24px 0; color: #aaa; font-style: italic;
}
.wp-content img { max-width: 100%; margin: 20px 0; }
.wp-content code {
  background: var(--color-grey); font-family: var(--font-mono);
  font-size: 12px; padding: 2px 6px; border-radius: 2px; color: var(--color-acid);
}
.wp-content pre {
  background: var(--color-grey); padding: 16px; overflow-x: auto;
  margin: 20px 0; border-left: 3px solid var(--color-acid);
}
.wp-content pre code { background: none; padding: 0; }

/* Post navigation */
.post-navigation { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--color-grey-2); }
.post-navigation a { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--color-muted); transition: color var(--tr); }
.post-navigation a:hover { color: var(--color-acid); }
@media (max-width: 599px) {
  .post-navigation { flex-direction: column; align-items: stretch; }
  .post-navigation .post-nav-prev,
  .post-navigation .post-nav-next { width: 100%; }
  .post-navigation a { text-align: center; width: 100%; display: inline-flex; justify-content: center; }
}

/* Single tags */
.single-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }

/* 404 */
.not-found-num {
  font-family: var(--font-display); font-size: clamp(80px, 20vw, 160px);
  color: rgba(200, 245, 0, .06); line-height: 1; margin-bottom: -20px;
}

/* Search form */
.search-form-wrap { margin: 20px 0; }
.search-form-wrap .search-form { display: flex; gap: 8px; }
.search-form-wrap .search-field { flex: 1; }
.search-form-wrap .search-submit { flex-shrink: 0; }

/* Embed wrap */
.embed-wrap { position: relative; aspect-ratio: 16/9; background: var(--color-grey-2); margin: 12px 0; }
.embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* Admin notice */
.admin-notice { background: var(--color-grey); border: 1px dashed var(--color-grey-3); padding: 14px; margin-top: 12px; }

/* ============================================================
   TABLET  ≥ 600px
============================================================ */
@media (min-width: 600px) {
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
  .stat-item { border-top: none !important; }
  .stat-item:nth-child(1) { border-right: 1px solid var(--color-grey-2); }
  .stat-item:nth-child(2) { border-right: 1px solid var(--color-grey-2); padding-left: clamp(12px, 2vw, 18px); }
  .stat-item:nth-child(3) { border-right: 1px solid var(--color-grey-2); padding-left: clamp(12px, 2vw, 18px); }
  .stat-item:nth-child(4) { border-right: none; padding-left: clamp(12px, 2vw, 18px); }

  .articles-grid  { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid   { grid-auto-rows: clamp(110px, 14vw, 160px); }
  .testi-grid     { grid-template-columns: repeat(2, 1fr); }
  .contact-top    { grid-template-columns: repeat(2, 1fr); }
  .booking-layout { grid-template-columns: repeat(2, 1fr); align-items: start;}
  .archive-grid   { grid-template-columns: repeat(2, 1fr); }
  .form-row-2     { grid-template-columns: 1fr 1fr; }
  .artista-hero-inner { flex-direction: row; align-items: center; }
}

/* ============================================================
   DESKTOP  ≥ 1024px
============================================================ */
@media (min-width: 1024px) {
  .hamburger  { display: none; }
  .nav-links  { display: flex; }
  .articles-grid { grid-template-columns: 2fr 1fr 1fr; }
  .articles-grid .art-card:first-child .art-thumb { aspect-ratio: 16/9; }
  .archive-grid  { grid-template-columns: repeat(3, 1fr); }
  .testi-grid    { grid-template-columns: repeat(3, 1fr); }
  .artista-photo img { width: 120px; height: 120px; }
  .artista-photo-placeholder { width: 120px; height: 120px; }
  #testimonianze .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    column-gap: 48px;
    align-items: start;
  }

  /* Header (tag-label, h2, section-sub) occupa entrambe le colonne */
  #testimonianze .tag-label,
  #testimonianze .section-title,
  #testimonianze .section-sub {
    grid-column: 1 / -1;
  }

  /* Widget area se presente */
  #testimonianze .homepage-testimonianze-widgets {
    grid-column: 1 / -1;
  }

  /* Griglia card: colonna sinistra */
  #testimonianze .testi-grid {
    grid-column: 1;
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Form: colonna destra, rimane visibile mentre si scrolla la griglia */
  #testimonianze .testi-form-wrap {
    grid-column: 2;
  }
}
/* ============================================================
   HOMEPAGE WIDGET AREAS
============================================================ */
.homepage-contatti-widgets,
.homepage-social-widgets,
.homepage-testimonianze-widgets,
.homepage-gallery-widgets,
.homepage-articoli-widgets {
  margin-bottom: clamp(20px, 4vw, 32px);
}

.homepage-contatti-widgets .widget,
.homepage-social-widgets .widget,
.homepage-testimonianze-widgets .widget,
.homepage-gallery-widgets .widget,
.homepage-articoli-widgets .widget {
  margin-bottom: 16px;
}

.homepage-contatti-widgets .widget:last-child,
.homepage-social-widgets .widget:last-child,
.homepage-testimonianze-widgets .widget:last-child,
.homepage-gallery-widgets .widget:last-child,
.homepage-articoli-widgets .widget:last-child {
  margin-bottom: 0;
}
