/* ═══════════════════════════════════════════════════════════
   CAFÈ DE LA SERA — style.css
   Struttura:
   1. Reset & Variables
   2. Base
   3. Nav
   4. Hero
   5. Sezioni condivise
   6. Cucina
   7. Cantina
   8. Mixology
   9. Gallery
   10. Info / Prenota
   11. Footer
   12. Animazioni
   13. Responsive
═══════════════════════════════════════════════════════════ */


/* ─── 1. RESET & VARIABLES ─── */

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

:root {
  --bg:          #0B0A08;
  --bg2:         #111009;
  --text:        #F0EAD8;
  --text-hover:  #FFFFFF;
  --text-muted:  #7A7368;
  --text-dim:    #4A4640;
  --gold:        #C49A38;
  --gold-dim:    rgba(196, 154, 56, 0.18);
  --gold-line:   rgba(196, 154, 56, 0.35);
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Jost', sans-serif;
}


/* ─── 2. BASE ─── */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}

::-webkit-scrollbar        { width: 3px; }
::-webkit-scrollbar-track  { background: var(--gold); }
::-webkit-scrollbar-thumb  { background: var(--gold-line); }

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ─── 3. NAV ─── */

nav, #navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  transition: background 0.5s, padding 0.5s;
  box-sizing: border-box;
  width: 100vw;  /* ← AGGIUNGI QUESTA RIGA */
  max-width: 100%; /* ← E QUESTA */
}

nav.scrolled {
  padding: 18px 48px;
  background: rgba(11, 10, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--gold-dim);
}

nav img    { height: 20px; width: auto; }

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

.nav-links a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

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

.nav-cta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 0.5px solid var(--gold-line);
  padding: 10px 22px;
  transition: background 0.3s, color 0.3s;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--text-hover);
}


/* ─── 4. HERO ─── */

#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 80px;
  overflow: hidden;
}

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay riflessi lago */
.hero-lines {
  position: absolute; inset: 0;
  opacity: 0.07;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 18px,
    rgba(196, 154, 56, 0.4) 18px,
    rgba(196, 154, 56, 0.4) 19px
  );
  animation: linesShift 8s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Grain texture */
.hero-grain {
  position: absolute; inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Vignette bordi */
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, rgba(11, 10, 8, 0.7) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 1s 0.4s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 0.5px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(54px, 8vw, 100px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1s 0.65s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 44px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  opacity: 0;
  animation: fadeUp 1s 1.1s forwards;
}

/* ─── 5. SEZIONI CONDIVISE ─── */

section {
  padding: 120px 48px;
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 0 0 24px;
  height: 0.5px;
  background: var(--gold-line);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 24px;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 400px;
}

.gold-divider {
  width: 40px;
  height: 0.5px;
  background: var(--gold-line);
  margin: 28px 0;
}

/* Bottoni */
.btn-primary {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 14px 32px;
  text-decoration: none;
  transition: opacity 0.3s, transform 0.3s;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.btn-ghost::after {
  content: '→';
  font-size: 14px;
  transition: transform 0.3s;
}

.btn-ghost:hover {
  color: var(--text-muted);
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}


/* ─── 6. CUCINA ─── */

#cucina {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: var(--bg);
}

.cucina-visual {
  position: relative;
}

.cucina-img-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, #1e1508 0%, #2d1f0a 50%, #1a120a 100%);
  overflow: hidden;
}

.cucina-img-secondary {
  position: absolute;
  bottom: -32px;
  right: -32px;
  width: 48%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #241808 0%, #1a1209 100%);
  border: 4px solid var(--bg);
  overflow: hidden;
}

.cucina-text {
  padding-bottom: 32px;
}


/* ─── 7. CANTINA ─── */

#cantina {
  background: var(--bg2);
  border-top: 0.5px solid rgba(196, 154, 56, 0.08);
  border-bottom: 0.5px solid rgba(196, 154, 56, 0.08);
}

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

.cantina-stat {
  margin: 36px 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.stat-num {
  font-family: var(--serif);
  font-size: clamp(72px, 10vw, 110px);
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.5;
}

.cantina-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 36px;
}

.tag {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 0.5px solid var(--gold-line);
  padding: 6px 14px;
}

.cantina-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wine-card {
  aspect-ratio: 2 / 3;
  background: linear-gradient(160deg, #160f05 0%, #1e160a 100%);
  position: relative;
  overflow: hidden;
}

.wine-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(196, 154, 56, 0.06) 0%, transparent 60%);
}

.wine-card:first-child {
  margin-top: 48px;
}

.wine-card-label {
  position: absolute;
  bottom: 20px; left: 16px;
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: rgba(196, 154, 56, 0.3);
  z-index: 1;
}


/* ─── 8. MIXOLOGY ─── */

#mixology {
  position: relative;
  background: var(--bg);
  text-align: center;
  padding: 160px 48px;
}

