:root {
  --navy:        #0a1a3a;
  --navy-deep:   #050d22;
  --red:         #e63946;
  --gold:        #ffd23f;
  --orange:      #ff8c42;
  --pink:        #ff4d6d;
  --cream:       #fff8e7;
  --white:       #ffffff;
  --shadow:      0 20px 60px rgba(0,0,0,.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--navy-deep);
  color: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; }

/* ====================================================================== */
/* NAVBAR                                                                 */
/* ====================================================================== */
.navbar {
  background: rgba(5,13,34,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,210,63,.2);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 16px;
  position: relative;
}
.nav-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,210,63,.5);
  color: var(--gold);
  font-size: 1.3rem;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.nav-links a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: .95rem;
  letter-spacing: 1.5px;
  color: var(--cream);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  white-space: nowrap;
  display: block;
}
.nav-links a:hover { background: rgba(255,210,63,.12); color: var(--gold); }
.nav-links a.active {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(255,140,66,.3);
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(5,13,34,.98);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--gold);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    box-shadow: 0 12px 30px rgba(0,0,0,.5);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
}

/* ====================================================================== */
/* PAGE HEADER (per le pagine interne)                                    */
/* ====================================================================== */
.page-head {
  background:
    radial-gradient(ellipse at top, rgba(255,140,66,.15), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 60px 20px 50px;
  text-align: center;
  border-bottom: 1px solid rgba(255,210,63,.15);
}
.page-head h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--white);
  text-shadow: 3px 3px 0 var(--red), 6px 6px 0 var(--navy);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 14px;
}
.page-head .subtitle-page {
  font-family: 'Permanent Marker', cursive;
  color: var(--gold);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  transform: rotate(-2deg);
  display: inline-block;
}

/* ====================================================================== */
/* FLAG BAR                                                               */
/* ====================================================================== */
.flag-bar {
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--red) 0 40px, var(--white) 40px 80px);
}

/* ====================================================================== */
/* HERO (homepage only)                                                   */
/* ====================================================================== */
.sky {
  position: relative;
  background: linear-gradient(180deg, #0a1a3a 0%, #2a2454 30%, #6b3d6e 55%, #d96a4a 78%, #ffb56b 95%, #ffd98a 100%);
  overflow: hidden;
  padding: 36px 16px 0;
  text-align: center;
}
@media (min-width: 600px) { .sky { padding: 60px 20px 0; } }

.stars { position: absolute; inset: 0; pointer-events: none; }
.stars span {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: .8;
  animation: twinkle 3s infinite ease-in-out;
}
@keyframes twinkle { 0%,100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.4); } }

.hero { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.kicker {
  display: inline-block;
  font-family: 'Permanent Marker', cursive;
  color: var(--gold);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  transform: rotate(-3deg);
  text-shadow: 2px 2px 0 var(--red);
  margin-bottom: 8px;
}
.hero h1, h1.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 13vw, 9rem);
  line-height: .9;
  letter-spacing: 2px;
  color: var(--white);
  text-shadow: 3px 3px 0 var(--red), 6px 6px 0 var(--navy);
  margin-bottom: 12px;
  word-break: break-word;
}
@media (min-width: 600px) {
  .hero h1, h1.hero-title { text-shadow: 4px 4px 0 var(--red), 8px 8px 0 var(--navy); }
}
.subtitle {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  letter-spacing: 3px;
  color: var(--cream);
  margin-bottom: 30px;
}
.subtitle .pin { display: inline-block; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.photo-wrap { position: relative; width: min(85vw, 420px); margin: 20px auto -60px; z-index: 3; }
.photo-frame {
  position: relative;
  padding: 14px 14px 56px;
  background: var(--cream);
  border-radius: 4px;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
  transition: transform .4s ease;
}
@media (hover: hover) { .photo-frame:hover { transform: rotate(0) scale(1.02); } }
.photo-frame img {
  display: block; width: 100%; height: auto; border-radius: 2px;
  aspect-ratio: 3 / 4; object-fit: cover;
}
.photo-frame .caption {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  text-align: center;
  font-family: 'Permanent Marker', cursive;
  color: var(--navy);
  font-size: clamp(.95rem, 3vw, 1.3rem);
  padding: 0 10px;
}
@media (min-width: 600px) {
  .photo-wrap { margin-bottom: -80px; }
  .photo-frame { padding: 18px 18px 70px; }
  .photo-frame .caption { bottom: 18px; }
}
.tape {
  position: absolute;
  width: 90px; height: 22px;
  background: rgba(255, 235, 100, .6);
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
.tape.tl { top: -10px; left: -15px; transform: rotate(-25deg); }
.tape.tr { top: -10px; right: -15px; transform: rotate(20deg); }

.skyline { position: relative; margin-top: -2px; line-height: 0; }
.skyline svg { width: 100%; height: auto; display: block; }

/* ====================================================================== */
/* SECTIONS                                                               */
/* ====================================================================== */
section.content {
  background: var(--navy-deep);
  padding: 60px 16px 50px;
  position: relative;
}
@media (min-width: 600px) { section.content { padding: 80px 20px 60px; } }
section.content.alt {
  background: radial-gradient(ellipse at top, rgba(255,140,66,.06), transparent 60%), var(--navy);
}
section.content.dark {
  background: linear-gradient(180deg, var(--navy-deep) 0%, #03081a 100%);
}
.container { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.container.wide { max-width: 1100px; }
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--gold);
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: rgba(255,248,231,.7);
  margin-bottom: 50px;
  font-size: clamp(.95rem, 2vw, 1.1rem);
}

/* ====================================================================== */
/* HOME EXPLORATION CARDS                                                 */
/* ====================================================================== */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
  margin: 30px 0 60px;
}
.explore {
  position: relative;
  display: block;
  background: linear-gradient(135deg, rgba(255,210,63,.08), rgba(255,140,66,.04));
  border: 2px solid rgba(255,210,63,.25);
  border-radius: 18px;
  padding: 28px 22px;
  text-decoration: none;
  color: var(--cream);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.explore::after {
  content: '→';
  position: absolute;
  top: 24px; right: 22px;
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform .3s ease;
}
.explore:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(255,140,66,.2);
}
.explore:hover::after { transform: translateX(6px); }
.explore .ic {
  font-size: 3rem;
  display: block;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.4));
}
.explore h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.explore p {
  font-size: .92rem;
  color: rgba(255,248,231,.75);
}

