/* ═══════════════════════════════════════════════════
   CASA VERMOUTH — SHARED NAVBAR + SIDE MENU STYLES
   Used by index.html, vermouth.html, journal.html,
   and all /journal/ articles.
   ═══════════════════════════════════════════════════ */

:root{
  --nav-size: clamp(60px, 6vw, 80px);
  --nav-inner: calc(var(--nav-size) - 12px);
  --green:#076967;
  --gold:#EFBF04;
  --smoke:#F2F2F2;
  --black:#111;
  --serif:'EB Garamond',Georgia,serif;
  --cormorant:'Cormorant Garamond',serif;
  --limelight:'Limelight',cursive;
  --playfair:'Playfair Display',serif;
  --script:'Great Vibes',cursive;
}

/* ═══ SIDE MENU ═══ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(380px, 85vw);
  height: 100vh;
  
  /* ═══ Sfondo Side Menu (con e senza Art Deco pattern) ═══ */
  background-color:#065B59; /* #076967 verde originale aggiustato per accomodare il pattern. Usa #055250 per scurire.  */
  background-image:url("background.png");
  background-repeat:repeat;
  background-size:auto;
  
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 20px 48px;
  overflow-y: auto;
}
.menu-drawer.open {
  transform: translateX(0);
}
/* CLOSE BUTTON — stable 48x48 click area */
.menu-close {
  position: relative;
  z-index: 1001;
  align-self: flex-end;
  width: 48px;
  height: 48px;
  margin: 0 0 36px 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  line-height: 0;
  font-size: 0;
  color: transparent;
  overflow: visible;
  touch-action: manipulation;
  transition: opacity 0.22s ease;
}

.menu-close::before {
  content: "";
  position: absolute;
  inset: -6px;
  display: block;
  background: transparent;
  pointer-events: auto;
}

.menu-close span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 24px;
  height: 1.4px;
  background: rgba(255,255,255,0.78);
  border-radius: 2px;
  transform-origin: center;
  pointer-events: none;
  transition: background 0.22s ease, opacity 0.22s ease;
}

.menu-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-close:hover {
  opacity: 0.82;
}

.menu-close:hover span {
  background: #EFBF04;
}

.menu-close:focus-visible {
  outline: 1px solid rgba(239,191,4,0.7);
  outline-offset: 4px;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
/* ═══ LOGO SIDE MENU ═══ */
.menu-nav::after {
  content: "";
  display: block;
  width: 192px;
  height: 144px;
  margin: 30px auto 0; /* Distanza Logo dalle voci del Menu laterale */
  background-image: url("logo-navbar.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.9;
  pointer-events: none;
}
.menu-item {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: color 0.2s, padding-left 0.2s;
  display: block;
}
/* HIDE #5 (Art Deco) and #7 (Boutique) */
.menu-item:nth-child(5),
.menu-item:nth-child(7) {
  display: none;
}
.menu-item:hover {
  color: #EFBF04;
  padding-left: 8px;
}
.menu-item.active {
  color: #EFBF04;
}
.menu-footer {
  margin-top: 40px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);

  display: none;
}
/* ═══ NAV ═══ */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:200;
  height:var(--nav-size);background:#ffffff;
  border-bottom:1px solid rgba(0,0,0,0.07);
  backdrop-filter:blur(10px);
  display:flex;align-items:center;justify-content:space-between;
  padding:0 clamp(12px, 2vw, 20px);
}
.nav-left{display:flex;align-items:center;}
.nav-right{display:flex;align-items:center;}

/* logo absolutely centred on the viewport */
.nav-logo{
  position:absolute;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  display:flex;align-items:center;justify-content:center;
  pointer-events:none; /* the logo block doesn't block hamburger/book clicks */
}
.nav-logo-text{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  transition:opacity 0.5s ease, transform 0.5s ease;
  opacity:1;
  text-align:center;
  pointer-events:auto;
}
.nav-logo-title{
  font-family:var(--cormorant);
  font-size: calc(var(--nav-inner) * 0.58);
  font-weight:700;
  color:var(--black);
  white-space:nowrap;
  letter-spacing:0.01em;
  text-transform:capitalize;
  line-height:1;
}
.nav-logo-sub{
  font-family:var(--cormorant);
  font-size: calc(var(--nav-inner) * 0.24);
  font-weight:400;
  color:#076967;
  white-space:nowrap;
  letter-spacing:0.18em;
  text-transform:uppercase;
  line-height:1;
}

