/* =====================================================
   mobile.css — navbar identica alla home + responsive
   Da includere in: btnescap, btncart, contattami, biografia
   (NON serve nella home, che ha già tutto)
   ===================================================== */

img, iframe, video { max-width: 100%; }

/* ---------- NAVBAR: semitrasparente, fissa, nera allo scroll ---------- */
html body header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(0,0,0,.65) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background-color .4s ease, box-shadow .4s ease;
}
html body header.scrolled {
  background: #000 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.45);
}
.brandmark img { height: 120px; width: auto; mix-blend-mode: lighten; }
.nav-toggle { display: none; }

/* La <section class="hero"> delle sottopagine contiene solo la navbar:
   non deve occupare altezza (card.css la allunga a 100svh su mobile) */
section.hero{ height:0 !important; min-height:0 !important; padding:0 !important; margin:0 !important; overflow:visible !important; }/* ---------- MENU HAMBURGER (tablet e telefoni) ---------- */
@media (max-width: 720px) {
  html body header {
    padding: 10px 18px !important;
    min-height: 70px;
    background: rgba(0,0,0,.85) !important;
    backdrop-filter: none;            /* sennò il menu fixed si rompe */
    -webkit-backdrop-filter: none;
  }
  html body header.scrolled { background: #000 !important; }

  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 10px;
    background: none; border: none; box-shadow: none;
    cursor: pointer;
    position: relative; z-index: 2;
  }
  .nav-toggle:hover { background: none; transform: none; box-shadow: none; }
  .nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: #e9e4d8;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  nav.links {
    position: fixed !important;
    top: 0; right: 0;
    height: 100vh; height: 100dvh;
    width: min(82vw, 340px);
    background: #121110;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 35px !important;
    gap: 28px !important;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .5s cubic-bezier(.65,0,.35,1), visibility 0s .5s;
    z-index: 1;
  }
  nav.links.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .5s cubic-bezier(.65,0,.35,1), visibility 0s;
  }
  nav.links a, nav.links .nav-coming { font-size: 13px; padding: 8px 0; }
}

@media (max-width: 720px) {
  .brandmark img { height: 60px !important; }
}
@media (max-width: 390px) {
  html body header { padding-left: 14px !important; padding-right: 14px !important; }
  .brandmark img { height: 54px !important; }
}

/* ---------- PAGINE VIDEO (escapologia / cartomagia) ---------- */
.video iframe {
  width: min(800px, 92vw) !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
}
@media (max-width: 720px) {
.video { padding-top: 95px !important; gap: 24px !important; }}

/* ---------- PAGINA CONTATTI ---------- */
@media (max-width: 720px) {
  body.contact-page .contatti { padding: 120px 16px 60px !important; min-height: auto !important; }
  body.contact-page .contatti h2 { font-size: clamp(26px, 8vw, 36px); letter-spacing: 3px; text-align: center; margin-bottom: 30px; }
  body.contact-page .contatti p { font-size: 18px; margin-bottom: 30px; }
  #contact-form { padding: 24px 18px !important; }
  .campo label { font-size: 15px; }
  .campo input, .campo textarea { font-size: 16px !important; } /* evita lo zoom automatico su iPhone */
  #contact-form button { width: 100%; }
}

/* ---------- BIOGRAFIA ---------- */
@media (max-width: 720px) {
  .bio-hero h1 { word-break: normal; }
  .bio-block p, .bio-text p, .side p { font-size: 18px; }
}

/* ---------- FOOTER ---------- */
footer .socials { flex-wrap: wrap; gap: 12px 22px; }
@media (max-width: 720px) {
  footer { flex-direction: column; justify-content: center; text-align: center; padding: 35px 20px 45px !important; gap: 20px; }
  footer .foot-name { font-size: 11px; letter-spacing: .12em; }
  footer .socials { width: 100%; justify-content: center; gap: 12px 16px; }
  footer a { font-size: 13px; }
  .footer-divider { display: none; }
}

/* ---------- TORNA SU + COOKIE (mobile) ---------- */
@media (max-width: 720px) {
  .back-top, .cookie-reopen { width: 42px; height: 42px; right: 15px; }
  .back-top { bottom: 20px; }
  .cookie-reopen { bottom: 75px; }
  #cookie-banner { left: 15px; right: 15px; bottom: 15px; width: auto !important; max-width: none !important; padding: 16px; gap: 11px; }
  .cookie-text { font-size: 14px; line-height: 1.35; }
  .cookie-buttons button { flex: 1; }
}
.video br{ display:none !important; }
@media (max-width: 720px) {
  html body header nav.links.open {
    transform: translateX(0) !important;
    visibility: visible !important;
  }
}