/* ==========================================================================
   Be Humans Experience — ricostruzione statica
   Palette ripresa dal sito originale:
     --bg principale : #0b0b0d (derivato da theme-color #141419)
     --surface       : #141419 (theme-color originale del sito)
     --surface-alt   : #1c1c22
     --accent (cyan) : #00f3ff (ripreso dall'asset "esagonoAnimation00F3FF")
     --accent-dim    : #0aa8b3
     --stone         : #b8b6a9 (nota naturale/organica coerente col tema "uomo e natura")
     --text          : #f4f4f2
   ========================================================================== */

:root{
  --bg: #0b0b0d;
  --surface: #141419;
  --surface-alt: #1c1c22;
  --surface-line: #2a2a31;
  --yellow: #FFC22E;       /* giallo ripreso dal logo Be Humans */
  --yellow-soft: #FFDD8A;
  --accent: #00f3ff;        /* ciano — accento secondario, dagli asset animati del sito */
  --accent-dim: #0aa8b3;
  --stone: #b8b6a9;
  --text: #f4f4f2;
  --text-muted: #9a9aa2;
  --maxw: 1280px;
  --radius: 2px;
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open-lock{ overflow:hidden; }

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
  text-transform: none;
}
h1{ font-weight: 900; }
strong{ font-weight: 800; }

.eyebrow{
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  color: var(--yellow);
  font-weight: 800;
  margin: 0 0 14px;
  display:flex;
  align-items:center;
  gap: 10px;
}
.eyebrow::before{
  content:"";
  width: 26px; height: 1px;
  background: var(--yellow);
  display:inline-block;
}