/* ====================================================================== */
/* CARDS / GRID                                                           */
/* ====================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 50px;
}
.card {
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,210,63,.2);
  border-radius: 16px;
  padding: 24px 20px;
  transition: transform .3s ease, border-color .3s ease;
  cursor: pointer;
  user-select: none;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); border-color: var(--gold); }
}
.card .icon { font-size: 2.5rem; margin-bottom: 12px; display: block; transition: transform .3s ease; }
.card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 8px;
}
.card p { color: rgba(255,248,231,.75); font-size: .95rem; }
.card strong { color: var(--gold); }
.card.zap { animation: rainbow-zap .7s ease; }
@keyframes rainbow-zap {
  0%   { transform: scale(1);    border-color: var(--gold); }
  15%  { transform: scale(1.06); border-color: #ff4d6d; background: linear-gradient(135deg, rgba(255,77,109,.18), rgba(255,140,66,.1)); }
  35%  { border-color: #ffd23f; background: linear-gradient(135deg, rgba(255,210,63,.18), rgba(255,140,66,.1)); }
  55%  { border-color: #4dff88; background: linear-gradient(135deg, rgba(77,255,136,.15), rgba(0,217,255,.1)); }
  75%  { border-color: #00d9ff; background: linear-gradient(135deg, rgba(0,217,255,.18), rgba(255,77,109,.1)); }
  100% { transform: scale(1);    border-color: rgba(255,210,63,.2); }
}
.card.zap .icon { animation: spin-icon .7s ease; }
@keyframes spin-icon {
  from { transform: rotate(0)    scale(1); }
  50%  { transform: rotate(180deg) scale(1.4); }
  to   { transform: rotate(360deg) scale(1); }
}

/* Card con foto in cima (per grattacieli.html / musei.html) */
.card.has-img { padding: 0; overflow: hidden; }
.card.has-img .card-thumb {
  display: block;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy), #1a2a4a);
  overflow: hidden;
  position: relative;
}
.card.has-img .card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
@media (hover: hover) {
  .card.has-img:hover .card-thumb img { transform: scale(1.05); }
}
.card.has-img .icon {
  font-size: 2.5rem;
  padding: 14px 20px 0;
  margin: 0;
}
.card.has-img h3 { padding: 0 20px; }
.card.has-img p { padding: 0 20px 22px; }

/* Stat chips (schedario dati strutturati su grattacieli/musei) */
.card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 20px 14px;
  margin: 0;
}
.card-stats .stat {
  background: rgba(255,210,63,.08);
  border: 1px solid rgba(255,210,63,.25);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: .82rem;
  color: var(--cream);
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1.2;
}
.card-stats .stat b {
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  font-weight: normal;
  font-size: .75rem;
  text-transform: uppercase;
}

/* "Prossimo viaggio" cards (wishlist style) */
.wish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  margin: 30px 0 40px;
}
.wish {
  background: linear-gradient(160deg, rgba(106,90,205,.15), rgba(0,0,0,.25));
  border: 2px dashed rgba(106,90,205,.45);
  border-radius: 18px;
  padding: 22px 20px;
  position: relative;
  transition: transform .3s ease, border-color .3s ease;
  cursor: pointer;
}
.wish-img {
  display: block;
  aspect-ratio: 16 / 9;
  margin: -22px -20px 14px;
  background: linear-gradient(135deg, var(--navy), #1a2a4a);
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  position: relative;
}
.wish-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s ease;
  font-size: .85rem;
  color: rgba(255,248,231,.5);
  text-align: center;
  padding: 10px;
}
.wish-img::after {
  content: '🔍';
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.65);
  color: var(--gold);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.wish:hover .wish-img::after { opacity: 1; }
@media (hover: none) { .wish-img::after { opacity: .8; } }
@media (hover: hover) {
  .wish:hover .wish-img img { transform: scale(1.05); }
}
.wish::before {
  content: '✨';
  position: absolute;
  top: -14px; right: 14px;
  background: #6a5acd;
  color: var(--white);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,.4);
}
@media (hover: hover) {
  .wish:hover { transform: translateY(-4px); border-color: #9d8bff; border-style: solid; }
}
.wish .when {
  font-family: 'Bebas Neue', sans-serif;
  font-size: .75rem; letter-spacing: 2px;
  color: #b4a9ff; display: inline-block;
  margin-bottom: 8px;
}
.wish h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; color: var(--white);
  letter-spacing: 1px; margin-bottom: 8px; line-height: 1.15;
}
.wish .emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.4));
}
.wish p {
  font-size: .9rem;
  color: rgba(255,248,231,.82);
  line-height: 1.5;
}
.wish strong { color: #ffd23f; }

/* Quote box */
.quote-box {
  max-width: 700px;
  margin: 40px auto;
  padding: 36px 30px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 20px;
  position: relative;
  transform: rotate(-1deg);
  box-shadow: var(--shadow);
}
.quote-box::before {
  content: '"';
  position: absolute;
  top: -20px; left: 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 6rem;
  color: var(--red);
  line-height: 1;
}
.quote-box p {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  text-align: center;
  line-height: 1.4;
}

/* ====================================================================== */
/* TRAFFIC / FLOATING / STARS / BADGE                                     */
/* ====================================================================== */
.taxi-strip {
  overflow: hidden; height: 160px; position: relative;
  margin: 40px 0 20px;
  background: linear-gradient(180deg, transparent 0%, transparent 30%, rgba(255,255,255,.02) 30%, rgba(255,255,255,.02) 70%, transparent 70%);
  border-radius: 6px;
}
.lane { position: absolute; left: 0; right: 0; height: 70px; }
.lane-top { top: 0; } .lane-bottom { bottom: 0; }
.vehicle { position: absolute; bottom: 0; font-size: 2.6rem; white-space: nowrap; will-change: transform; }
.taxi { animation: drive-rtl 14s linear infinite; }
.bus  { transform: scaleX(-1); animation: drive-ltr 20s linear infinite; animation-delay: 3s; }
@keyframes drive-rtl { from { right: -120px; } to { right: calc(100% + 120px); } }
@keyframes drive-ltr { from { left:  -120px; } to { left:  calc(100% + 120px); } }
.road {
  position: absolute; left: 0; right: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 18px, transparent 18px 36px);
}
.road-top    { top: 70px; }
.road-bottom { bottom: 0; opacity: 0; }

