/* ==========================================
   All Crazy - stili personalizzati
   ========================================== */

/* ---------- Menu sempre in primo piano (solo desktop) ---------- */
@media (min-width: 768px) {
  #sticktop.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(17, 17, 17, 0.92);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  }
}

/* ---------- Voce "Lavora con noi" evidenziata (rosso porpora) ---------- */
.navbar-nav > li.nav-cta > a {
  background: #ff3131;
  color: #fff !important;
  font-weight: 700;
  border-radius: 4px;
  margin-left: 15px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 49, 49, 0.45);
}
.navbar-nav > li.nav-cta > a:hover,
.navbar-nav > li.nav-cta > a:focus,
.navbar-nav > li.nav-cta.active > a {
  background: #d92222 !important;
  color: #fff !important;
}

/* Mobile: pulsante a tutta larghezza */
@media (max-width: 767px) {
  .navbar-nav > li.nav-cta > a {
    margin: 10px 15px;
    text-align: center;
  }
}

/* Evita che la navbar fissa copra il titolo quando si scorre al form */
#lavora-con-noi {
  scroll-margin-top: 90px;
}

/* ==========================================
   Produzioni: griglia di riquadri + popup PDF
   ========================================== */
.prod-grid .prod-col {
  margin-bottom: 30px;
}

.prod-card {
  position: relative;
  display: block;
  width: 100%;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid #333;
  border-top: 4px solid #ff3131;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  text-decoration: none !important;
  cursor: pointer;
}

.prod-card-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.prod-card-shade {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0.05) 100%);
  transition: background 0.3s ease;
}

.prod-card-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 25px 22px;
}

.prod-card-title {
  display: block;
  color: #fff;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.prod-card-cta {
  display: inline-block;
  background: #ff3131;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(255, 49, 49, 0.45);
  transition: background 0.2s ease;
}
.prod-card-cta .fa { margin-right: 6px; }

.prod-card:hover .prod-card-bg,
.prod-card:focus .prod-card-bg { transform: scale(1.07); }
.prod-card:hover .prod-card-shade,
.prod-card:focus .prod-card-shade {
  background: linear-gradient(to top, rgba(90, 10, 10, 0.92) 0%, rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0.05) 100%);
}
.prod-card:hover .prod-card-cta,
.prod-card:focus .prod-card-cta { background: #d92222; }

/* Smartphone: un riquadro sotto l'altro, un po' più bassi */
@media (max-width: 767px) {
  .prod-card { height: 280px; }
  .prod-card-title { font-size: 22px; }
}

/* ---------- Popup PDF ---------- */
.pdf-modal {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.88);
  padding: 20px;
}
.pdf-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdf-modal-box {
  display: flex;
  flex-direction: column;
  /* Formato verticale (locandina): larghezza ricavata dall'altezza */
  height: calc(100vh - 40px);
  aspect-ratio: 1 / 1.45;
  max-width: 100%;
  background: #1a1a1a;
  border: 1px solid #333;
  border-top: 4px solid #ff3131;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}
.pdf-modal-head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 18px;
  border-bottom: 1px solid #333;
}
.pdf-modal-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  color: #fff;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pdf-modal-open {
  color: #ff3131;
  font-size: 13px;
  text-decoration: underline;
  white-space: nowrap;
}
.pdf-modal-open:hover { color: #fff; }
.pdf-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #ff3131;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.pdf-modal-close:hover { background: #d92222; }
.pdf-modal-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}
body.pdf-open { overflow: hidden; }

@media (max-width: 767px) {
  .pdf-modal { padding: 10px; }
  .pdf-modal-box { height: calc(100vh - 20px); width: 100%; aspect-ratio: auto; }
  .pdf-modal-open { font-size: 12px; }
  .pdf-modal-title { font-size: 15px; }
}

/* ==========================================
   Voci del menu sempre bianche
   ========================================== */
#sticktop .navbar-nav > li:not(.nav-cta) > a {
  color: #fff !important;
  transition: color 0.2s ease;
}
#sticktop .navbar-nav > li:not(.nav-cta) > a:hover,
#sticktop .navbar-nav > li:not(.nav-cta) > a:focus,
#sticktop .navbar-nav > li:not(.nav-cta).active > a {
  color: #ff3131 !important;
  background: transparent !important;
}

/* Smartphone: sfondo scuro nel menu aperto, così il testo bianco si legge sempre */
@media (max-width: 767px) {
  #sticktop .navbar-collapse {
    background: #111;
  }
}
