/* ============================================================
   BASE.CSS — stili comuni a tutte le pagine
   Nav, footer, card roster, btn, variabili, keyframes, reset
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #C9A84C;
  --gold-light: #E0C070;
  --black: #0A0A0A;
  --dark: #111111;
  --white: #F5F0E8;
  --grey: #b9b9b9;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: .4;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  background: linear-gradient(to bottom, rgba(10,10,10,.95) 0%, transparent 100%);
}

.logo-img { height: 120px; }
@media (max-width: 1280px) { .logo-img { height: 100px; } }
@media (max-width: 1150px) { .logo-img { height: 70px; } }
@media (max-width: 1040px) { .logo-img { height: 60px; } }
@media (max-width: 1010px) { .logo-img { height: 50px; } }
@media (max-width: 980px)  { .logo-img { height: 40px; } }
@media (max-width: 950px)  { .logo-img { height: 30px; } }
@media (max-width: 480px)  { .logo-img { height: 42px; } }

/* ─── NAV LINKS ─── */
.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
  position: fixed;
  top: 28px;
  right: 60px;
  z-index: 200;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-size: .9rem;
  letter-spacing: .2em;
  font-weight: 500;
  opacity: .75;
  transition: opacity .3s, color .3s;
}
.nav-links a.active { opacity: 1; color: var(--gold); }
.nav-links a:hover  { opacity: 1; color: var(--gold); }
.nav-links.mobile-open { display: flex !important; }

.nav-close { display: none; }
.nav-close button {
  background: none; border: none;
  color: var(--gold); font-size: 2rem;
  cursor: pointer; opacity: .8;
  transition: opacity .3s; padding: 8px;
}
.nav-close button:hover { opacity: 1; }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  cursor: pointer;
  background: none; border: none;
  padding: 4px;
  z-index: 300;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .35s ease, opacity .35s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── ROSTER GRID ─── */
.roster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 20px 100px 100px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* ─── CARD ─── */
.card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/3.8;
  cursor: pointer;
  background: #1a1a1a;
  opacity: 0;
  animation: fadeUp .9s forwards;
}
.card:nth-child(1) { animation-delay: .2s; }
.card:nth-child(2) { animation-delay: .35s; }
.card:nth-child(3) { animation-delay: .5s; }
.card:nth-child(4) { animation-delay: .2s; }
.card:nth-child(5) { animation-delay: .35s; }
.card:nth-child(6) { animation-delay: .5s; }

.card-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform .8s cubic-bezier(.25,.46,.45,.94);
}
.card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(30px);
  opacity: .3;
}
.card:hover .card-photo { transform: scale(1.06); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.15) 50%, transparent 100%);
  transition: opacity .4s;
}
.card:hover .card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
}

.card-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px 28px; }

.card-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: .02em;
  color: var(--white);
  margin-bottom: 8px;
  transform: translateY(4px);
  transition: transform .4s;
}
.card:hover .card-name { transform: translateY(0); }

.card-genres { display: flex; gap: 12px; }
.genre-tag { font-size: .6rem; letter-spacing: .2em; font-weight: 500; color: var(--gold-light); opacity: .85; }

.card-cta {
  position: absolute;
  bottom: 28px; right: 28px;
  width: 40px; height: 40px;
  border: 1px solid rgba(201,168,76,.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.8);
  transition: opacity .4s, transform .4s;
}
.card-cta svg { width: 14px; fill: var(--gold); }
.card:hover .card-cta { opacity: 1; transform: scale(1); }

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .5s cubic-bezier(.25,.46,.45,.94);
  z-index: 2;
}
.card:hover::before { width: 100%; }

/* ─── BTN GOLD ─── */
.btn-gold {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .3em;
  color: var(--black);
  background: var(--gold);
  text-decoration: none;
  padding: 16px 52px;
  font-weight: 550;
  text-transform: uppercase;
  transition: background 0.3s, box-shadow 0.3s;
}
.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 4px 40px rgba(201,168,76,0.22);
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid rgba(201,168,76,.15);
  padding: 32px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}
footer span { font-size: .65rem; letter-spacing: .15em; color: #aaa; }
footer .logo-small { color: var(--gold-light); font-size: 1rem; letter-spacing: .25em; }

/* ─── KEYFRAMES ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LANG DROPDOWN — switch lingua IT/EN
   Desktop: posizionato a sinistra dei nav-links
   Mobile:  posizionato a sinistra dell'hamburger
   ============================================================ */
.lang-dropdown {
  list-style: none;
  position: fixed;
  top: 28px;
  z-index: 220;
}

.lang-dropdown .lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  letter-spacing: .15em;
  font-weight: 500;
  transition: border-color .3s;
  width: auto;
  text-transform: none;
  box-shadow: none;
  line-height: normal;
}
.lang-dropdown .lang-current:hover { border-color: var(--gold); }
.lang-dropdown .lang-current img {
  width: 20px; height: 14px;
  object-fit: cover; border-radius: 2px;
}
.lang-arrow { font-size: .6rem; color: var(--gold); transition: transform .3s; }
.lang-dropdown.open .lang-arrow { transform: rotate(180deg); }