.section{ padding: 96px 0; border-top: 1px solid var(--surface-line); }
.section--tight{ padding: 64px 0; }
.section--alt{ background: var(--surface); }

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid transparent;
  cursor:pointer;
  transition: all .25s ease;
}
.btn--primary{
  background: var(--yellow);
  color: #241800;
  box-shadow: 0 0 0 0 rgba(255,194,46,.5);
}
.btn--primary:hover{
  background: var(--yellow-soft);
  box-shadow: 0 0 28px rgba(255,194,46,.45);
  transform: translateY(-1px);
}
.btn--ghost{
  border-color: var(--surface-line);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover{
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ---------------- Header ---------------- */
.site-header{
  position: sticky; top:0; z-index: 200;
  border-bottom: 1px solid var(--surface-line);
}
/* Lo sfondo sfocato è su uno pseudo-elemento e non sull'header stesso:
   "backdrop-filter" (come "transform"/"filter") crea un nuovo "containing block"
   per gli elementi con position:fixed al suo interno — il menu mobile, che è
   position:fixed, verrebbe "intrappolato" dentro l'header invece di occupare
   tutto lo schermo. Tenendolo su ::before evitiamo il problema. */
.site-header::before{
  content:"";
  position:absolute; inset:0; z-index:-1;
  background: rgba(11,11,13,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo img{ height: 42px; width:auto; }
.logo{ flex-shrink:0; }

.nav{ display:flex; align-items:center; gap: 4px; }
.nav > ul{ display:flex; align-items:center; gap: 4px; }
.nav a.nav-link{
  padding: 10px 16px;
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color .2s ease;
  display:flex;
  align-items:center;
  gap:6px;
}
.nav a.nav-link:hover, .nav a.nav-link.active{ color: var(--yellow); }

.has-dropdown{ position:relative; }
.dropdown{
  position:absolute; top: 100%; left:0;
  min-width: 260px;
  background: var(--surface-alt);
  border: 1px solid var(--surface-line);
  padding: 8px;
  opacity:0; visibility:hidden; transform: translateY(6px);
  transition: all .18s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown{
  opacity:1; visibility:visible; transform: translateY(0);
}
.dropdown a{
  display:block; padding: 10px 14px; font-size:.82rem;
  color: var(--text-muted); border-radius: var(--radius);
}
.dropdown a:hover{ background: rgba(255,194,46,.08); color: var(--yellow); }

.header-cta{ display:flex; align-items:center; gap: 18px; }
.social-mini{ display:flex; align-items:center; gap: 14px; }
.social-mini a{ color: var(--text-muted); display:flex; align-items:center; justify-content:center; width:18px; height:18px; }
.social-mini a:hover{ color: var(--yellow); }
.social-mini svg{ width:18px; height:18px; display:block; }

.nav-toggle{
  display:none; background:none; border:none; color: var(--text);
  width: 40px; height:40px; cursor:pointer;
  align-items:center; justify-content:center;
}
.nav-toggle svg{ width:24px; height:24px; display:block; }

/* ---------------- Hero ---------------- */
.hero{
  position: relative;
  min-height: 78vh;
  display:flex; align-items:flex-end;
  padding: 120px 0 80px;
  overflow:hidden;
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(0,243,255,.10), transparent 60%),
    linear-gradient(180deg, #08080a 0%, #0b0b0d 60%, var(--bg) 100%);
}
.hero-hex{
  position:absolute; inset:0; z-index:0; opacity:.5; pointer-events:none;
}
.hero-content{ position:relative; z-index:1; max-width: 760px; }
.hero .eyebrow{ color: var(--stone); }
.hero .eyebrow::before{ background: var(--stone); }
.hero h1{
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--text);
}
.hero h1 em{ font-style: normal; color: var(--yellow); }
.hero p.lead{
  color: var(--text-muted);
  max-width: 560px;
  font-size: 1.05rem;
  margin-bottom: 34px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }

.page-hero{
  position: relative;
  overflow: hidden;
  padding: 150px 0 70px;
  border-bottom: 1px solid var(--surface-line);
  background: #0b0b0d;
}
.page-hero h1{ font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 780px; }
.page-hero .lead{ color: var(--text-muted); max-width: 620px; font-size: 1.05rem; }
.page-hero > .container{ position: relative; z-index: 2; }

/* ---------------- Hero slideshow (dissolvenza incrociata) ----------------
   Usata sia nell'hero della home sia nei page-hero interni: 3+ foto in
   crossfade continuo dietro al testo, con overlay scuro per leggibilità. */
.hero-slideshow{
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation-name: heroSlideFade;
  animation-duration: 18s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
.hero-slideshow-overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,8,10,.55) 0%, rgba(11,11,13,.75) 55%, var(--bg) 100%),
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(0,243,255,.10), transparent 60%);
}
.hero .hero-slideshow-overlay{
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(11,11,13,.55) 40%, rgba(8,8,10,.55) 100%),
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(0,243,255,.10), transparent 60%);
}
@keyframes heroSlideFade{
  0%        { opacity: 0; }
  4%        { opacity: 1; }
  28%       { opacity: 1; }
  33%       { opacity: 0; }
  100%      { opacity: 0; }
}
@media (prefers-reduced-motion: reduce){
  .hero-slide{ animation: none; opacity: 0; }
  .hero-slide:first-child{ opacity: 1; }
}

/* ---------------- Cards / grid ---------------- */
.grid{ display:grid; gap: 28px; }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--2{ grid-template-columns: repeat(2, 1fr); }
.grid--4{ grid-template-columns: repeat(4, 1fr); }

.card{
  background: var(--surface);
  border: 1px solid var(--surface-line);
  padding: 34px 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover{ border-color: rgba(255,194,46,.5); transform: translateY(-3px); }
.card h3{ font-size: 1.15rem; color: var(--text); }
.card p{ color: var(--text-muted); font-size: .93rem; margin:0; }
.card .num{ color: var(--yellow); font-family: var(--font-display); font-weight:800; font-size: 1.6rem; margin-bottom: 10px; display:block; }

.event-card{
  position:relative;
  overflow:hidden;
  min-height: 420px;
  display:flex; align-items:flex-end;
  border: 1px solid var(--surface-line);
}
.event-card img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  filter: grayscale(.15) brightness(.7);
  transition: transform .5s ease, filter .5s ease;
}
.event-card:hover img{ transform: scale(1.06); filter: grayscale(0) brightness(.55); }
.event-card::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 30%, rgba(11,11,13,.94) 100%);
}
.event-card-content{ position:relative; z-index:1; padding: 28px; width:100%; }
.event-card .eyebrow{ color: var(--stone); }
.event-card .eyebrow::before{ background:var(--stone); }
.event-card h3{ margin-bottom: 14px; font-size: 1.5rem; }
.event-card .btn{ padding: 10px 20px; font-size: .74rem; }

