/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colori estratti dal logo ufficiale */
  --navy:  #183966;   /* background logo (campionato dal PNG) */
  --navy2: #0e2240;   /* variante scura per footer/contatti */
  --white: #ffffff;
  --gold:  #C8A84B;
  --gold2: #a88930;
  --text-light: rgba(255,255,255,0.80);
  --text-muted: rgba(255,255,255,0.55);
  --ff-title: 'Playfair Display', Georgia, serif;
  --ff-body:  'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--white);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { font-family: var(--ff-title); line-height: 1.2; }

/* ─── UTILITIES ─── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 4px;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold2); box-shadow: 0 4px 18px rgba(200,168,75,0.35); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { border-color: var(--white); box-shadow: 0 4px 18px rgba(255,255,255,0.12); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--navy);
  transition: box-shadow 0.3s, backdrop-filter 0.3s, background 0.3s;
}
#nav.scrolled {
  background: rgba(24,57,102,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img {
  height: 64px;
  width: auto;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  padding: 9px 20px;
  font-size: 13px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--navy2);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0 20px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, background 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--gold); background: rgba(255,255,255,0.04); }
.nav-mobile .btn-gold {
  margin: 12px 24px 0;
  text-align: center;
  border-radius: 4px;
  display: block;
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* ══════════════════════════════════════
   MODAL PRENOTAZIONE
══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(14,34,61,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--navy2);
  border: 1px solid rgba(200,168,75,0.25);
  border-radius: 8px;
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 22px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.modal-close:hover { color: var(--white); }

.modal-box h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--gold);
}
.modal-box p { color: var(--text-light); margin-bottom: 24px; font-size: 15px; }

.modal-tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-title);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.2s;
}
.modal-tel:hover { color: var(--gold); }

.modal-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
#hero {
  min-height: 100svh;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

/* Geometric texture overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      60deg,
      rgba(255,255,255,0.025) 0px,
      rgba(255,255,255,0.025) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      -60deg,
      rgba(255,255,255,0.025) 0px,
      rgba(255,255,255,0.025) 1px,
      transparent 1px,
      transparent 40px
    );
  pointer-events: none;
}

/* Gold gradient accent bottom-right */
#hero::after {
  content: '';
  position: absolute;
  bottom: -120px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,168,75,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 0 100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,168,75,0.15);
  border: 1px solid rgba(200,168,75,0.35);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-badge svg { flex-shrink: 0; }

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  max-width: 700px;
  margin-bottom: 22px;
  line-height: 1.13;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-light);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ══════════════════════════════════════
   OFFERTA RAPIDA
══════════════════════════════════════ */
#offerta {
  padding: 96px 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 14px;
}
.section-desc {
  font-size: 1rem;
  color: #555;
  max-width: 520px;
  margin: 0 auto;
}

.offerta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.offerta-card {
  background: var(--white);
  border: 1px solid #e4e8f0;
  border-radius: 8px;
  padding: 28px 22px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.offerta-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(24,57,102,0.12);
  transform: translateY(-4px);
}

.offerta-icon {
  width: 52px; height: 52px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.offerta-icon svg { color: var(--white); }

.offerta-card h3 {
  font-family: var(--ff-title);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.offerta-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.55;
  margin-bottom: 14px;
}

.offerta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold2);
  background: rgba(200,168,75,0.1);
  border-radius: 100px;
  padding: 3px 10px;
}

/* ══════════════════════════════════════
   CHI SIAMO
══════════════════════════════════════ */
#chi-siamo {
  padding: 96px 0;
  background: var(--navy);
}

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

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

.chisiamo-text .section-label { color: var(--gold); }
.chisiamo-text .section-title { color: var(--white); text-align: left; margin-bottom: 20px; }

.chisiamo-text p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.valori-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.valore-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.valore-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 7px;
}

.valore-card strong {
  display: block;
  font-family: var(--ff-title);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 3px;
}
.valore-card span {
  font-size: 14px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   MENU
══════════════════════════════════════ */
#menu {
  padding: 96px 0;
  background: var(--white);
}

#menu .section-title { color: var(--navy); }
#menu .section-label { color: var(--gold2); }

.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e4e8f0;
  margin-bottom: 48px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.menu-item {
  border: 1px solid #e4e8f0;
  border-radius: 8px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.menu-item h4 {
  font-size: 1.05rem;
  color: var(--navy);
}

.menu-price {
  font-weight: 700;
  color: var(--gold2);
  white-space: nowrap;
  font-size: 1rem;
}

.menu-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.55;
}

/* ══════════════════════════════════════
   ORARI & CONTATTI
══════════════════════════════════════ */
#contatti {
  padding: 96px 0;
  background: var(--navy2);
}

#contatti .section-label { color: var(--gold); }
#contatti .section-title { color: var(--white); }
#contatti .section-desc { color: var(--text-muted); }

.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

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

/* Orari */
.orari-table {
  width: 100%;
  border-collapse: collapse;
}
.orari-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
}
.orari-table tr:last-child { border-bottom: none; }
.orari-table td {
  padding: 12px 8px;
  font-size: 15px;
  color: var(--text-light);
}
.orari-table td:first-child { font-weight: 500; }
.orari-table td:last-child { text-align: right; }
.orari-table tr.today td {
  color: var(--gold);
  font-weight: 600;
}
.orari-table tr.today td:first-child::after {
  content: ' ·';
  color: var(--gold);
}

/* Contatti dettagli */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-icon {
  width: 40px; height: 40px;
  background: rgba(200,168,75,0.12);
  border: 1px solid rgba(200,168,75,0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.contact-item-text strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.contact-item-text a,
.contact-item-text span {
  font-size: 15px;
  color: var(--white);
  transition: color 0.2s;
}
.contact-item-text a:hover { color: var(--gold); }

.map-placeholder {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  height: 160px;
  font-size: 14px;
  color: var(--text-muted);
  gap: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.map-placeholder:hover {
  border-color: rgba(200,168,75,0.4);
  background: rgba(200,168,75,0.05);
  color: var(--gold);
}
.map-placeholder svg { flex-shrink: 0; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
#footer {
  background: var(--navy2);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 48px 0 32px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo img { height: 60px; width: auto; }

.footer-tagline {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.footer-nav a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200,168,75,0.08);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── DIVIDERS ─── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.divider-left {
  margin: 0 0 20px;
}

/* ─── CONTATTI HEADINGS ─── */
.contatti-heading {
  font-family: var(--ff-title);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 20px;
}