.lang-dropdown .lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(10,10,10,.97);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 4px;
  list-style: none;
  min-width: 90px;
  overflow: hidden;
  z-index: 500;
  padding: 0;
}
.lang-dropdown.open .lang-menu { display: block; }

.lang-dropdown .lang-menu li { display: block; padding: 0; }
.lang-dropdown .lang-menu li form { display: block; margin: 0; padding: 0; }
.lang-dropdown .lang-menu li button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  border-radius: 0;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  letter-spacing: .15em;
  font-weight: 400;
  cursor: pointer;
  transition: background .2s, color .2s;
  text-transform: none;
  box-shadow: none;
  line-height: normal;
  opacity: 1;
}
.lang-dropdown .lang-menu li button:hover {
  background: rgba(201,168,76,.08);
  color: var(--gold);
}
.lang-dropdown .lang-menu li button.active { color: var(--gold); }
.lang-dropdown .lang-menu li button img {
  width: 20px; height: 14px;
  object-fit: cover; border-radius: 2px;
}

/* Desktop: stessa riga dei nav-links, a sinistra di essi */
@media (min-width: 901px) {
  .nav-links { right: 180px; }    /* sposta i link a sinistra */
  .lang-dropdown { right: 60px; top: 26px; }  /* dropdown nello spazio liberato */
}

/* Mobile: a sinistra dell'hamburger */
@media (max-width: 900px) {
  .lang-dropdown { top: 21px; right: 70px; }
}

/* ─── LOGO MOBILE (dentro il menu hamburger aperto) ─── */
.mobile-logo { display: none; }
@media (max-width: 900px) {
  .mobile-logo {
    display: block;
    position: absolute;
    top: 24px;
    left: 24px;
  }
  .logo-img-mobile { height: 50px; }
}

/* ─── RESPONSIVE BASE ─── */
@media (min-width: 1280px) {
  .roster { max-width: 1400px; padding: 20px 60px 100px; }
  .card { aspect-ratio: 3/4.2; }
}
@media (min-width: 1600px) {
  .roster { max-width: 1700px; padding: 20px 40px 100px; }
  .card { aspect-ratio: 3/4.5; }
}
@media (max-width: 1024px) {
  nav { padding: 24px 40px; }
  .roster { padding: 20px 40px 60px; }
  footer { padding: 28px 40px; }
}
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-close { display: block; position: absolute; top: 24px; right: 24px; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 250;
  }
}
@media (max-width: 768px) {
  .roster { grid-template-columns: 1fr 1fr; padding: 16px 40px 40px; gap: 2px; }
  .roster .card:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16/7; }
  footer { padding: 24px; }
  footer span { font-size: .6rem; }

  /* Link nav nel menu mobile aperto — !important per battere lo stile desktop */
  .nav-links.mobile-open a {
    font-size: 1.2rem !important;
    letter-spacing: .3em !important;
    opacity: .85;
  }
}
@media (max-width: 560px) {
  nav { padding: 18px 20px; }
  .roster { grid-template-columns: 1fr; padding: 12px 40px 32px; }
  .roster .card:last-child:nth-child(odd) { grid-column: auto; aspect-ratio: 3/4; }
  .card { aspect-ratio: 4/5; }
  footer { flex-direction: column; gap: 10px; padding: 24px 20px; text-align: center; }
  .btn-gold { padding: 14px 36px; font-size: .7rem; }
}






/* ─── FAQ SECTION ─── */
.faq-section {
  width: 100%;
  border-top: 1px solid rgba(201,168,76,.15);
  padding: 80px 60px;
}
.faq-inner {
  max-width: 900px;
  margin: 0 auto;
}
.faq-header {
  text-align: center;
  margin-bottom: 48px;
}
.faq-label {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .3em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 12px;
}
.faq-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--white);
}
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid rgba(201,168,76,.15);
}
.faq-item:first-child {
  border-top: 1px solid rgba(201,168,76,.15);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(.82rem, 2vw, .95rem);
  font-weight: 400;
  letter-spacing: .05em;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: color .3s;
  /* evita tap highlight su mobile */
  -webkit-tap-highlight-color: transparent;
}
.faq-question:hover { color: var(--gold); }
.faq-question[aria-expanded="true"] { color: var(--gold); }

.faq-icon {
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform .3s;
  line-height: 1;
  /* area tap più grande su mobile */
  min-width: 28px;
  text-align: center;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 0 24px 0;
  /* animazione apertura */
  overflow: hidden;
}
.faq-answer.open { display: block; }
.faq-answer p {
  font-size: clamp(.8rem, 1.8vw, .88rem);
  line-height: 1.9;
  color: var(--grey);
  font-weight: 300;
}

.faq-answer p .linkfaq {
  color: var(--gold);
  text-decoration: none;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .faq-section { padding: 70px 40px; }
}
@media (max-width: 768px) {
  .faq-section { padding: 60px 24px; }
  .faq-question { padding: 20px 0; }
}
@media (max-width: 560px) {
  .faq-section { padding: 48px 16px; }
  .faq-header { margin-bottom: 32px; }
  .faq-question { padding: 18px 0; gap: 12px; }
  .faq-answer p { line-height: 1.7; }
}
@media (max-width: 380px) {
  .faq-section { padding: 40px 12px; }
}