/* ============================================
   RIAN Restaurant & Cafè — Stylesheet
   Liquid Glass + Apple Style + Helvetica
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #080808;
  --amber: #c8923a;
  --amber-light: #e8b060;
  --white: #f5f0e8;
  --white-dim: rgba(245, 240, 232, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: rgba(0, 0, 0, 0.4);
  --blur: blur(24px);
  --blur-light: blur(12px);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
}

/* ============ NAVBAR ============ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 8, 0.4);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  height: 36px;
  filter: invert(1);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--white-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  color: var(--white-dim) !important;
  font-size: 13px !important;
  letter-spacing: 0.12em !important;
  transition: color 0.3s ease !important;
}

.nav-cta:hover {
  color: var(--white) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============ HERO ============ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.75;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.45) 0%,
    rgba(8, 8, 8, 0.55) 40%,
    rgba(8, 8, 8, 0.75) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 24px;
}

.hero-logo {
  width: 400px;
  max-width: 80vw;
  margin-bottom: 40px;
  filter: invert(1) drop-shadow(0 4px 32px rgba(0,0,0,0.9));
}

.hero-tagline {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 48px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-glass {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255,255,255,0.25);
}

/* Booking dropdown */
.booking-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.booking-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: rgba(20, 15, 10, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  z-index: 200;
  animation: dropFadeIn 0.18s ease;
}

.booking-dropdown.open {
  display: block;
}

@keyframes dropFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.booking-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.15s;
}

.booking-dropdown-item:hover {
  background: rgba(255,255,255,0.1);
}

.booking-dropdown-item + .booking-dropdown-item {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.btn-amber {
  background: rgba(200, 146, 58, 0.85);
  border-color: rgba(232, 176, 96, 0.5);
  color: var(--black);
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(200, 146, 58, 0.3),
              inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-amber:hover {
  background: rgba(200, 146, 58, 1);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200, 146, 58, 0.45),
              inset 0 1px 0 rgba(255,255,255,0.3);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white-dim);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--white-dim), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}


/* ============ SECTIONS ============ */

section {
  padding: 120px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}

.section-text {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--white-dim);
  max-width: 560px;
}

/* ============ CHI SIAMO ============ */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: brightness(0.9) saturate(1.1);
}

.about-glass-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 20px 60px var(--glass-shadow);
}

.about-glass-card .stat-number {
  font-size: 36px;
  font-weight: 300;
  color: var(--amber-light);
  line-height: 1;
}

.about-glass-card .stat-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-top: 6px;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: var(--white-dim);
  font-weight: 300;
}

.value-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* ============ LA NOSTRA STORIA ============ */

.storia-section {
  max-width: 800px;
  margin: 0 auto;
}

.storia-intro {
  margin-bottom: 80px;
}

.storia-intro .section-text {
  max-width: 100%;
  font-size: 18px;
  line-height: 1.8;
}

.storia-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 48px;
  margin-bottom: 80px;
}

.storia-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, var(--amber), rgba(200,146,58,0.2));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 48px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 16px rgba(200,146,58,0.5);
}

.timeline-year {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 4px;
  text-align: right;
}

.timeline-title {
  font-size: 22px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.timeline-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--white-dim);
}

.timeline-text strong {
  color: var(--amber-light);
  font-weight: 500;
}

.timeline-text em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: rgba(200,146,58,0.4);
  text-underline-offset: 3px;
}

.storia-quote {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--amber);
  border-radius: 16px;
  padding: 40px 48px;
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: var(--white-dim);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.storia-quote cite {
  display: block;
  margin-top: 20px;
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

@media (max-width: 768px) {
  .storia-timeline {
    padding-left: 32px;
  }

  .timeline-item {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }

  .storia-quote {
    padding: 28px 24px;
    font-size: 16px;
  }
}

/* ============ MENU PREVIEW ============ */

.menu-section {
  text-align: center;
}

.menu-section .section-text {
  margin: 0 auto 64px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.menu-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-light);
  -webkit-backdrop-filter: var(--blur-light);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: left;
  transition: all 0.4s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2),
              inset 0 1px 0 rgba(255,255,255,0.1);
}

.menu-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(200, 146, 58, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4),
              inset 0 1px 0 rgba(255,255,255,0.15);
}

