:root{
  --gold:#d4af37;
  --gold-soft:#e5c76b;
}

/* RESET */
* { margin:0; padding:0; box-sizing:border-box; }

/* BASE */
body {
  font-family: "Copperplate", serif;
  background: #0a0a0a;
  color: #f1f1f1;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

/* HERO */
.hero {
  width: 100%;
  max-width: 1200px;
  padding: 80px 40px;
  position: relative;
}

/* LOGO SFONDO */
.background-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
}

.background-logo img {
  width: 1200px;
}

/* CONTENT */
.content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* LOGO */
.logo-top { font-size:1.4rem; letter-spacing:3px; }
.logo-bottom { font-size:5.5rem; letter-spacing:6px; }
.subtitle { font-size:1rem; margin-top:10px; letter-spacing:2px; font-style:italic; }

.logo-section::after{
  content:"";
  display:block;
  width:120px;
  height:1px;
  margin:20px auto 0;
  background:linear-gradient(to right, transparent, var(--gold), transparent);
}

/* MENU */
.main-links { display:flex; flex-direction:column; gap:28px; margin:60px 0; }
.main-links a {
  font-size:2.6rem;
  font-weight:bold;
  letter-spacing:3px;
  text-decoration:none;
  color:#f2f2f2;
  padding:12px 16px;
  border-radius:6px;
  transition: background 0.25s ease;
}

.main-links a:hover { 
  color:var(--gold);
  letter-spacing:4px;
  transition: all 0.25s ease;
}

/* DROPDOWN */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  width:420px;
  background: rgba(20,20,20,0.95);
  border-radius:18px;
  box-shadow:0 6px 25px rgba(0,0,0,0.18);
  opacity:0;
  pointer-events:none;
  z-index:300;
}
.dropdown.active .dropdown-menu { opacity:1; pointer-events:auto; }
.menu-item {
  display:block;
  padding:14px 0;
  font-size:1.6rem;
  letter-spacing:2px;
  text-decoration:none;
  color:#f2f2f2;
  transition: background 0.25s ease;
}

/* INFO */
.info { font-size:1.05rem; line-height:1.8; margin-bottom:40px; }
.hours { display:flex; gap:15px; justify-content:center; margin-top:30px;}

.hours p {
  line-height:1.3;  
  margin:0;   
}

/* FOOTER */
.footer { 
  border-top:1px solid rgba(212,175,55,0.45);
  padding-top:20px; 
}
.footer-links { display:flex; gap:40px; justify-content:center; flex-wrap:wrap; margin-bottom:12px; }
.footer-links a { color:#f2f2f2; text-decoration:none; font-weight:bold; letter-spacing:2px; }
.footer-links a:hover { opacity:0.6; }

/* MOBILE (<768px) */
@media (max-width:768px) {

  body { align-items:flex-start; }
  .hero { padding:40px 20px; }
  .logo-bottom { font-size:3.2rem; }
  .main-links a { font-size:1.4rem; }
  .main-links a:hover {
    color: var(--gold);
    text-shadow: 0 0 6px rgba(212,175,55,0.35);
  }
  .main-links a:active{
    color: var(--gold);
    transform: scale(1.03);
  }

  .logo-section::after{
  width:160px;
  height:2px;
}

  /* Dropdown fixed overlay verticale full-width */
  .dropdown-menu {
    position: fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:100vw;
    height:auto;
    border-radius:0;
    box-shadow:0 10px 30px rgba(0,0,0,0.25);
    display:flex;
    flex-direction:column;
  }

  .menu-item {
    width:100%;
    font-size:1.4rem;
    padding:18px 0;
    text-align:center;
  }

  /* Highlight full-width */
.menu-item.highlight{
  background: rgba(212,175,55,0.12);
  color:var(--gold);
}

  .hours { flex-direction:column; gap:1px; }
  .footer p { font-size:0.8rem; padding:0 10px; }
}

/* =========================
   COOKIE GDPR POPUP
========================= */

#cookie-overlay {
  position: fixed; 
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  z-index: 999999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto; /* scroll interno se popup troppo alto */
}

#cookie-popup {
  background: #111;
  color: #fff;
  width: 100%;
  max-width: 480px;
  padding: 28px 22px;
  border-radius: 14px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.7);
  position: relative;
  animation: fadeInPopup 0.35s ease;
  text-align: left;
  transform: none !important; /* fix Safari iOS */
  font-family: "Copperplate", serif;
}

/* Pulsante chiudi */
#cookie-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 22px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.25s ease;
}
#cookie-close:hover { color: #fff; }

/* Titolo e testo */
#cookie-popup h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 20px;
  color: #d4af37; /* oro elegante */
}

#cookie-popup p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

#cookie-popup a {
  color: #d4af37;
  text-decoration: underline;
}

/* Bottoni */
#cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#cookie-buttons button,
#save-preferences {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Accetta */
#accept-all { background: #d4af37; color: #000; }
#accept-all:hover { background: #b8962e; }

/* Rifiuta */
#reject-all { background: #333; color: #fff; }
#reject-all:hover { background: #444; }

/* Personalizza */
#customize { background: transparent; border: 1px solid #d4af37; color: #d4af37; }
#customize:hover { background: #d4af37; color: #000; }

/* Preferenze */
#cookie-preferences {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #333;
  font-size: 13px;
}

#cookie-preferences input[type="checkbox"] {
  margin-right: 6px;
  accent-color: #d4af37;
}

/* Animazione popup */
@keyframes fadeInPopup {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive iPhone */
@media (max-width: 480px) {
  #cookie-popup { max-width: 100%; }
  #cookie-buttons { flex-direction: column; }
  #cookie-buttons button { width: 100%; }
}

/* =========================
   VIDEO OVERLAY
========================= */

#video-overlay {
  display: none; /* nascosto di default */
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background: rgba(0,0,0,0.9);
  z-index: 999998;
}

#video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

#video-container video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;

  /* migliora rendering su mobile senza errori VSCode */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

#video-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  transition: background 0.25s ease;
}

#video-close:hover {
  background: rgba(212,175,55,0.9); /* oro */
  color: #000;
}

@keyframes fadeInVideo {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width:768px) {
  #video-container {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    padding: 0 10px; /* evita che tocchi i bordi */
  }

  #video-container video {
    width: 100%;
    height: auto;
    max-height: 70vh;       /* mantiene proporzioni su mobile */
    object-fit: contain;    /* niente zoom */
  }
}
