/* ═══════════════════════════════════════════════════
   CASA VERMOUTH — SHARED FOOTER STYLES
   Used by index.html and all /journal/ articles
   ═══════════════════════════════════════════════════ */

.footer{
  padding:clamp(32px,5vw,60px) clamp(16px,4vw,80px) clamp(24px,3vw,40px);
  
  /* ═══ 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;

  border-top:1px solid rgba(255,255,255,0.1);
  color:#ffffff;
}
.footer-grid{
  display:grid;grid-template-columns:1fr auto 1fr;
  align-items:center;gap:clamp(16px,3vw,40px);margin-bottom:clamp(24px,4vw,48px);
}
.footer-col-left{
  padding-right: clamp(32px, 5vw, 90px);
}
.footer-col-center{text-align:center;}
.footer-col-right{
  text-align:right;
  display:flex;
  justify-content:flex-end;
  align-items:center;
}
.footer-logo{
  font-family:var(--cormorant);
  font-size:clamp(16px, 4vw, 36px);
  font-weight:700;
  letter-spacing:0.01em;
  text-transform:capitalize;
  color:#ffffff;
  display:block;
  margin-bottom:12px;
}
.footer-tagline{
  font-family:var(--serif);
  font-style:italic;
  font-size:14px;
  color:rgba(255,255,255,0.7);
  line-height:1.6;
}
.footer-nav{list-style:none;}
.footer-nav li{margin-bottom:10px;}
.footer-nav a{
  font-family:var(--serif);
  font-size:13px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.75);
  text-decoration:none;
  transition:color 0.2s;
}
.footer-nav a:hover{color:#EFBF04;} /* gold hover accent */

.footer-social{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#ffffff;
  font-family:var(--serif);
  font-size:13px;
  letter-spacing:0.22em;
  text-transform:uppercase;
}
.footer-social svg{width:16px;height:16px;fill:currentColor;}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.15);
  padding-top:24px;
  display:flex;
  justify-content:center;
  font-family:var(--serif);
  font-size:11px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.5);
}

/* ═══ LOGO COLONNA DESTRA ═══ */
/* Dimensioni identiche al logo del menu laterale (.menu-nav::after
   in navbar-style.css): 192x144px fissi, nessun resize */
.footer-logo-img {
  display: block;
  width: 192px;
  height: 144px;
  max-width: 100%; /* safety: evita overflow su schermi < 256px */
  background-image: url("logo-navbar.png");
  background-repeat: no-repeat;
  background-position: center right;
  background-size: contain;
  opacity: 0.9;
  pointer-events: none;
}

/* ═══ CONTACTS CTA — sotto la footer-grid ═══ */
/* Stile mirror di .hero-cta-btn ma con colori invertiti
   per stagliarsi sullo sfondo verde del footer */
.footer-cta-wrap{
  display:flex;
  justify-content:center;
  margin: clamp(8px, 2vw, 24px) 0 clamp(28px, 4vw, 40px);
}
.footer-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;
}
.footer-cta-btn:hover{
  background:#ffffff;
  color:#076967;
  border-color:#ffffff;
}
.footer-cta-btn:focus-visible{
  outline: 1px solid #EFBF04;
  outline-offset: 4px;
}

/* ═══ CONTACTS MODAL — stile biglietto da visita Art Deco ═══ */
/* Replica il pattern di .av-modal con cornici dorate ai 4 angoli */
.contacts-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; /* sopra la navbar (200) per sfumarla con il resto */
  opacity:0;
  pointer-events:none;
  transition: opacity 0.35s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(16px, 4vw, 40px);
}