.floating-foods { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.floating-foods span {
  position: absolute; bottom: -50px;
  font-size: 1.8rem; opacity: 0;
  animation: float-up linear infinite;
  filter: drop-shadow(0 4px 12px rgba(255,210,63,.2));
}
.floating-foods span:nth-child(1) { left:  8%; animation-duration: 14s; animation-delay:  0s; }
.floating-foods span:nth-child(2) { left: 28%; animation-duration: 17s; animation-delay:  4s; }
.floating-foods span:nth-child(3) { left: 50%; animation-duration: 15s; animation-delay:  8s; }
.floating-foods span:nth-child(4) { left: 72%; animation-duration: 18s; animation-delay:  2s; }
.floating-foods span:nth-child(5) { left: 90%; animation-duration: 16s; animation-delay: 11s; }
.floating-foods span:nth-child(6) { left: 40%; animation-duration: 19s; animation-delay: 14s; }
@keyframes float-up {
  0%   { transform: translateY(0) rotate(0deg);        opacity: 0; }
  10%  { opacity: .45; }
  90%  { opacity: .45; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

.shooting-star {
  position: absolute; top: 12%; left: -120px;
  width: 90px; height: 2px;
  background: linear-gradient(90deg, transparent, #fff 50%, transparent);
  border-radius: 50%;
  transform: rotate(20deg);
  opacity: 0;
  animation: shoot 9s linear infinite;
  animation-delay: 4s;
  filter: drop-shadow(0 0 6px #fff);
}
@keyframes shoot {
  0%   { transform: translate(0, 0) rotate(20deg); opacity: 0; }
  4%   { opacity: 1; }
  18%  { transform: translate(115vw, 35vh) rotate(20deg); opacity: 0; }
  100% { opacity: 0; }
}

.ny-badge {
  position: absolute;
  top: 16px; right: 14px;
  width: 64px; height: 64px;
  background: var(--white);
  color: var(--navy);
  border: 3px solid var(--navy);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: 1px; line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transform: rotate(8deg);
  z-index: 5;
  animation: badge-pulse 2.5s ease-in-out infinite;
}
.ny-badge .heart { color: var(--red); font-size: 1.4rem; display: inline-block; animation: heartbeat 1.2s ease-in-out infinite; }
@keyframes badge-pulse { 0%,100% { transform: rotate(8deg) scale(1); } 50% { transform: rotate(12deg) scale(1.06); } }
@keyframes heartbeat   { 0%,100% { transform: scale(1); } 20% { transform: scale(1.35); } 40% { transform: scale(.92); } 60% { transform: scale(1.2); } }
@media (min-width: 600px) {
  .ny-badge { width: 80px; height: 80px; font-size: 1.2rem; top: 24px; right: 24px; }
  .ny-badge .heart { font-size: 1.7rem; }
}

/* ====================================================================== */
/* LIVE WIDGETS                                                           */
/* ====================================================================== */
.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
  margin: 30px 0 50px;
}
.widget {
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(0,0,0,.25));
  border: 1px solid rgba(255,210,63,.2);
  border-radius: 18px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.widget::after {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(255,210,63,.08), transparent 60%);
  pointer-events: none;
}
.widget-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: .85rem; letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.live-dot {
  display: inline-block; width: 8px; height: 8px;
  background: #4dff88; border-radius: 50%;
  box-shadow: 0 0 8px #4dff88;
  animation: live-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes live-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }

.clock-row { display: flex; justify-content: space-around; align-items: center; text-align: center; gap: 10px; }
.clock-cell .clock-flag { font-size: 1.7rem; line-height: 1; }
.clock-time {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 6vw, 2.3rem); letter-spacing: 2px;
  color: var(--white); line-height: 1.1;
  font-variant-numeric: tabular-nums; margin: 4px 0;
}
.clock-place { font-size: .8rem; color: rgba(255,248,231,.7); letter-spacing: 1px; }
.clock-vs { font-family: 'Permanent Marker', cursive; color: var(--red); font-size: 1.2rem; }
.clock-diff { text-align: center; margin-top: 12px; font-size: .85rem; color: var(--gold); letter-spacing: 1px; }

.weather-main { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0; }
.weather-icon { font-size: 3.4rem; line-height: 1; }
.weather-temp {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 8vw, 3rem); color: var(--white);
  letter-spacing: 1px; font-variant-numeric: tabular-nums;
}
.weather-desc  { text-align: center; color: var(--cream); font-size: 1rem; margin-bottom: 4px; }
.weather-extra { text-align: center; color: rgba(255,248,231,.6); font-size: .82rem; letter-spacing: .5px; }

.currency-main {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2rem); letter-spacing: 1px;
  color: var(--white); margin: 10px 0 6px;
  font-variant-numeric: tabular-nums;
}
.currency-main .flag { font-size: 1.6rem; }
.currency-main .rate { color: var(--gold); }
.currency-desc { text-align: center; font-size: .82rem; color: rgba(255,248,231,.6); letter-spacing: .5px; }

.countdown-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 10px; }
.countdown-cell {
  text-align: center;
  background: linear-gradient(180deg, rgba(255,210,63,.18), rgba(255,140,66,.08));
  border-radius: 10px; padding: 10px 4px;
  border: 1px solid rgba(255,210,63,.2);
}
.countdown-cell .n {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem, 5vw, 2rem); color: var(--gold);
  display: block; line-height: 1; font-variant-numeric: tabular-nums;
}
.countdown-cell .u {
  font-size: .65rem; color: rgba(255,248,231,.7);
  text-transform: uppercase; letter-spacing: 1px;
  margin-top: 4px; display: block;
}
.countdown-desc { text-align: center; font-size: .8rem; color: rgba(255,248,231,.6); letter-spacing: .5px; }

