:root{
  --bg:#0b0f14;
  --panel:#111826;
  --text:#e8edf5;
  --muted:#a7b2c3;
  --brand:#f2c14e;
  --brand2:#7dd3fc;
  --border: rgba(255,255,255,.10);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --max: 1100px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(242,193,78,.18), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(125,211,252,.12), transparent 60%),
    var(--bg);
  line-height:1.55;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.container{max-width:var(--max); margin:0 auto; padding:24px}

/* Header / Nav */
header{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,.65);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  font-weight:750; letter-spacing:.2px;
}
.dot{
  width:12px; height:12px; border-radius:50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 4px rgba(242,193,78,.12);
}
.menu{display:flex; gap:12px; flex-wrap:wrap; align-items:center}
.menu a{
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:999px;
  color:var(--muted);
}
.menu a:hover{border-color:var(--border); color:var(--text); background:rgba(255,255,255,.03)}
.menu a.active{border-color:rgba(242,193,78,.40); color:var(--text); background:rgba(242,193,78,.10)}

.cta{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(242,193,78,.35);
  background: rgba(242,193,78,.12);
  color: var(--text);
  font-weight:650;
  white-space:nowrap;
}
.cta:hover{background: rgba(242,193,78,.18)}

.burger{
  display:none;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  font-weight:700;
}

/* Language switch */
.lang{
  display:flex;
  gap:8px;
  align-items:center;
}
.lang a{
  font-weight:750;
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  background: rgba(255,255,255,.02);
}
.lang a:hover{color:var(--text); background: rgba(255,255,255,.04)}
.lang a.active{
  color:var(--text);
  border-color: rgba(125,211,252,.40);
  background: rgba(125,211,252,.10);
}

/* Hero */
.hero{
  margin-top:22px;
  border-radius: calc(var(--radius) + 8px);
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  background:
    linear-gradient(90deg, rgba(0,0,0,.70), rgba(0,0,0,.10)),
    var(--hero, none);
  background-size: cover;
  background-position: center;
  min-height: 420px;
  display:flex;
  align-items:flex-end;
}
.hero-inner{padding:28px; max-width: 720px}
.kicker{
  display:inline-flex; gap:10px; align-items:center;
  color: var(--muted);
  font-weight:650;
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  background: rgba(17,24,38,.55);
}
h1{margin:14px 0 10px; font-size: clamp(34px, 4vw, 56px); line-height:1.05}
.sub{color:var(--muted); font-size: clamp(16px, 1.6vw, 18px); margin:0 0 18px}
.buttons{display:flex; gap:12px; flex-wrap:wrap}

.btn{
  padding:12px 14px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-weight:700;
  display:inline-flex;
  align-items:center;
  gap:10px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn.primary{
  border-color: rgba(242,193,78,.45);
  background: linear-gradient(135deg, rgba(242,193,78,.18), rgba(125,211,252,.10));
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.06)}

/* Cards / Sections */
.grid{
  margin-top:22px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
}
.card{
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: rgba(17,24,38,.55);
  padding:18px;
}
.card h3{margin:6px 0 6px; font-size:18px}
.card p{margin:0; color:var(--muted)}

.section{
  margin-top:28px;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: rgba(17,24,38,.35);
  padding:22px;
}
.section h2{margin:10px 0 8px}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight:650;
  font-size:12px;
}
.small{font-size:13px; color:var(--muted)}
footer{
  margin-top:26px;
  padding:22px 0 6px;
  border-top:1px solid var(--border);
}

/* Two-column block (text + photo) */
.two{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  align-items:stretch;
}
.photo{
  border-radius: var(--radius);
  border:1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.05)),
    var(--photo, none);
  background-size: cover;
  background-position: center;
  min-height: 320px;
  box-shadow: var(--shadow);
}

/* Home “3 images” preview block */
.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
  margin-top:12px;
}
.g{
  grid-column: span 4;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  position:relative;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}
.g img{
  width:100%;
  height:220px;
  object-fit: cover;
  display:block;
}
.g span{
  position:absolute;
  left:12px;
  bottom:12px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(11,15,20,.65);
  color: var(--text);
  font-weight:650;
  font-size:12px;
}

/* =========================
   ✅ GALLERY PAGE (miniatures + arrows)
   ========================= */

.gallery-view{
  display:grid;
  grid-template-columns: 56px 1fr 56px;
  gap:12px;
  align-items:center;
}

.gframe{
  margin:0;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  overflow:hidden;
  box-shadow: var(--shadow);
}

.gframe img{
  width:100%;
  height: min(62vh, 520px);
  object-fit: contain; /* così non taglia le foto */
  background: rgba(0,0,0,.25);
}

.gbtn{
  width:56px;
  height:56px;
  border-radius: 16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size:32px;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
.gbtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
}
.gbtn:active{
  transform: translateY(0px);
}

.thumbs{
  margin-top:14px;
  display:flex;
  gap:10px;
  overflow-x:auto;         /* ✅ qui nasce lo scroll */
  padding:10px 6px 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.thumbs::-webkit-scrollbar{height:10px}
.thumbs::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.10);
  border-radius:999px;
}
.thumbs::-webkit-scrollbar-track{
  background: rgba(255,255,255,.03);
  border-radius:999px;
}

.thumb{
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  border-radius: 14px;
  padding:0;
  cursor:pointer;
  overflow:hidden;
  width: 120px;
  height: 86px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  opacity:.85;
  transition: transform .12s ease, opacity .12s ease, border-color .12s ease;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit: cover;       /* ✅ qui le miniature sono belle */
  display:block;
}
.thumb:hover{transform: translateY(-1px); opacity:1}
.thumb.active{
  opacity:1;
  border-color: rgba(242,193,78,.55);
  box-shadow: 0 0 0 4px rgba(242,193,78,.12);
}

/* Responsive */
@media (max-width: 980px){
  .cta{display:none}
  .two{grid-template-columns: 1fr}
  .photo{min-height:260px}
  .g img{height:200px}
}

@media (max-width: 760px){
  .burger{display:inline-flex}
  .menu{
    display:none;
    width:100%;
    padding:10px 0 0;
  }
  .menu a{display:inline-flex}
  .nav{flex-wrap:wrap}
  .lang{margin-left:auto}
  .hero{min-height: 360px}
  .grid{gap:12px}
  .gallery{gap:10px}
  .g{grid-column: span 12}
  .g img{height:220px}

  .gallery-view{
    grid-template-columns: 46px 1fr 46px;
  }
  .gbtn{width:46px; height:46px; border-radius:14px; font-size:28px}
  .thumb{width: 104px; height: 76px}
}