.menu-card-icon {
  font-size: 32px;
  margin-bottom: 20px;
}

.menu-card-title {
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.menu-card-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.6;
}

/* ============ GALLERIA ============ */

.gallery-section {
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  margin-top: 48px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: var(--blur-light);
  -webkit-backdrop-filter: var(--blur-light);
  transition: all 0.3s ease;
}

.gallery-placeholder span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.25);
}

.gallery-placeholder:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(200, 146, 58, 0.2);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.03);
}

/* ============ ORARI ============ */

.hours-section {
  display: flex;
  justify-content: center;
}

.hours-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 56px 72px;
  text-align: center;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3),
              inset 0 1px 0 rgba(255,255,255,0.1);
}

.hours-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 32px 0 20px;
}

.hours-day {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--white);
}

.hours-divider {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--glass-border);
}

.hours-time {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--amber-light);
}

.hours-note {
  font-size: 13px;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.4);
  letter-spacing: 0.05em;
}

/* ============ DOVE SIAMO ============ */

.map-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.map-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.map-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.5;
}

.map-info-link {
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s ease;
  padding: 6px;
  margin: -6px;
}

.map-info-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.map-info-link:hover .map-info-icon {
  border-color: var(--amber);
  color: var(--amber);
}

.map-info-link span {
  color: var(--white-dim);
  transition: color 0.2s ease;
}

.map-info-link:hover span {
  color: var(--white);
}

.map-info-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  flex-shrink: 0;
}

.map-embed-wrap {
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  filter: grayscale(20%) brightness(0.85) saturate(0.9);
  transition: filter 0.4s ease;
}

.map-embed-wrap:hover {
  filter: grayscale(0%) brightness(0.95) saturate(1);
}

@media (max-width: 768px) {
  .map-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .map-embed-wrap {
    height: 300px;
  }
}

/* ============ PRENOTAZIONI ============ */

.booking-section {
  position: relative;
  overflow: hidden;
}

.booking-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 146, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.booking-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 64px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5),
              inset 0 1px 0 rgba(255,255,255,0.12);
}

.booking-card .section-title {
  margin-bottom: 16px;
}

.booking-card .section-text {
  margin: 0 auto 40px;
  max-width: 400px;
}

/* ============ FORM PRENOTAZIONE ============ */

.booking-form {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--white);
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(245,240,232,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group select option {
  background: #1a1a1a;
  color: var(--white);
}

.form-group textarea {
  resize: none;
  line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(245, 240, 232, 0.25);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(200, 146, 58, 0.6);
  background: rgba(255, 255, 255, 0.09);
}

/* Safari date input color fix */
.form-group input[type="date"]::-webkit-date-and-time-value {
  color: var(--white);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  margin-top: 1px;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.2s ease;
}

.form-check input[type="checkbox"]:checked {
  background: var(--amber);
  border-color: var(--amber);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23080808' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.form-check label {
  font-size: 12px;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.5);
  line-height: 1.6;
  cursor: pointer;
}

.form-check label a {
  color: var(--amber);
  text-decoration: none;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  font-size: 13px;
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

#form-status {
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  min-height: 24px;
  color: var(--white-dim);
}

#form-status.success {
  color: #7ecb8f;
}

#form-status.error {
  color: #e07070;
}

.form-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--amber);
  cursor: pointer;
}

.form-privacy label {
  font-size: 12px;
  color: rgba(245, 240, 232, 0.4);
  line-height: 1.6;
  cursor: pointer;
}

.form-privacy label a {
  color: var(--amber);
  text-decoration: none;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--amber);
  border: none;
  border-radius: 12px;
  color: #1a1512;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.form-submit:hover {
  opacity: 0.88;
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row-3 {
    grid-template-columns: 1fr 1fr;
  }

  .form-row-3 .form-group:first-child {
    grid-column: 1 / -1;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* evita zoom automatico Safari iOS */
    padding: 14px 16px;
  }
}

/* ============ MENU MODAL ============ */

.menu-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(8, 8, 8, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
}

.menu-modal.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.menu-modal-inner {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 90vh;
  max-height: 860px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(24px);
  transition: transform 0.35s ease;
}

.menu-modal.open .menu-modal-inner {
  transform: translateY(0);
}