.sun-row { display: flex; justify-content: space-around; text-align: center; margin: 10px 0; gap: 10px; }
.sun-cell { flex: 1; }
.sun-cell .lbl { font-size: .9rem; color: rgba(255,248,231,.85); letter-spacing: .5px; }
.sun-cell .v {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2rem); color: var(--gold);
  letter-spacing: 2px; margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

/* ====================================================================== */
/* WEBCAM                                                                 */
/* ====================================================================== */
.webcam-wrap {
  position: relative; max-width: 820px; margin: 30px auto 30px;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  border: 3px solid var(--gold);
}
.webcam-aspect { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.webcam-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: none; padding: 0; cursor: pointer; background: #000;
  overflow: hidden; display: block;
}
.webcam-cover img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .55; transition: opacity .3s ease, transform .6s ease;
}
.webcam-cover:hover img { opacity: .8; transform: scale(1.04); }
.play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 86px; height: 86px;
  background: var(--red); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
  animation: play-pulse 2s ease-in-out infinite;
}
@keyframes play-pulse {
  0%,100% { transform: translate(-50%,-50%) scale(1);    box-shadow: 0 8px 24px rgba(0,0,0,.6), 0 0 0 0 rgba(230,57,70,.5); }
  50%     { transform: translate(-50%,-50%) scale(1.08); box-shadow: 0 8px 24px rgba(0,0,0,.6), 0 0 0 18px rgba(230,57,70,0); }
}
.webcam-label {
  position: absolute; top: 16px; left: 16px;
  background: rgba(230,57,70,.95); color: var(--white);
  font-family: 'Bebas Neue', sans-serif; letter-spacing: 2px;
  font-size: 1rem; padding: 6px 14px; border-radius: 6px;
  display: flex; align-items: center; gap: 8px;
}
.webcam-label::before {
  content: ''; width: 9px; height: 9px;
  background: #fff; border-radius: 50%;
  animation: live-pulse 1.5s ease-in-out infinite;
}
.webcam-hint {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.7); color: var(--cream);
  padding: 6px 14px; border-radius: 20px;
  font-size: .85rem; pointer-events: none;
  backdrop-filter: blur(4px);
}
.webcam-aspect iframe { width: 100%; height: 100%; border: none; }
.webcam-fallback {
  text-align: center;
  margin: 0 0 40px;
  color: rgba(255,248,231,.6); font-size: .9rem;
}
.webcam-fallback span { margin-right: 6px; }
.webcam-fallback a {
  color: var(--gold); text-decoration: none;
  margin: 0 6px; padding: 4px 10px;
  border: 1px solid rgba(255,210,63,.3); border-radius: 8px;
  display: inline-block; margin-top: 6px;
  transition: all .2s ease;
}
.webcam-fallback a:hover { background: rgba(255,210,63,.1); border-color: var(--gold); }

/* ====================================================================== */
/* RECIPES                                                                */
/* ====================================================================== */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 18px; margin: 30px 0 50px;
}
.recipe {
  background: linear-gradient(180deg, rgba(255,140,66,.08), rgba(0,0,0,.2));
  border: 2px solid rgba(255,140,66,.25);
  border-radius: 18px; padding: 20px;
  text-align: center; position: relative; overflow: hidden;
}
.recipe-emoji {
  font-size: 4.5rem; line-height: 1; display: block;
  margin: 4px 0 8px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.4));
  transition: transform .4s ease;
}
.recipe:hover .recipe-emoji { transform: scale(1.15) rotate(-5deg); }
.recipe h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem; color: var(--white);
  letter-spacing: 1px; margin-bottom: 6px;
}
.recipe .tag {
  display: inline-block;
  background: var(--red); color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: .75rem; letter-spacing: 2px;
  padding: 3px 10px; border-radius: 20px;
  margin-bottom: 12px;
}
.recipe p.lead { font-size: .9rem; color: rgba(255,248,231,.85); margin-bottom: 14px; }
.recipe ol { text-align: left; padding-left: 22px; margin: 0; }
.recipe ol li { font-size: .88rem; color: rgba(255,248,231,.8); margin-bottom: 6px; line-height: 1.4; }
.recipe ol li strong { color: var(--gold); }

/* ====================================================================== */
/* MANHATTAN MAP                                                          */
/* ====================================================================== */
.map-wrap {
  display: grid; grid-template-columns: 1fr;
  gap: 20px; margin: 30px 0 50px; align-items: start;
}
@media (min-width: 720px) { .map-wrap { grid-template-columns: 320px 1fr; } }
.map-svg-box {
  background: linear-gradient(180deg, rgba(0,217,255,.05), rgba(10,26,58,.3));
  border: 1px solid rgba(0,217,255,.2);
  border-radius: 18px; padding: 16px;
  position: relative;
}
.map-svg-box svg { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto; }
.map-svg-box .landmark { cursor: pointer; }
.map-svg-box .landmark circle { transition: r .2s ease, fill .2s ease, filter .2s ease; }
.map-svg-box .landmark:hover circle,
.map-svg-box .landmark.active circle { filter: drop-shadow(0 0 8px var(--gold)); }
.map-svg-box .landmark.active circle { fill: var(--gold); }
.map-info {
  background: linear-gradient(135deg, rgba(255,210,63,.08), rgba(255,140,66,.04));
  border: 2px solid rgba(255,210,63,.25);
  border-radius: 18px; padding: 24px;
  min-height: 160px;
  display: flex; flex-direction: column; justify-content: center;
}
.map-info .placeholder { text-align: center; color: rgba(255,248,231,.6); font-style: italic; }
.map-info .placeholder::before {
  content: '👆'; display: block; font-size: 2.5rem; margin-bottom: 10px;
}
.map-info h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem; color: var(--gold);
  letter-spacing: 1px; margin-bottom: 4px;
}
.map-info .badge {
  display: inline-block;
  background: var(--red); color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: .75rem; letter-spacing: 2px;
  padding: 3px 10px; border-radius: 20px;
  margin-bottom: 12px;
}
.map-info p { color: rgba(255,248,231,.85); font-size: .95rem; }