.mix-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 40%, rgba(80, 40, 10, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

#mixology .section-label {
  justify-content: center;
}

#mixology .section-label::after {
  display: none;
}

#mixology .section-label::before {
  content: '';
  flex: 0 0 24px;
  height: 0.5px;
  background: var(--gold-line);
}

.mix-title {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.mix-title em {
  font-style: italic;
  color: var(--gold);
}

.mix-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  position: relative;
  z-index: 1;
}

.mix-visual {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 64px;
  position: relative;
  z-index: 1;
}

.mix-card {
  flex: 0 0 320px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(155deg, #1a1008 0%, #0f0d0a 100%);
  border: 0.5px solid rgba(196, 154, 56, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s, border-color 0.4s;
}

.mix-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-line);
}

.mix-card:nth-child(2) {
  transform: translateY(32px);
}

.mix-card:nth-child(2):hover {
  transform: translateY(24px);
}

.mix-card::after {
  content: attr(data-label);
  position: absolute;
  bottom: 20px; left: 0; right: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: rgba(196, 154, 56, 0.3);
}


/* ─── 9. GALLERY ─── */

#gallery {
  padding: 80px 0;
  background: var(--bg2);
  overflow: hidden;
}

.gallery-header {
  padding: 0 48px 40px;
}

.gallery-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 48px;
  cursor: grab;
  scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 300px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, #1a120a 0%, #150e07 100%);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  border: 0.5px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s;
}

.gallery-item:hover {
  border-color: var(--gold-dim);
}

.gallery-item:nth-child(even) {
  margin-top: 32px;
  aspect-ratio: 3 / 5;
}

.gallery-item::after {
  content: attr(data-label);
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
  color: rgba(196, 154, 56, 0.25);
}


/* ─── 10. INFO / PRENOTA ─── */

#info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg);
  padding: 0;
  min-height: 480px;
}

.info-left {
  padding: 80px 60px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 0.5px solid rgba(196, 154, 56, 0.1);
}

.info-right {
  padding: 80px 60px;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-title {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 32px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.info-block-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.info-block-val {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
}

.info-block-val a {
  color: var(--text-muted);
  text-decoration: none;
}

.info-block-val a:hover {
  color: var(--gold);
}

.info-right-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.info-right-sub {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 340px;
}

.info-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-cta-group .btn-primary {
  text-align: center;
  width: 20%;
}

.info-cta-group .btn-ghost {
  justify-content: start;
}


/* ─── 11. FOOTER ─── */

footer {
  background: #080705;
  border-top: 0.5px solid rgba(196, 154, 56, 0.1);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

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

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

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

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

.footer-social {
  display: flex;
  gap: 20px;
}

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

.footer-social a:hover {
  color: var(--text);
}


/* ─── 12. ANIMAZIONI ─── */

@keyframes heroShift {
  0%   { filter: brightness(0.95) saturate(1); }
  100% { filter: brightness(1.05) saturate(1.1); }
}

@keyframes linesShift {
  0%   { transform: translateY(0);    opacity: 0.06; }
  100% { transform: translateY(-4px); opacity: 0.09; }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
  50%       { transform: scaleY(1);   opacity: 0.8; }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Reveal al scroll — stato iniziale */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity  0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible       { opacity: 1; transform: translateY(0); }
.reveal-delay-1       { transition-delay: 0.15s; }
.reveal-delay-2       { transition-delay: 0.30s; }
.reveal-delay-3       { transition-delay: 0.45s; }


/* ─── 13. RESPONSIVE ─── */

@media (max-width: 900px) {

  nav, #navbar         { padding: 16px 24px; width: 100vw; max-width: 100%; }
  nav.scrolled         { padding: 12px 24px; }
  .nav-links           { display: none; }
  nav img              { height: 32px; width: auto; max-width: 160px; object-fit: contain; }
  .nav-cta             { padding: 8px 14px; font-size: 11px; flex-shrink: 0; white-space: nowrap; }

  .hero-actions .btn-primary  { display: none; }

  section              { padding: 80px 24px; }
  #hero                { padding: 0 24px 64px; }
  #mixology            { padding: 100px 24px; }

  #cucina              { grid-template-columns: 1fr; gap: 48px; }
  .cucina-img-secondary { right: -16px; }

  .cantina-inner       { grid-template-columns: 1fr; gap: 48px; }
  .cantina-visual      { grid-template-columns: 1fr 1fr; }

  .mix-visual {
    gap: 8px;
    justify-content: center;
  }

  .mix-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3 / 4;
  }

  .mix-card:nth-child(1),
  .mix-card:nth-child(3) {
    display: none;
  }

  #info                { grid-template-columns: 1fr; min-height: auto; }
  .info-left           { padding: 60px 24px; border-right: none; border-bottom: 0.5px solid rgba(196, 154, 56, 0.1); }
  .info-right          { padding: 60px 24px; }

  footer               { flex-direction: column; gap: 20px; padding: 36px 24px; }
}
