/* =========================================================
   Ottimizzazioni per telefoni e tablet
   (caricato per ultimo: corregge solo ciò che serve su schermi piccoli)
   ========================================================= */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
a,button,summary,label{-webkit-tap-highlight-color:rgba(181,18,27,.12);touch-action:manipulation}

/* su schermi touch niente effetti "sollevamento" al passaggio del mouse */
@media (hover:none){
  .card:hover,.frame:hover,.btn:hover{transform:none}
  .clips figure:hover img{transform:none}
}

/* ---------- Tablet e telefoni ---------- */
@media (max-width:900px){
  .info .logo img{max-width:300px}
}

/* ---------- Telefoni ---------- */
@media (max-width:760px){
  body{font-size:16px}
  .wrap{padding-left:20px;padding-right:20px}

  /* intestazione e menu */
  .site-header .wrap{height:64px}
  .brand img{width:38px;height:38px}
  .brand span{font-size:19px}
  .menu-btn{width:44px;height:44px;margin-right:-8px;border-radius:10px}
  .menu-btn.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .menu-btn.open span:nth-child(2){opacity:0}
  .menu-btn.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .nav{top:64px;padding:6px 20px 18px;box-shadow:0 24px 40px -24px rgba(0,0,0,.35);max-height:calc(100dvh - 64px);overflow-y:auto}
  .nav a{padding:15px 2px;font-size:17px}
  .nav a[aria-current]{color:var(--red)}
  body.menu-open{overflow:hidden}

  /* banner */
  .hero-inner{height:clamp(220px,58vw,300px)}
  .hero-text{padding:0 18px 34px}
  .hero-text .eyebrow{font-size:10.5px;letter-spacing:.16em;line-height:1.6}
  .hero-credit{right:14px;bottom:10px;font-size:10px;max-width:70%;text-align:right}
  .hero:has(.home-title) .hero-inner{height:clamp(380px,78svh,560px)}
  .home-title .eyebrow{font-size:10.5px;letter-spacing:.22em;margin-bottom:14px}
  .home-title h1{font-size:clamp(54px,17vw,76px)}
  .hero-sub{gap:12px;font-size:18px;margin-top:16px}
  .hero-sub i{width:34px}

  /* titoli e testi */
  .section-kicker{font-size:11px;letter-spacing:.16em}
  .section-kicker.center::before,.section-kicker.center::after{width:18px}
  .lead-text{font-size:19px}
  h2{overflow-wrap:break-word}

  /* riquadri: niente sfocatura (più fluido sui telefoni) ma fondo più pieno */
  .form-card,.card,.critic,.curator,.slider,.reasons li,.accordion details,.legal article{
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:rgba(255,255,255,.82)
  }
  .site-header{background:rgba(247,242,234,.94);-webkit-backdrop-filter:none;backdrop-filter:none}
  body::after{display:none}

  /* pulsanti: area di tocco comoda */
  .btn{min-height:46px;padding:12px 22px}
  .info .btn,.ex-center .btn{width:100%;justify-content:center}
  .text-link{padding:8px 0}

  /* HOME */
  .exhibit{padding:20px 0 72px}
  .exhibit-grid{grid-template-columns:1fr 1fr;gap:14px}
  .ex-center{margin-bottom:10px}
  .ex-img img{border-radius:22px}
  .ex-left img,.ex-right img{aspect-ratio:3/4}
  .critics{padding:70px 0}
  .critic{padding:26px 22px 22px}
  .news{padding:70px 0 80px}
  .news-row + .news-row{margin-top:70px}
  .plaque-text{font-size:15px;padding-left:14px}
  .gallery{padding:60px 0}
  .home-frames,.frames{gap:22px}
  .quotes blockquote{font-size:17px;padding:22px 4px}

  /* CONTATTI */
  .contact{padding:56px 0 70px}
  .contact .wrap{gap:48px}
  .reasons li{font-size:12.5px}
  .field input,.field textarea{font-size:16px}          /* evita lo zoom automatico su iPhone */
  .form-foot{flex-direction:column-reverse;align-items:stretch;text-align:center}
  .form-foot .btn{width:100%;justify-content:center}
  .photo{margin:0 14px}

  /* ARCHIVIO */
  .accordion summary{padding:18px 18px;font-size:16px}
  .acc-body{padding:0 18px 18px}
  .cards{gap:14px}
  .card{padding:24px 22px}

  /* BIOGRAFIA */
  .bio-intro .wrap{gap:28px}
  .intro-img img{border-radius:22px}
  .split{padding:30px 0}
  .tl::before{left:6px}
  .tl-group{padding-left:30px;gap:18px;margin-bottom:46px}
  .tl-img{max-width:150px}
  .tl-img img{border-radius:22px}
  .tl li{grid-template-columns:70px 1fr;gap:10px}
  .tl li::before{left:-29px;top:19px}
  .tl li b{font-size:18px}
  .press{padding:64px 0 72px}
  .clips{gap:8px}

  /* EVENTI */
  .temp{padding:56px 0 64px}
  .curator{margin:30px 0 40px}
  .curator blockquote{font-size:15px}
  .works li{grid-template-columns:36px 1fr;font-size:14.5px}
  .story{max-width:300px}
  .st-expand,.st-play{width:40px;height:40px}
  .lb-inner{width:100vw;height:100dvh;padding:12px}
  .lb-top{top:12px;left:12px;right:12px}
  .lb-stage{top:72px;bottom:90px;left:12px;right:12px}
  .lb-arrow{width:42px;height:42px;background:rgba(20,20,20,.45)}
  .lb-prev{left:18px}.lb-next{right:18px}
  .lb-bars{left:12px;right:12px;bottom:56px}
  .lb-play{left:12px;bottom:12px;width:40px;height:40px}

  /* TEMA DEL MESE */
  .tema-intro{padding:52px 0 30px}
  .epigraph{margin-bottom:56px}
  .theme-head h2{font-size:40px}
  .show{padding:10px 0 72px}
  .sl-stage{height:min(62svh,460px)}
  .sl-stage figure{inset:14px 46px}
  .sl-bottom{gap:12px}
  .sl-title{font-size:19px}
  .sl-like,.sl-play{height:42px}
  .sl-play{width:42px}
  .thumbs{scroll-snap-type:x mandatory;margin-top:14px}
  .thumbs button{scroll-snap-align:center;width:60px;height:46px}

  /* fascia Contattaci */
  .info .wrap{padding-top:60px;padding-bottom:60px;gap:40px}
  .info .logo img{max-width:240px}

  /* footer */
  footer{padding:56px 0 calc(28px + env(safe-area-inset-bottom))}
  footer .wrap{gap:30px}
  footer a{display:inline-block;padding:6px 0}
  .social a{width:44px;height:44px}
  .footer-bottom{margin-top:40px;padding-top:18px}
}

/* telefoni molto stretti (es. iPhone SE) */
@media (max-width:360px){
  .brand span em{display:none}
  .exhibit-grid{grid-template-columns:1fr}
  .tl li{grid-template-columns:1fr;gap:2px}
}