/* ====================================================================== */
/* MEMORY GAME                                                            */
/* ====================================================================== */
.mem-board {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin: 30px auto 16px;
  perspective: 1000px; max-width: 560px;
}
@media (max-width: 480px) { .mem-board { grid-template-columns: repeat(3, 1fr); } }
.mem-card {
  aspect-ratio: 3/4; position: relative;
  cursor: pointer; transform-style: preserve-3d;
  transition: transform .5s ease;
}
.mem-card.flipped, .mem-card.matched { transform: rotateY(180deg); }
.mem-card.matched { animation: matched-glow .6s ease; }
@keyframes matched-glow {
  0%   { transform: rotateY(180deg) scale(1); }
  50%  { transform: rotateY(180deg) scale(1.08); }
  100% { transform: rotateY(180deg) scale(1); }
}
.mem-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  font-size: clamp(.85rem, 2.6vw, 1.15rem);
  line-height: 1.1;
}
.mem-back {
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: var(--white); font-size: 2rem;
  border: 2px solid rgba(255,255,255,.2);
}
.mem-back::after { content: '🗽'; }
.mem-front { transform: rotateY(180deg); color: var(--navy); border: 2px solid var(--gold); }
.mem-front.en { background: linear-gradient(135deg, #ffd23f, #ff8c42); }
.mem-front.it { background: linear-gradient(135deg, #4dff88, #00d9ff); }
.mem-card.matched .mem-front { border-color: #fff; box-shadow: 0 0 16px rgba(255,255,255,.4); }
.mem-status {
  display: flex; justify-content: center; gap: 20px;
  flex-wrap: wrap; align-items: center;
  margin-bottom: 40px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px; color: var(--cream); font-size: 1.1rem;
}
.mem-status strong { color: var(--gold); font-size: 1.4rem; }
.mem-status button {
  font: inherit; letter-spacing: 2px;
  background: var(--red); color: var(--white);
  border: none; border-radius: 10px;
  padding: 8px 18px; cursor: pointer;
  transition: transform .2s ease;
}
.mem-status button:hover { transform: scale(1.05); }
.mem-win {
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: var(--gold); letter-spacing: 2px;
  margin: 0 0 30px; min-height: 1.4em;
}
.mem-win.show { animation: bounce-in .6s ease; }
@keyframes bounce-in {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ====================================================================== */
/* CONSTELLATIONS                                                         */
/* ====================================================================== */
.constel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 18px; margin: 30px 0 50px;
}
.constel {
  background: linear-gradient(180deg, #0a1a3a 0%, #050d22 100%);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px; padding: 18px;
  position: relative; overflow: hidden;
}
.constel-sky {
  width: 100%; aspect-ratio: 4/3;
  background: radial-gradient(ellipse at center, rgba(106,90,205,.2), rgba(5,13,34,.6));
  border-radius: 10px; position: relative; margin-bottom: 12px;
}
.constel-sky svg { width: 100%; height: 100%; display: block; }
.constel-sky .c-star { fill: #fff; animation: c-twinkle 2.5s ease-in-out infinite; }
.constel-sky .c-line { stroke: rgba(255,210,63,.5); stroke-width: 1.2; fill: none; stroke-dasharray: 3 3; }
@keyframes c-twinkle { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.constel h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; color: var(--gold);
  letter-spacing: 1px; margin-bottom: 4px;
}
.constel .season {
  display: inline-block;
  background: rgba(0,217,255,.15); color: #b4ecff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: .7rem; letter-spacing: 2px;
  padding: 2px 8px; border-radius: 12px;
  margin-bottom: 8px;
}
.constel p { color: rgba(255,248,231,.8); font-size: .9rem; }
.constel strong { color: var(--gold); }

/* ====================================================================== */
/* TIMELINE                                                               */
/* ====================================================================== */
.timeline {
  position: relative; max-width: 760px;
  margin: 40px auto 30px; padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute; left: 20px; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--red), var(--gold));
  border-radius: 3px;
}
@media (min-width: 720px) {
  .timeline::before { left: 50%; transform: translateX(-50%); }
}
.tl-item { position: relative; padding: 12px 0 12px 50px; margin-bottom: 18px; }
@media (min-width: 720px) {
  .tl-item { width: 50%; padding: 12px 30px; }
  .tl-item:nth-child(odd)  { margin-left: 0;   text-align: right; padding-right: 50px; }
  .tl-item:nth-child(even) { margin-left: 50%; text-align: left;  padding-left: 50px; }
}
.tl-dot {
  position: absolute; left: 12px; top: 16px;
  width: 18px; height: 18px;
  background: var(--gold);
  border: 3px solid var(--navy-deep);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold);
}
@media (min-width: 720px) { .tl-dot { left: 50%; transform: translateX(-50%); } }
.tl-year {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem; color: var(--gold);
  letter-spacing: 2px; display: block; line-height: 1; margin-bottom: 4px;
}
.tl-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem; color: var(--white);
  letter-spacing: 1px; display: block; margin-bottom: 4px;
}
.tl-text { font-size: .88rem; color: rgba(255,248,231,.8); }

/* ====================================================================== */
/* VOCABULARY CARDS                                                       */
/* ====================================================================== */
.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px; margin: 30px 0 30px;
}
.vocab-card {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(0,217,255,.08), rgba(77,255,136,.03));
  border: 2px solid rgba(0,217,255,.3);
  border-radius: 14px; padding: 14px 16px;
  color: var(--cream); font: inherit;
  cursor: pointer; text-align: left;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .vocab-card:hover {
    transform: translateY(-2px);
    border-color: #00d9ff;
    background: linear-gradient(135deg, rgba(0,217,255,.15), rgba(77,255,136,.08));
  }
}
.vocab-card:active { transform: scale(.98); }
.vocab-en {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem; color: var(--gold);
  letter-spacing: 1px; min-width: 110px;
}
.vocab-arrow { color: rgba(255,255,255,.35); font-size: 1.2rem; }
.vocab-it { flex: 1; font-size: .95rem; color: var(--cream); }
.vocab-speaker { margin-left: auto; font-size: 1.5rem; opacity: .65; flex-shrink: 0; }
.vocab-card.speaking {
  background: linear-gradient(135deg, rgba(0,217,255,.3), rgba(77,255,136,.15));
  border-color: #00d9ff;
  box-shadow: 0 0 20px rgba(0,217,255,.4);
}
.vocab-card.speaking .vocab-speaker {
  opacity: 1;
  animation: speaker-pulse .5s ease-in-out infinite alternate;
}
@keyframes speaker-pulse {
  from { transform: scale(1)   rotate(-5deg); }
  to   { transform: scale(1.3) rotate(5deg);  }
}
.phrase-card {
  display: block; width: 100%;
  background: linear-gradient(135deg, rgba(255,210,63,.08), rgba(255,140,66,.03));
  border: 2px solid rgba(255,210,63,.3);
  border-radius: 14px; padding: 16px 18px;
  color: var(--cream); font: inherit;
  cursor: pointer; text-align: left;
  margin-bottom: 10px; position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease, border-color .2s ease;
}
.phrase-card:active { transform: scale(.99); }
.phrase-card.speaking {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(255,210,63,.2), rgba(255,140,66,.1));
  box-shadow: 0 0 20px rgba(255,210,63,.3);
}
.phrase-en {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem; color: var(--gold);
  letter-spacing: 1px; display: block; padding-right: 30px;
}
.phrase-it {
  font-size: .95rem; color: rgba(255,248,231,.85);
  display: block; margin-top: 4px; font-style: italic;
}
.phrase-card .vocab-speaker { position: absolute; top: 14px; right: 14px; }
.audio-hint {
  text-align: center; font-size: .85rem;
  color: rgba(255,210,63,.7); letter-spacing: 1px;
  margin: -10px 0 20px;
}