/* ---------------- Eventi a Tema: card dinamiche gestite da /admin.html ---------------- */
.event-item{
  background: var(--surface);
  border: 1px solid var(--surface-line);
  overflow: hidden;
  display:flex;
  flex-direction:column;
  transition: border-color .2s ease, transform .2s ease;
}
.event-item:hover{ border-color: rgba(255,194,46,.5); transform: translateY(-3px); }
.event-item-photo{ width:100%; aspect-ratio: 4/3; overflow:hidden; background: var(--surface-alt); }
.event-item-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.event-item-body{ padding: 22px 24px 26px; display:flex; flex-direction:column; gap:10px; flex:1; }
.event-item-body h3{ font-size:1.1rem; color:var(--text); margin:0; }
.event-item-body p{ color:var(--text-muted); font-size:.9rem; margin:0; flex:1; }
.event-item-body .btn{ align-self:flex-start; margin-top:6px; padding:11px 22px; font-size:.75rem; }
.eventi-cards-empty{ color: var(--text-muted); font-size:.92rem; }

/* ---------------- Popup "attività chiusa oggi" ---------------- */
.closed-modal{
  position: fixed; inset:0; z-index: 900;
  display:flex; align-items:center; justify-content:center;
  padding: 20px;
  background: rgba(6,6,8,.72);
  backdrop-filter: blur(3px);
  opacity:0; visibility:hidden; transition: opacity .25s ease;
}
.closed-modal.show{ opacity:1; visibility:visible; }
.closed-modal-box{
  position:relative;
  max-width: 440px; width:100%;
  background: var(--surface); border:1px solid var(--surface-line);
  padding: 36px 32px 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  transform: translateY(10px); transition: transform .25s ease;
}
.closed-modal.show .closed-modal-box{ transform: translateY(0); }
.closed-modal-close{
  position:absolute; top:10px; right:10px;
  width:34px; height:34px; display:flex; align-items:center; justify-content:center;
  background:none; border:none; color: var(--text-muted); cursor:pointer;
}
.closed-modal-close:hover{ color: var(--yellow); }
.closed-modal-close svg{ width:18px; height:18px; }
.closed-modal-box h3{ font-size:1.3rem; margin: 6px 0 12px; color:var(--text); padding-right: 24px; }
.closed-modal-box p{ color: var(--text-muted); font-size:.92rem; margin:0; }

/* Room accordion (le 8 stanze) */
.rooms{ display:flex; flex-direction:column; border-top: 1px solid var(--surface-line); }
.room{ border-bottom: 1px solid var(--surface-line); }
.room-toggle{
  width:100%; background:none; border:none; color: var(--text);
  display:flex; align-items:center; justify-content:space-between;
  padding: 26px 4px; cursor:pointer; text-align:left; gap: 20px;
}
.room-toggle .room-index{ color: var(--yellow); font-family: var(--font-display); font-weight:800; font-size:1rem; width:32px; flex-shrink:0; }
.room-toggle .room-name{ font-family: var(--font-display); font-size: 1.5rem; flex:1; }
.room-toggle .room-plus{ font-size: 1.4rem; color: var(--text-muted); transition: transform .25s ease; flex-shrink:0; }
.room.open .room-toggle .room-plus{ transform: rotate(45deg); color: var(--yellow); }
.room-panel{
  max-height:0; overflow:hidden; transition: max-height .35s ease;
}
.room.open .room-panel{ max-height: 220px; }
.room-panel-inner{ padding: 0 4px 30px 56px; color: var(--text-muted); max-width: 640px; }