/* BOOK BUTTON — CIRCULAR BELL BUTTON */
.nav-book{
  display:inline-flex;align-items:center;justify-content:center;
  width: clamp(36px, var(--nav-inner), 46px);
  height: clamp(36px, var(--nav-inner), 46px);
  color:#ffffff;background:#076967;
  border:1px solid #076967;
  border-radius:50%;
  padding:0;
  text-decoration:none;cursor:pointer;
  box-sizing:border-box;
  transition:background 0.25s, transform 0.2s, border-color 0.25s;
}
.nav-book:hover{
  background:#0a8280;
  border-color:#0a8280;
  color:#ffffff;
  transform:scale(1.04);
}
.nav-book:active{
  transform:scale(0.96);
}
.nav-book svg{
  width:55%;
  height:55%;
  display:block;
  stroke:currentColor;
  fill:none;
}

/* HAMBURGER MENU BUTTON — three green lines, no background, no separator */
.nav-hamburger{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  cursor:pointer;background:transparent;border:none;
  width:auto;height:auto;
  padding:clamp(8px, 1vw, 11px) clamp(8px, 1vw, 12px);
  transition:opacity 0.25s;
}
.nav-hamburger:hover{opacity:0.65;}
.nav-hamburger span{
  display:block;height:2px;
  width:clamp(20px, 2.5vw, 26px);
  background:#076967;
  border-radius:2px;
  transition:background 0.25s;
}


/* ═══ LANGUAGE SWITCHER ═══ */
.lang-switch{
  display:inline-flex;align-items:center;gap:6px;
  margin-right:clamp(8px, 1.2vw, 14px);
  font-family:var(--cormorant);
  font-size:clamp(11px, 1.4vw, 14px);
  letter-spacing:0.18em;
  text-transform:uppercase;
}
.lang-link{
  color:rgba(17,17,17,0.4);
  text-decoration:none;
  padding:4px 2px;
  transition:color 0.2s;
}
.lang-link:hover{ color:#076967; }
.lang-link.active{
  color:#076967;
  font-weight:600;
}
.lang-sep{
  color:rgba(17,17,17,0.2);
  font-weight:300;
}

/* MOBILE: keep language switch inside hamburger menu */
.menu-language {
  position: absolute;
  top: 40px;
  left: 48px;
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--cormorant);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .nav-right .lang-switch {
    display: none;
  }

  .menu-drawer {
    width: min(340px, 82vw);
    padding: 40px 36px;
    overflow: visible;
  }

  .menu-language {
    display: flex;
    left: 36px;
  }

  .menu-language a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
  }

  .menu-language a.active {
    color: #EFBF04;
    font-weight: 600;
  }

  .menu-language span {
    color: rgba(255,255,255,0.35);
  }

}
/* ═══════════════════════════════════════════════════
   ABOUT US — CTA inside the side menu (under the logo)
   Mirror of .footer-cta-btn: transparent on green bg,
   inverts to white/green on hover.
   ═══════════════════════════════════════════════════ */
.menu-cta-wrap{
  display:flex;
  justify-content:center;
  margin: clamp(20px, 3vw, 32px) 0 clamp(8px, 2vw, 16px);
}
.menu-cta-btn{
  display:inline-flex;
  align-items:center;
  gap:14px;
  padding:14px 28px;
  background:transparent;
  border:1px solid rgba(255,255,255,0.55);
  color:#ffffff;
  font-family:var(--cormorant);
  font-size:13px;
  letter-spacing:0.3em;
  text-transform:uppercase;
  text-decoration:none;
  cursor:pointer;
  transition:background 0.3s, color 0.3s, border-color 0.3s;
}
.menu-cta-btn:hover{
  background:#ffffff;
  color:#076967;
  border-color:#ffffff;
}
.menu-cta-btn:focus-visible{
  outline: 1px solid #EFBF04;
  outline-offset: 4px;
}

/* ═══════════════════════════════════════════════════
   ABOUT MODAL — letter from Ciro & Giulia
   Pattern mirror of .contacts-modal (Art Déco corners,
   eyebrow, Playfair title with green <em>, diamond divider).
   Slightly wider + scrollable for long-form reading.
   ═══════════════════════════════════════════════════ */