/* ====================================================================== */
/* TRIVIA / DID YOU KNOW                                                  */
/* ====================================================================== */
.trivia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px; margin: 30px 0 50px;
}
.trivia {
  background: linear-gradient(135deg, rgba(0,217,255,.08), rgba(77,255,136,.04));
  border-left: 4px solid #00d9ff;
  border-radius: 4px 14px 14px 4px;
  padding: 20px 18px; position: relative;
}
.trivia:nth-child(2n) {
  background: linear-gradient(135deg, rgba(255,140,66,.08), rgba(255,210,63,.04));
  border-left-color: var(--orange);
}
.trivia:nth-child(3n) {
  background: linear-gradient(135deg, rgba(255,77,109,.08), rgba(255,140,66,.04));
  border-left-color: var(--pink);
}
.trivia .tag {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px; color: var(--gold);
  font-size: .75rem; margin-bottom: 8px;
}
.trivia h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem; color: var(--white);
  letter-spacing: 1px; margin-bottom: 8px; line-height: 1.2;
}
.trivia p { font-size: .92rem; color: rgba(255,248,231,.8); }
.trivia strong { color: var(--gold); }

/* ====================================================================== */
/* HEIGHTS BAR CHART                                                      */
/* ====================================================================== */
.heights {
  display: flex; justify-content: space-around; align-items: flex-end;
  gap: 8px; height: 360px;
  background: linear-gradient(180deg, rgba(255,210,63,.04) 0%, rgba(230,57,70,.04) 100%);
  border: 1px solid rgba(255,210,63,.15);
  border-radius: 20px; padding: 30px 12px 60px;
  margin: 30px 0 60px; position: relative;
}
.heights::before {
  content: 'ALTEZZE A CONFRONTO';
  position: absolute; top: 8px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 3px; color: var(--gold); font-size: .8rem;
}
.tower {
  flex: 1; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center;
  height: 100%; position: relative; max-width: 80px;
}
.tower-bar {
  width: 100%; max-width: 50px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--orange) 50%, var(--red) 100%);
  border-radius: 6px 6px 2px 2px;
  position: relative;
  transform-origin: bottom; transform: scaleY(0);
  transition: transform 1.4s cubic-bezier(.5,1.5,.5,1);
  box-shadow: 0 0 20px rgba(255,140,66,.3);
}
.heights.visible .tower-bar { transform: scaleY(1); }
.heights.visible .tower:nth-child(2) .tower-bar { transition-delay: .1s; }
.heights.visible .tower:nth-child(3) .tower-bar { transition-delay: .2s; }
.heights.visible .tower:nth-child(4) .tower-bar { transition-delay: .3s; }
.heights.visible .tower:nth-child(5) .tower-bar { transition-delay: .4s; }
.tower-bar::after {
  content: attr(data-h);
  position: absolute; top: -24px; left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(.7rem, 2vw, .95rem);
  letter-spacing: 1px; white-space: nowrap;
}
.tower-name {
  position: absolute; bottom: -45px; left: 0; right: 0;
  text-align: center;
  font-size: clamp(.6rem, 1.8vw, .8rem);
  color: rgba(255,248,231,.85);
  line-height: 1.2;
}

/* ====================================================================== */
/* WOW NUMBERS                                                            */
/* ====================================================================== */
.wow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 14px; margin: 30px 0 50px;
}
.wow {
  text-align: center; padding: 24px 16px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  border-radius: 14px; color: var(--white);
  transform: rotate(-1deg);
  transition: transform .3s ease;
  box-shadow: 0 8px 24px rgba(230,57,70,.25);
}
.wow:nth-child(even) {
  background: linear-gradient(135deg, var(--navy), #1a3a5a);
  transform: rotate(1deg);
  box-shadow: 0 8px 24px rgba(10,26,58,.4);
}
.wow:nth-child(3n) {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(255,140,66,.3);
}
@media (hover: hover) { .wow:hover { transform: rotate(0) scale(1.05); } }
.wow-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 1px; line-height: 1;
  margin-bottom: 6px; display: block;
}
.wow-label { font-size: .9rem; font-weight: 600; }