/* Quando il modal è aperto: navbar invisibile (sfuma con la pagina) */
body.contacts-modal-open .nav{
  opacity:0;
  pointer-events:none;
  transition: opacity 0.35s ease;
}
.contacts-modal-overlay.open{
  opacity:1;
  pointer-events:auto;
}
.contacts-modal{
  position:relative;
  background:#ffffff;
  width:100%;
  max-width:520px;
  padding: clamp(40px, 5vw, 56px) clamp(28px, 4vw, 56px) clamp(36px, 4vw, 48px);
  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);
  overflow-y: auto;
}
.contacts-modal-overlay.open .contacts-modal{
  transform: translateY(0) scale(1);
  opacity:1;
}
/* Cornici dorate Art Deco — solo TL + BR (coerente con .av-modal) */
.contacts-modal::before,
.contacts-modal::after{
  content:"";
  position:absolute;
  width:18px;
  height:18px;
  border-color: #EFBF04;
  border-style: solid;
  border-width: 0;
  pointer-events:none;
}
.contacts-modal::before{
  top:14px; left:14px;
  border-top-width:1px;
  border-left-width:1px;
}
.contacts-modal::after{
  bottom:14px; right:14px;
  border-bottom-width:1px;
  border-right-width:1px;
}

/* Pulsante chiusura — stesso stile di .av-modal-close */
.contacts-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;
}
.contacts-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;
}
.contacts-modal-close span:first-child{ transform: rotate(45deg); }
.contacts-modal-close span:last-child{ transform: rotate(-45deg); }
.contacts-modal-close:hover{
  transform: rotate(135deg) scale(1.08);
}
.contacts-modal-close:hover span{ background:#076967; }
.contacts-modal-close:focus-visible{
  outline: 1px solid rgba(7,105,103,0.6);
  outline-offset: 4px;
}

/* Eyebrow "Casa Vermouth" — stesso stile di .av-modal-eyebrow */
.contacts-modal-eyebrow{
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #076967;
  margin-bottom: 20px;
}

/* Titolo "GET IN TOUCH" — stesso stile di .av-modal-title con TOUCH in corsivo verde */
.contacts-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;
}
.contacts-modal-title em{
  font-style: italic;
  color: #076967;
}

/* Divisore con diamantino dorato — stesso pattern di .av-modal-divider */
.contacts-modal-divider{
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:center;
  margin: 0 auto 28px;
  max-width: 240px;
}
.contacts-modal-divider-line{
  flex:1;
  height:1px;
  background:#EFBF04;
  opacity:0.7;
}
.contacts-modal-divider-diamond{
  width:5px;
  height:5px;
  background:#EFBF04;
  transform: rotate(45deg);
  flex-shrink:0;
}

/* Lista voci di contatto */
.contacts-list{
  list-style:none;
  margin:0 auto;
  padding:0;
  text-align:center;
  max-width: 400px;
}
.contacts-list li{
  margin-bottom:18px;
}
.contacts-list li:last-child{ margin-bottom:0; }

/* Label (ADDRESS, PHONE, STAY, PRESS & COLLABORATIONS) — verde, in linea con eyebrow */
.contacts-label{
  display:block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #076967;
  margin-bottom: 6px;
}
.contacts-value{
  display:block;
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(17,17,17,0.78);
  letter-spacing: 0.01em;
}
.contacts-value a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.contacts-value a:hover{
  color:#076967;
  border-bottom-color: rgba(7,105,103,0.4);
}

/* ═══ RESPONSIVE ═══ */
@media(max-width:680px){
  .footer-grid{
    grid-template-columns:1fr !important;
    gap:32px;
    justify-items:center;
  }
  .footer-col-left,
  .footer-col-center,
  .footer-col-right{
    text-align:center;
    width:100%;
  }
  .footer-col-left{
    padding-right: 0;
  }
  .footer-col-center > div{
    justify-content:center;
  }
  .footer-col-center .footer-nav{
    text-align:center;
  }
  .footer-col-right{
    justify-content:center;
  }
  .footer-logo-img{
    background-position: center center;
    margin: 0 auto;
  }
  .footer-bottom{
    flex-direction:column;
    gap:6px;
    text-align:center;
    align-items:center;
  }
  .footer-cta-btn{
    padding:12px 22px;
    font-size:12px;
    letter-spacing:0.28em;
  }
}