/* ---------------- Orari / info blocks ---------------- */
.hours-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hours-card{ background: var(--surface); border:1px solid var(--surface-line); padding: 30px; }
.hours-card h3{ font-size: 1rem; text-transform:uppercase; letter-spacing:.05em; color: var(--accent); }
.hours-card p{ color: var(--text-muted); margin:0; }

/* ---------------- Gallery (esagonale) ---------------- */
.gallery{ display:grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.gallery img{ width:100%; height: 220px; object-fit:cover; filter: grayscale(.1); transition: filter .3s ease, transform .3s ease; }
.gallery a:hover img{ filter: grayscale(0); transform: scale(1.02); }

.hex-grid{
  display:flex; flex-wrap:wrap; justify-content:center;
  gap: 16px 18px;
  padding-top: 44px;
}
.hex-item{
  position:relative;
  width: 208px;
  aspect-ratio: 1 / 1.1547;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow:hidden;
  cursor:pointer;
  transition: transform .35s ease;
}
.hex-item:nth-child(even){ margin-top: 54px; }
.hex-item img{
  width:100%; height:100%; object-fit:cover;
  filter: grayscale(.15) brightness(.9);
  transition: transform .45s ease, filter .45s ease;
}
.hex-item::after{
  content:"";
  position:absolute; inset:0;
  box-shadow: inset 0 0 0 3px var(--yellow);
  opacity:0; transition: opacity .3s ease;
}
.hex-item:hover{ transform: translateY(-6px); }
.hex-item:hover img{ transform: scale(1.12); filter: grayscale(0) brightness(1); }
.hex-item:hover::after{ opacity:1; }

@media (max-width: 720px){
  .hex-item{ width: 150px; }
  .hex-item:nth-child(even){ margin-top: 40px; }
}
@media (max-width: 460px){
  .hex-item{ width: 118px; }
  .hex-item:nth-child(even){ margin-top: 32px; }
}

/* ---------------- FAQ ---------------- */
.faq-item{ border-bottom: 1px solid var(--surface-line); }
.faq-q{
  width:100%; background:none; border:none; color: var(--text);
  display:flex; justify-content:space-between; align-items:center;
  padding: 22px 0; cursor:pointer; font-weight:700; font-size:1rem; text-align:left; gap: 16px;
}
.faq-q:hover{ color: var(--yellow); }
.faq-q .plus{ color: var(--yellow); font-size:1.3rem; flex-shrink:0; transition: transform .2s ease; }
.faq-item.open .faq-q .plus{ transform: rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a{ max-height: 500px; }
.faq-a-inner{ padding: 0 0 22px; color: var(--text-muted); max-width: 680px; }
.faq-a-inner strong{ color: var(--text); }

/* ---------------- Form ---------------- */
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column: 1 / -1; }
label{ font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; color: var(--text-muted); }
input, select, textarea{
  background: var(--surface);
  border: 1px solid var(--surface-line);
  color: var(--text);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: .92rem;
  border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus{ outline:none; border-color: var(--accent); }
textarea{ resize: vertical; min-height: 110px; }

/* ---------------- Ticket banner ---------------- */
.ticket-banner{
  border: 1px solid var(--yellow);
  background: linear-gradient(135deg, rgba(255,194,46,.10), transparent 60%), var(--surface);
  padding: 54px 48px;
  display:flex; align-items:center; justify-content:space-between; gap: 32px; flex-wrap:wrap;
}
.ticket-banner h2{ margin:0 0 6px; font-size: 1.8rem; }
.ticket-banner p{ margin:0; color: var(--text-muted); max-width: 480px; }

/* ---------------- Footer ---------------- */
.site-footer{ background: var(--surface); border-top: 1px solid var(--surface-line); padding-top: 80px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-grid h4{ color: var(--yellow); font-size: .8rem; text-transform: uppercase; letter-spacing:.1em; font-family: var(--font-body); font-weight:800; }
.footer-grid p, .footer-grid a{ color: var(--text-muted); font-size: .92rem; }
.footer-grid ul li{ margin-bottom: 10px; }
.footer-grid ul a:hover{ color: var(--yellow); }
.footer-map{ width:100%; height: 200px; border:1px solid var(--surface-line); filter: grayscale(.4) invert(.92) contrast(.9); }
.footer-social{ display:flex; align-items:center; gap:14px; margin-top:16px; }
.footer-social a{ width:38px; height:38px; border:1px solid var(--surface-line); display:flex; align-items:center; justify-content:center; border-radius:50%; flex-shrink:0; }
.footer-social a:hover{ border-color: var(--yellow); color: var(--yellow); }
.footer-social svg{ width:18px; height:18px; display:block; }
.footer-bottom{
  border-top: 1px solid var(--surface-line);
  padding: 24px 0;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  color: var(--text-muted); font-size: .8rem;
}
.footer-bottom img{ height: 26px; opacity:.7; }

/* ---------------- Cookie banner ---------------- */
.cookie-banner{
  position:fixed; left:20px; right:20px; bottom:20px; z-index: 500;
  max-width: 640px; margin:0 auto;
  background: var(--surface-alt); border:1px solid var(--surface-line);
  padding: 20px 24px; display:flex; align-items:center; gap:20px; flex-wrap:wrap;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  transform: translateY(140%); transition: transform .4s ease;
}
.cookie-banner.show{ transform: translateY(0); }
.cookie-banner p{ margin:0; font-size:.85rem; color: var(--text-muted); flex:1; min-width:220px; }

/* ---------------- Astronauta FAQ ---------------- */
.astro-widget{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 450;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
}
.astro-toggle{
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 82px;
  height: 104px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.5));
  transition: transform .25s ease;
}
.astro-toggle:hover, .astro-toggle:focus-visible{ transform: translateY(-3px); }
.astro-toggle svg{ width:100%; height:100%; display:block; }

.astro-toggle .astro-arm-right{
  transform-origin: 68px 57px;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
}
.astro-toggle:hover .astro-arm-right,
.astro-toggle:focus-visible .astro-arm-right,
.astro-widget.open .astro-arm-right{
  animation: astroWave 1.1s ease-in-out;
  transform: rotate(-115deg);
}
@keyframes astroWave{
  0%   { transform: rotate(0deg); }
  30%  { transform: rotate(-120deg); }
  50%  { transform: rotate(-95deg); }
  70%  { transform: rotate(-120deg); }
  100% { transform: rotate(-115deg); }
}
.astro-toggle .astro-bubble-hint{
  animation: astroFloat 3.4s ease-in-out infinite;
}
@keyframes astroFloat{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
}

.astro-panel{
  margin-bottom: 14px;
  width: 280px;
  max-width: 76vw;
  background: var(--surface-alt);
  border: 1px solid var(--surface-line);
  border-radius: 4px;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.astro-widget.open .astro-panel{ opacity:1; visibility:visible; transform: translateY(0); }
.astro-panel::after{
  content:"";
  position:absolute;
  right: 30px;
  bottom: -8px;
  width: 16px; height:16px;
  background: var(--surface-alt);
  border-right: 1px solid var(--surface-line);
  border-bottom: 1px solid var(--surface-line);
  transform: rotate(45deg);
}
.astro-panel-title{
  display:flex; align-items:center; gap:8px;
  font-size: .78rem; text-transform:uppercase; letter-spacing:.08em;
  color: var(--yellow); font-weight:800; margin-bottom: 12px;
}
.astro-panel ul{ display:flex; flex-direction:column; gap: 8px; }
.astro-panel a{
  display:block;
  font-size: .86rem;
  color: var(--text);
  padding: 9px 10px;
  border: 1px solid var(--surface-line);
  border-radius: 3px;
  transition: all .2s ease;
}
.astro-panel a:hover{ border-color: var(--yellow); color: var(--yellow); background: rgba(255,194,46,.06); }
.astro-panel .astro-close{
  position:absolute; top:10px; right:10px;
  background:none; border:none; color: var(--text-muted); cursor:pointer;
  width:26px; height:26px;
  display:flex; align-items:center; justify-content:center;
}
.astro-panel .astro-close svg{ width:16px; height:16px; display:block; }
.astro-panel .astro-close:hover{ color: var(--yellow); }

@media (max-width: 640px){
  .astro-toggle{ width: 64px; height: 82px; }
  .astro-widget{ right: 14px; bottom: 14px; }
}

/* ---------------- Utilities ---------------- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.stone{ color: var(--stone); }
.mb-48{ margin-bottom:48px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px){
  .grid--3, .grid--4{ grid-template-columns: 1fr 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 32px; }
  .gallery{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 820px){
  .nav{
    position: fixed; top: var(--header-h, 70px); right:0; bottom:0; left:0; background: var(--bg);
    flex-direction:column; align-items:stretch; padding: 20px;
    transform: translateX(100%); transition: transform .3s ease;
    overflow-y:auto;
  }
  .nav.open{ transform: translateX(0); }
  .nav > ul{ flex-direction:column; align-items:stretch; gap:0; }
  .nav a.nav-link{ padding: 16px 8px; border-bottom: 1px solid var(--surface-line); }
  .dropdown{ position:static; opacity:1; visibility:visible; transform:none; display:none; border:none; background:var(--surface-alt); margin: 4px 0 8px 12px; }
  .has-dropdown.open .dropdown{ display:block; }
  .nav-toggle{ display:flex; }
  .header-cta .btn--primary{ padding: 11px 16px; font-size:.72rem; }
  .social-mini{ display:none; }
}
@media (max-width: 640px){
  .container{ padding: 0 20px; }
  .grid--3, .grid--4, .grid--2{ grid-template-columns: 1fr; }
  .hours-grid{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: repeat(2,1fr); }
  .section{ padding: 64px 0; }
  .ticket-banner{ padding: 36px 24px; }
  .hero{ min-height: 60vh; padding: 110px 0 60px; }
}
@media (max-width: 480px){
  .header-inner{ padding: 10px 16px; gap: 10px; }
  .logo img{ height: 32px; }
  .header-cta{ gap: 8px; }
  .header-cta .btn--primary{ padding: 8px 12px; font-size:.62rem; letter-spacing:.03em; }
  .nav-toggle{ width:34px; height:34px; }
  .nav-toggle svg{ width:22px; height:22px; }
  .page-hero{ padding: 130px 0 50px; }
  .ticket-banner{ flex-direction:column; align-items:flex-start; }
  .ticket-banner .btn{ width:100%; justify-content:center; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
  .cookie-banner{ left:12px; right:12px; bottom:12px; padding:16px 18px; }
  .astro-widget{ right: 10px; bottom: 10px; }
}

/* ==========================================================================
   Pannello Amministrazione — admin.html
   ========================================================================== */
.admin-body{ background: var(--bg); min-height:100vh; }
.admin-shell{ max-width: 920px; margin: 0 auto; padding: 48px 24px 100px; }
.admin-header{ display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom: 40px; flex-wrap:wrap; }
.admin-header h1{ font-size: 1.6rem; margin:0; }
.admin-header p{ color: var(--text-muted); font-size:.9rem; margin: 6px 0 0; }
.admin-header img{ height: 34px; }

.admin-lock{ max-width: 380px; margin: 14vh auto 0; text-align:center; }
.admin-lock .card{ text-align:left; }
.admin-lock h2{ font-size:1.2rem; margin-top:0; }
.admin-lock-error{ color:#ff6b6b; font-size:.85rem; min-height:18px; margin-top:8px; }

.admin-note{
  background: var(--surface-alt); border:1px solid var(--surface-line);
  border-left: 3px solid var(--accent); padding: 16px 20px; font-size:.85rem;
  color: var(--text-muted); margin-bottom: 32px; line-height:1.6;
}
.admin-note strong{ color: var(--text); }

.admin-section{ background: var(--surface); border:1px solid var(--surface-line); padding: 28px 26px; margin-bottom: 28px; }
.admin-section h2{ font-size: 1.05rem; margin:0 0 4px; text-transform:uppercase; letter-spacing:.05em; color: var(--yellow); }
.admin-section > p.admin-hint{ color: var(--text-muted); font-size:.85rem; margin: 0 0 20px; }

.admin-field{ margin-bottom: 16px; }
.admin-field label{ display:block; margin-bottom: 6px; }
.admin-field input, .admin-field textarea{ width:100%; }
.admin-field textarea{ min-height: 90px; resize: vertical; }
.admin-row{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; }

.admin-toggle-line{ display:flex; align-items:center; gap:14px; margin-bottom: 18px; }
.switch{ position:relative; width:50px; height:28px; flex-shrink:0; }
.switch input{ opacity:0; width:0; height:0; }
.switch-track{
  position:absolute; inset:0; background: var(--surface-alt); border:1px solid var(--surface-line);
  cursor:pointer; transition: background .2s ease; border-radius: 20px;
}
.switch-track::before{
  content:""; position:absolute; left:3px; top:2px; width:20px; height:20px;
  background: var(--text-muted); transition: transform .2s ease, background .2s ease; border-radius:50%;
}
.switch input:checked + .switch-track{ background: rgba(255,107,107,.18); border-color:#ff6b6b; }
.switch input:checked + .switch-track::before{ transform: translateX(21px); background:#ff6b6b; }
.admin-toggle-label{ font-weight:700; }
.admin-toggle-status{ font-size:.78rem; color: var(--text-muted); text-transform:uppercase; letter-spacing:.05em; }

.admin-events-list{ display:flex; flex-direction:column; gap:14px; margin-bottom: 20px; }
.admin-event-row{
  display:flex; gap:16px; align-items:center; background: var(--surface-alt);
  border:1px solid var(--surface-line); padding: 12px; 
}
.admin-event-row img{ width:64px; height:64px; object-fit:cover; flex-shrink:0; background:var(--bg); }
.admin-event-row .admin-event-info{ flex:1; min-width:0; }
.admin-event-row h4{ margin:0 0 3px; font-size:.95rem; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.admin-event-row p{ margin:0; font-size:.78rem; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.admin-event-actions{ display:flex; gap:6px; flex-shrink:0; }
.admin-icon-btn{
  width:34px; height:34px; display:flex; align-items:center; justify-content:center;
  background:none; border:1px solid var(--surface-line); color:var(--text-muted); cursor:pointer; border-radius: var(--radius);
}
.admin-icon-btn:hover{ border-color:var(--yellow); color:var(--yellow); }
.admin-icon-btn.danger:hover{ border-color:#ff6b6b; color:#ff6b6b; }
.admin-icon-btn svg{ width:16px; height:16px; }
.admin-empty{ color: var(--text-muted); font-size:.88rem; padding: 10px 0; }

.admin-form{ border-top:1px solid var(--surface-line); padding-top: 20px; margin-top: 6px; display:none; }
.admin-form.show{ display:block; }
.admin-form-actions{ display:flex; gap:12px; margin-top: 4px; }

.admin-export-row{ display:flex; gap:12px; flex-wrap:wrap; }
.admin-toast{
  position:fixed; left:50%; bottom:26px; transform: translate(-50%, 20px);
  background: var(--yellow); color:#241800; padding: 12px 22px; font-size:.85rem; font-weight:700;
  box-shadow: 0 12px 30px rgba(0,0,0,.4); opacity:0; pointer-events:none; transition: all .25s ease;
  z-index: 999;
}
.admin-toast.show{ opacity:1; transform: translate(-50%, 0); }

@media (max-width:640px){
  .admin-row{ grid-template-columns:1fr; }
  .admin-event-row{ flex-wrap:wrap; }
  .admin-shell{ padding: 32px 16px 80px; }
}
@media (max-width:480px){
  .closed-modal-box{ padding: 28px 20px 24px; }
  .admin-lock{ margin-top: 10vh; }
}