/* ====================================================================== */
/* QUIZ                                                                   */
/* ====================================================================== */
.quiz { margin: 30px 0 50px; }
.quiz-question {
  background: linear-gradient(135deg, rgba(255,210,63,.08), rgba(255,255,255,.02));
  border: 2px dashed rgba(255,210,63,.35);
  border-radius: 18px; padding: 24px 20px;
  margin-bottom: 18px;
}
.quiz-question h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  color: var(--white); letter-spacing: 1px;
  margin-bottom: 16px; line-height: 1.3;
}
.quiz-question h3::before { content: '❓ '; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-options button {
  font: inherit; text-align: left;
  padding: 12px 16px;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 12px;
  color: var(--cream); cursor: pointer;
  transition: all .2s ease; font-size: .98rem;
}
.quiz-options button:not(:disabled):hover {
  background: rgba(255,210,63,.12);
  border-color: var(--gold);
  transform: translateX(4px);
}
.quiz-options button:disabled { cursor: default; }
.quiz-options button.right {
  background: rgba(77,255,136,.18);
  border-color: #4dff88; color: #b4ffcc;
}
.quiz-options button.right::after { content: ' ✅'; }
.quiz-options button.wrong {
  background: rgba(230,57,70,.18);
  border-color: var(--red); color: #ffb8c0;
  animation: shake .4s ease;
}
.quiz-options button.wrong::after { content: ' ❌'; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

.quiz-score {
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  color: var(--gold); letter-spacing: 2px;
  margin-top: 20px; min-height: 1.5em;
}
.quiz-score.win { animation: bounce-in .6s ease; }

.quiz-progress {
  position: sticky; top: 64px; z-index: 4;
  background: rgba(5,13,34,.92);
  backdrop-filter: blur(6px);
  padding: 10px 14px; border-radius: 12px;
  margin: -10px 0 20px;
  border: 1px solid rgba(255,210,63,.2);
  display: flex; align-items: center; gap: 12px;
}
.quiz-progress-track { flex: 1; height: 10px; background: rgba(255,255,255,.08); border-radius: 5px; overflow: hidden; }
.quiz-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--red));
  border-radius: 5px;
  transition: width .4s ease;
  box-shadow: 0 0 12px rgba(255,210,63,.5);
}
.quiz-progress-text {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px; color: var(--gold);
  font-size: .9rem; white-space: nowrap;
  min-width: 110px; text-align: right;
}

/* Quiz categories (chips) */
.quiz-cats {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin: 0 0 24px;
}
.quiz-cat {
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,210,63,.25);
  border-radius: 20px;
  padding: 8px 14px;
  cursor: pointer; font: inherit;
  color: var(--cream);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1.5px; font-size: .9rem;
  transition: all .2s ease;
  white-space: nowrap;
}
.quiz-cat:hover { border-color: var(--gold); background: rgba(255,210,63,.1); }
.quiz-cat.active {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: var(--navy); border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(255,140,66,.3);
}

/* ====================================================================== */
/* PHOTO GALLERY (album.html)                                             */
/* ====================================================================== */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  margin: 30px 0 50px;
}
.photo-item {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.2));
  border: 1px solid rgba(255,210,63,.18);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
@media (hover: hover) {
  .photo-item:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 14px 30px rgba(0,0,0,.3);
  }
}
.photo-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy), #1a2a4a);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.photo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
  /* Fallback styling if image fails to load: alt text becomes small caption, not giant */
  font-size: .85rem;
  color: rgba(255,248,231,.5);
  text-align: center;
  padding: 10px;
}
.card.has-img .card-thumb img {
  font-size: .85rem;
  color: rgba(255,248,231,.5);
  text-align: center;
  padding: 10px;
}
@media (hover: hover) {
  .photo-item:hover .photo-img img { transform: scale(1.06); }
}
.photo-img .photo-loading {
  opacity: .4;
  animation: photo-pulse 1.5s ease-in-out infinite;
}
@keyframes photo-pulse { 0%,100% { opacity: .3; } 50% { opacity: .7; } }
.photo-body {
  padding: 14px 16px 16px;
}
.photo-body h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 4px;
  line-height: 1.1;
}
.photo-body .tag {
  font-family: 'Bebas Neue', sans-serif;
  font-size: .7rem;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 6px;
  display: block;
}
.photo-body p {
  font-size: .88rem;
  color: rgba(255,248,231,.78);
  line-height: 1.4;
}
.photo-credits {
  text-align: center;
  margin: 20px 0 0;
  font-size: .8rem;
  color: rgba(255,248,231,.5);
}
.photo-credits a { color: rgba(255,210,63,.7); text-decoration: none; }
.photo-credits a:hover { color: var(--gold); text-decoration: underline; }

/* Tap hint */
.photo-item { cursor: pointer; position: relative; }
.photo-item::after {
  content: '🔍';
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,.6);
  color: var(--gold);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.photo-item:hover::after { opacity: 1; }
@media (hover: none) { .photo-item::after { opacity: .8; } }