.about-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(17,17,17,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index:1100;
  opacity:0;
  pointer-events:none;
  transition: opacity 0.35s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(16px, 4vw, 40px);
}
/* Sync navbar fade with contacts-modal behaviour */
body.about-modal-open .nav{
  opacity:0;
  pointer-events:none;
  transition: opacity 0.35s ease;
}
.about-modal-overlay.open{
  opacity:1;
  pointer-events:auto;
}
.about-modal{
  position:relative;
  background:#ffffff;
  width:100%;
  max-width:640px;
  padding: clamp(44px, 5vw, 60px) clamp(28px, 4vw, 60px) clamp(36px, 4vw, 52px);
  text-align:center;
  transform: translateY(16px) scale(0.98);
  opacity:0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  border: 1px solid rgba(216,210,199,0.6);
  max-height: calc(100vh - 32px);
  /* Scroll moved to .about-letter so the gold Art Déco corners
     stay anchored to the visible card edges, not the scrolling content */
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.about-modal-overlay.open .about-modal{
  transform: translateY(0) scale(1);
  opacity:1;
}
/* Art Déco gold corners — TL + BR (same as contacts modal) */
.about-modal::before,
.about-modal::after{
  content:"";
  position:absolute;
  width:18px;
  height:18px;
  border-color: #EFBF04;
  border-style: solid;
  border-width: 0;
  pointer-events:none;
}
.about-modal::before{
  top:14px; left:14px;
  border-top-width:1px;
  border-left-width:1px;
}
.about-modal::after{
  bottom:14px; right:14px;
  border-bottom-width:1px;
  border-right-width:1px;
}

/* Close button — same style as contacts-modal-close */
.about-modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:36px;
  height:36px;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  transform-origin:center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  z-index:2;
}
.about-modal-close span{
  position:absolute;
  width:18px;
  height:1.4px;
  background:rgba(17,17,17,0.55);
  border-radius:2px;
  transition: background 0.25s ease;
}
.about-modal-close span:first-child{ transform: rotate(45deg); }
.about-modal-close span:last-child{ transform: rotate(-45deg); }
.about-modal-close:hover{
  transform: rotate(135deg) scale(1.08);
}
.about-modal-close:hover span{ background:#076967; }
.about-modal-close:focus-visible{
  outline: 1px solid rgba(7,105,103,0.6);
  outline-offset: 4px;
}

/* Eyebrow */
.about-modal-eyebrow{
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #076967;
  margin-bottom: 20px;
}

/* Title — "ABOUT US" with US in italic green */
.about-modal-title{
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #111;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.about-modal-title em{
  font-style: italic;
  color: #076967;
}

/* Diamond divider */
.about-modal-divider{
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:center;
  margin: 0 auto 28px;
  max-width: 240px;
}
.about-modal-divider-line{
  flex:1;
  height:1px;
  background:#EFBF04;
  opacity:0.7;
}
.about-modal-divider-diamond{
  width:5px;
  height:5px;
  background:#EFBF04;
  transform: rotate(45deg);
  flex-shrink:0;
}

/* Letter body */
.about-letter{
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(17,17,17,0.82);
  letter-spacing: 0.005em;
  /* Only the letter scrolls; header + Art Déco corners stay fixed */
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  width:100%;
  padding-right:6px;
  /* Hidden scrollbar for a clean look */
  scrollbar-width:none;        /* Firefox */
  -ms-overflow-style:none;     /* old Edge/IE */
}
.about-letter::-webkit-scrollbar{ display:none; }   /* WebKit */
/* Soft fade at the bottom edge — only while there is more text below.
   Toggled by JS; removed at the end of scroll so the last line stays crisp. */
.about-letter.has-more-below{
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 90px), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 90px), transparent 100%);
}
.about-letter p{
  margin: 0 0 1.05em;
}
.about-letter p:last-of-type{
  margin-bottom: 0;
}
/* First line — "Welcome to Casa Vermouth." — slightly emphasized */
.about-letter .about-letter-opening{
  font-style: italic;
  font-size: 17px;
  color: #076967;
  text-align: center;
  margin-bottom: 1.4em;
  letter-spacing: 0.01em;
}
/* Section break — a subtle gold dot ornament between thematic blocks */
.about-letter-ornament{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin: 1.6em 0;
}
.about-letter-ornament span{
  width:4px;
  height:4px;
  background:#EFBF04;
  border-radius:50%;
  opacity:0.55;
}
.about-letter-ornament span:nth-child(2){
  width:5px;
  height:5px;
  transform: rotate(45deg);
  border-radius:0;
  opacity:0.75;
}
/* Closing thank-you — centered, lighter */
.about-letter .about-letter-thanks{
  text-align: center;
  font-style: italic;
  color: rgba(17,17,17,0.7);
  margin-top: 1.6em;
}
/* Signature */
.about-letter-signature{
  margin-top: 1.4em;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #076967;
}

/* Responsive — tighten on small viewports */
@media(max-width:680px){
  .about-modal{
    padding: 44px 22px 32px;
  }
  .about-letter{
    font-size: 14.5px;
    line-height: 1.7;
  }
  .about-letter .about-letter-opening{
    font-size: 16px;
  }
  .about-letter-signature{
    font-size: 17px;
  }
}