.menu-modal-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(20, 12, 4, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.menu-modal-close:hover {
  background: rgba(60, 40, 20, 0.98);
  transform: scale(1.08);
}

.menu-modal-iframe {
  flex: 1;
  width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background: var(--black);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
  .menu-modal {
    padding: 16px;
    align-items: flex-end;
  }

  .menu-modal-inner {
    height: 92vh;
    max-width: 100%;
  }
}

/* ============ COOKIE POPUP ============ */

#cookie-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 48px;
  pointer-events: none;
}

#cookie-overlay.hidden {
  display: none;
}

#cookie-popup {
  pointer-events: all;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  padding: 40px 36px 36px;
  width: 320px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55),
              inset 0 1px 0 rgba(255,255,255,0.35),
              inset 0 -1px 0 rgba(255,255,255,0.08);
  text-align: center;
  animation: cookieSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cookieSlideIn {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cookie-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.cookie-title {
  font-size: 19px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.cookie-text {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.75);
  margin-bottom: 28px;
}

.cookie-text a {
  color: var(--amber-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 146, 58, 0.35);
}

.cookie-text a:hover {
  border-bottom-color: var(--amber);
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-cookie-accept {
  width: 100%;
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3),
              inset 0 1px 0 rgba(255,255,255,0.4);
  transition: all 0.3s ease;
}

.btn-cookie-accept:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35),
              inset 0 1px 0 rgba(255,255,255,0.45);
}

.btn-cookie-refuse {
  width: 100%;
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(245, 240, 232, 0.5);
  transition: all 0.3s ease;
}

.btn-cookie-refuse:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 240, 232, 0.75);
  border-color: rgba(255, 255, 255, 0.3);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--glass-bg);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  color: var(--white-dim);
  text-align: center;
  padding: 32px;
}

.map-placeholder p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  max-width: 280px;
}

.map-placeholder button {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--white);
  transition: all 0.3s ease;
}

.map-placeholder button:hover {
  border-color: var(--amber);
  color: var(--amber-light);
}

@media (max-width: 768px) {
  #cookie-overlay {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 16px;
    align-items: flex-end;
    justify-content: center;
  }

  #cookie-popup {
    width: 100%;
    max-width: 100%;
    border-radius: 24px 24px 20px 20px;
    padding: 32px 24px 28px;
    animation: cookieSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes cookieSlideUp {
    from {
      opacity: 0;
      transform: translateY(32px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ============ FOOTER ============ */

footer {
  border-top: 1px solid var(--glass-border);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  height: 28px;
  filter: invert(1);
}

.footer-info {
  font-size: 13px;
  font-weight: 300;
  color: var(--white-dim);
  text-align: center;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--amber);
}

/* ============ MOBILE ============ */

@media (max-width: 768px) {

  /* Scroll inerziale nativo iOS */
  body {
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
  }

  /* Riduce blur pesante per performance */
  :root {
    --blur: blur(12px);
    --blur-light: blur(8px);
  }

  nav {
    position: sticky;
    top: 0;
    padding: 14px 20px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(8, 8, 8, 0.97);
    flex-wrap: wrap;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links li {
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links a {
    display: block;
    padding: 14px 4px;
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  .nav-links .nav-cta {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 28px;
  }

  /* Hero: altezza reale su Safari mobile */
  .hero {
    height: 100svh;
    min-height: 600px;
    touch-action: pan-y;
  }

  /* Evita che booking-section blocchi lo scroll iOS */
  .booking-section {
    touch-action: pan-y;
  }

  /* Scroll indicator: non interferisce con i tocchi */
  .hero-scroll {
    pointer-events: none;
  }

  /* Bottoni hero full-width su mobile */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 0 8px;
  }

  .hero-actions .btn-glass {
    text-align: center;
  }

  section {
    padding: 64px 20px;
  }

  .section-text {
    max-width: 100%;
    font-size: 16px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Evita overflow del card 1991 */
  .about-glass-card {
    bottom: 12px;
    right: 12px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-card {
    padding: 28px 24px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .gallery-item--tall {
    grid-row: span 1;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .hours-card {
    padding: 36px 24px;
  }

  .hours-row {
    flex-direction: column;
    gap: 10px;
  }

  .hours-divider {
    width: 40px;
    height: 1px;
    flex: none;
  }

  .booking-card {
    padding: 36px 20px;
  }

  footer {
    padding: 36px 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