/* ====================================================================== */
/* LIGHTBOX MODAL                                                         */
/* ====================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5,13,34,.95);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: lb-fade-in .25s ease;
}
.lightbox.open { display: flex; }
@keyframes lb-fade-in { from { opacity: 0; } to { opacity: 1; } }
.lb-card {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  border: 2px solid var(--gold);
  border-radius: 18px;
  max-width: 900px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  animation: lb-slide-up .35s cubic-bezier(.5,1.5,.5,1);
  box-shadow: 0 30px 80px rgba(0,0,0,.7);
}
@keyframes lb-slide-up { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (min-width: 760px) {
  .lb-card { grid-template-columns: 1fr 1fr; max-height: 85vh; }
}
.lb-img-wrap {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  min-height: 260px;
  max-height: 50vh;
}
@media (min-width: 760px) {
  .lb-img-wrap { border-radius: 16px 0 0 16px; max-height: none; }
}
.lb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 50vh;
}
@media (min-width: 760px) {
  .lb-img-wrap img { max-height: 85vh; }
}
.lb-text {
  padding: 24px 22px 28px;
  overflow-y: auto;
}
.lb-text .badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: .75rem;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.lb-text h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--gold);
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 14px;
}
.lb-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.lb-meta span {
  background: rgba(255,210,63,.12);
  border: 1px solid rgba(255,210,63,.3);
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: .8rem;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 8px;
}
.lb-desc {
  color: var(--cream);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 18px;
}
.lb-trivia-title {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--orange);
  letter-spacing: 2px;
  font-size: 1rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lb-trivia {
  background: linear-gradient(135deg, rgba(255,140,66,.12), rgba(255,210,63,.05));
  border-left: 3px solid var(--orange);
  padding: 14px 16px;
  border-radius: 4px 12px 12px 4px;
  color: rgba(255,248,231,.9);
  font-size: .95rem;
  line-height: 1.5;
}
.lb-trivia strong { color: var(--gold); }
.lb-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
  transition: transform .2s ease;
}
.lb-close:hover { transform: rotate(90deg) scale(1.1); }
.lb-nav {
  position: absolute;
  top: 50%;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.6);
  color: var(--gold);
  font-size: 1.6rem;
  cursor: pointer;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  backdrop-filter: blur(4px);
  transition: background .2s ease, transform .2s ease;
}
.lb-nav:hover { background: rgba(230,57,70,.9); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb-next:hover { transform: translateY(-50%) translateX(3px); }
@media (max-width: 600px) {
  .lb-nav { width: 36px; height: 36px; font-size: 1.3rem; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}
body.lb-open { overflow: hidden; }

/* "Cippocla è stato qui" mini box */
.cippo-box {
  background: linear-gradient(135deg, rgba(230,57,70,.12), rgba(255,140,66,.06));
  border-left: 4px solid var(--red);
  border-radius: 4px 14px 14px 4px;
  padding: 16px 20px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cippo-box .ic {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.cippo-box .txt h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.cippo-box .txt p {
  color: var(--cream);
  font-size: .95rem;
  margin: 0;
}
.cippo-box .txt p strong { color: var(--gold); }

/* ====================================================================== */
/* SUBWAY                                                                 */
/* ====================================================================== */
.subway {
  overflow: hidden; height: 60px;
  background: #000;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  position: relative; margin: 30px 0 0;
}
.train {
  position: absolute; bottom: 8px;
  font-size: 2.5rem; white-space: nowrap;
  animation: train-go 12s linear infinite;
  letter-spacing: -8px;
}
@keyframes train-go { from { left: 100%; } to { left: -400px; } }
.subway::before {
  content: ''; position: absolute;
  top: 50%; left: 0; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 30px, transparent 30px 60px);
  opacity: .4;
}

/* ====================================================================== */
/* FAMOUS WORKS (musei page)                                              */
/* ====================================================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px; margin: 20px 0 40px;
}
.work {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.2));
  border: 1px solid rgba(255,210,63,.2);
  border-radius: 14px;
  text-align: center;
  overflow: hidden;
  padding: 0;
}
.work-photo {
  display: block;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy), #1a2a4a);
  overflow: hidden;
}
.work-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s ease;
  font-size: .82rem;
  color: rgba(255,248,231,.5);
  padding: 8px;
}
@media (hover: hover) {
  .work:hover .work-photo img { transform: scale(1.05); }
}
.work h5, .work .who, .work p { padding-left: 16px; padding-right: 16px; }
.work h5 { padding-top: 14px; }
.work p { padding-bottom: 18px; }
.work-emoji {
  font-size: 3rem; display: block; margin-bottom: 10px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.4));
}
.work h5 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem; color: var(--gold);
  letter-spacing: 1px; margin-bottom: 4px;
}
.work .who {
  font-size: .78rem; color: rgba(255,248,231,.55);
  font-style: italic; margin-bottom: 8px;
}
.work p { font-size: .85rem; color: rgba(255,248,231,.8); }

/* ====================================================================== */
/* BROADWAY (cinema page)                                                 */
/* ====================================================================== */
.broadway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px; margin: 20px 0 40px;
}
.musical {
  background: linear-gradient(135deg, rgba(255,77,109,.1), rgba(255,140,66,.05));
  border: 2px solid rgba(255,77,109,.3);
  border-radius: 14px; padding: 18px 16px;
  position: relative; overflow: hidden;
}
.musical::before {
  content: '🎭';
  position: absolute; top: -12px; right: -12px;
  font-size: 4rem; opacity: .15;
  transform: rotate(15deg);
}
.musical h5 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem; color: var(--gold);
  letter-spacing: 1px; margin-bottom: 4px;
}
.musical .since { font-size: .75rem; color: var(--red); font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; }
.musical p { font-size: .9rem; color: rgba(255,248,231,.8); margin-top: 8px; }

/* ====================================================================== */
/* FOOTER                                                                 */
/* ====================================================================== */
footer {
  background: var(--navy);
  padding: 40px 20px 30px;
  text-align: center;
  border-top: 4px solid var(--red);
}
footer .icons { font-size: 2rem; margin-bottom: 12px; letter-spacing: 8px; }
footer p { color: rgba(255,248,231,.6); font-size: .9rem; margin-bottom: 6px; }
footer .domain {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 3px;
  color: var(--gold);
  font-size: 1.2rem;
}

/* ====================================================================== */
/* RESPONSIVE FINE-TUNING                                                 */
/* ====================================================================== */
@media (max-width: 600px) {
  .kicker { font-size: 1rem; }
  .subtitle { letter-spacing: 2px; }
  .quote-box { transform: rotate(0); padding: 28px 20px; }
  .quote-box::before { font-size: 4.5rem; top: -12px; left: 14px; }
  .flag-bar { height: 6px; background: repeating-linear-gradient(90deg, var(--red) 0 30px, var(--white) 30px 60px); }
  .taxi-strip { height: 70px; }
  .taxi { font-size: 2.4rem; }
  footer .icons { font-size: 1.6rem; letter-spacing: 6px; }
  .play-btn { width: 70px; height: 70px; font-size: 1.6rem; }
  .webcam-label { font-size: .8rem; padding: 5px 10px; }
  .webcam-hint { font-size: .75rem; padding: 5px 10px; }
  .clock-vs { font-size: 1rem; }
  .countdown-cell { padding: 8px 2px; }
  .countdown-cell .n { font-size: 1.5rem; }
  .countdown-cell .u { font-size: .55rem; }
  .ny-badge { top: 10px; right: 10px; width: 56px; height: 56px; font-size: .85rem; border-width: 2px; }
  .ny-badge .heart { font-size: 1.2rem; }
}
@media (max-width: 360px) {
  .clock-row { gap: 4px; }
  .clock-vs { display: none; }
  .clock-time { font-size: 1.3rem; letter-spacing: 1px; }
  .countdown-row { gap: 4px; }
  .currency-main { gap: 6px; font-size: 1.3rem; }
  .currency-main .flag { font-size: 1.3rem; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .photo-wrap { width: min(45vw, 320px); }
  .sky { padding-top: 24px; }
  .hero h1, h1.hero-title { font-size: clamp(2.5rem, 8vw, 5rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .floating-foods { display: none; }
  .shooting-star  { display: none; }
}
